LightningChart JS Trader v3.0
Released: Jan 9, 2025
v3.0 での更新項目
機能
- User Interface Changes
- The way technical indicators are added to the charts has been improved. Previously, a separate chart was created below the main chart unless the indicator was an overlay.
- Now, indicators added to the same chart are separated with a horizontal splitter line. Dragging the splitter line allows resizing the indicator segments and the main chart. This change also allows displaying drawing tools on the indicator segments.
- Events
- Various events have been added to the Trader library. They can be used by subscribing to them in code. The following events are now available:
- onXAxisRangeChanged/onYAxisRangeChanged – Triggers when the range of the respective axis changes for instance because of zooming or panning.
- onDataModified – Triggers when the current dataset is modified due to adding or removing data points or changing the whole dataset.
- onChartClicked – Triggers when the chart is clicked. The event returns the clicked point in screen coordinates and axis values, as well as the button used for the click.
- onDrawingToolMoved – All drawing tools have this event. It triggers when the position of the drawing tool is modified.
- Zooming and Panning
- Zooming and panning behavior has been reworked to be more in line with other trading platforms, and to allow more configuration options for the users.
- It is now possible to change how zooming and panning work, for example which axes are affected, and which mouse button is used for that particular action.
- Zooming and panning can now be restricted to the current dataset’s X- and Y-range.
- Double-clicking the chart now restores the default view (all added data visible).
- Zooming and panning are more segment specific when indicators have been added to the chart.
- Zooming and panning configurations can be found under a new section in the settings menu. These settings can also be modified in code.
- Background Options
- It is now possible to configure the background colors beyond the predefined themes. Solid color fill, linear and radial gradients, as well as image fill options are available. Background settings can be found in the Background section of the color settings menu.
- Respective methods have been added to the code. Note that image fill can only be set in code. In addition, the glow effects on all chart elements can be switched on and off.
- New Drawing Tools
- Gann Box and Gann Fan drawing tools have been added to the library. They can be found under a new Gann tools category in the drawing tool menu.
- Other changes
- Chart title can be hidden.
- Several menu elements can now be hidden.
- Correlation Coefficient indicator now works as intended.
- Reading data from a .csv file via code is now done with loadCsvString and readCsvString methods. The former reads a csv file and loads it to the chart while the latter creates arrays based on the csv file but doesn’t add it to the chart. readCsvString can be found under HelperRoutines class.