Chart
Last updated
Last updated
A chart is one of the main ways to visually represent numerical data and conduct technical analysis. A feature of the TSLab program is a powerful and flexible system for setting up the display of charts. You can use the preset chart display settings or customize the chart display to suit your needs. The "Chart" window can be opened from the Main menu | View | Chart or from the context menu of the "Quotes" window opened above the instrument, you are interested in.
Open a simple chart.
In the window that opens, right-click on the chart workspace. Select Properties from the context menu.
In the Properties: Chart window, select the Sources tab. In the Instrument line, select the paper you are interested in
Open the Chart tab. Disable the option Use initial date. This option allows you to limit the amount of trading data downloaded from the server. It is enabled by default. Confirm the selected settings by clicking the OK button.
Note! If you are using historical data, the chart will be loaded immediately. If you want to get data from a real data provider, then you must first connect to this provider.
The chart has its own editor to display indicators using it. In the chart editor, some blocks that cannot be used in the chart are disabled, for example, entering a position and exiting a position.
When the "flag" is set, the line is displayed on the chart, when the flag is removed, it is not displayed. The legend menu has the function of binding to its panel. Hover your mouse over the legend, click:
When changing the size of the chart panels, the legend remains in the same place. The Legend menu can be moved around the chart. Move the mouse cursor over the Legend, hold down the left mouse button, move the cursor to the desired location on the chart, release the mouse button.
The context menu is accessed by pressing the right mouse button in the chart workspace.
Properties of the Chart window can be opened using the context menu or using the Window properties button (Main menu - Edit). The properties are located on the Graph tab.
For each chart, at least one data source must be defined, this is the security whose indicators will be displayed on the chart.
Depending on the chart template, if it contains several data sources, the chart may contain information on several securities.
A security is selected in the Select Instrument window. In this window, you can select a data provider (a broker providing information), a type of securities, and also use a securities filter.
For convenience, when working with futures, it is possible to display different securities for different time periods on the chart. Thus, the program gives you the opportunity to combine the data of various financial instruments.
The selected instruments are placed in the "Source" field of the Properties: Chart window. Click on + Add Instrument to open the tool for adding start and end dates to be used for plotting. The newest tool should be selected as the first tool.
An installed tool can be removed by clicking on the "X" (Clear instrument) button.
Properties of the Chart window can be opened using the context menu or using the Window properties button (Main menu - Edit).
Decompression method. Method of decompression of compressed data in the calculation/optimization mode on historical data.
This parameter determines the time shift of the data calculated for the compressed time intervals during decompression to the original (base) time interval. Example: The basic calculation interval is 1 minute. To calculate the indicators used compression in the interval of 1 hour. 12 hour bar = 12.00 - 12.59 minutes.
When decompressing indicators:
1st method: the value 12.00 takes effect (becomes available for calculations within the script) from the minute bar 12.59.
2nd method: the value 12.00 takes effect (becomes available for calculations within the script) from the minute bar 12.00.
3rd method: the value of 12.00 takes effect (becomes available for calculations within the script) from the minute bar at 13.00.
Attention!
Method 1 is the most optimal for optimizing trading strategies.
The 2nd method is not recommended for testing strategies due to the possible "looking into the future", because the value of the compressed indicator is available until the end of the hour! The 2nd method is applicable exclusively for visual and graphical analysis.
The 3rd method has a small delay equal to one base interval and can be used to test strategies based on short (second) intervals to simulate possible execution delays, such as slow communication channels, etc.
Show connectors - the option allows you to enable / disable the drawing of connector lines in the script editor window
Attention! The settings of the properties "Background color", "Foreground color", "Grid color", "Border color", "Background of rulers" that you have chosen can be returned to default using the "Select default settings" button located to the right of the drop-down menu of this property . The application of custom settings is indicated by a red indicator on the "Select Default Settings" button.
Command | Description |
---|---|
Commands and elements of manual technical analysis | Description |
---|---|
Menu field | Description |
---|---|
Menu field | Description |
---|---|
Menu item | Description |
---|---|
Menu item | Description |
---|---|
Menu item | Description |
---|---|
Menu Item | Description |
---|---|
Reload data
Deletes existing and loads new data for the instrument and interval used in the chart. With a large amount of data, it may take a long time. The parameter of the Use Reload Date function in the script properties is the date from which the data will be reloaded.
Show editor
Opens an editor window.
Properties
Opens the chart properties window.
Show at
Moves the Chart window to one of the existing workspace sheets.
Clone window
Creates a copy of the Chart window.
Show editor
Opens an editor tab.
Show chart
Opens the chart tab
Reload data
Reloads data.
Move
Allows you to move the graphic primitive on the chart to a new position.
Add point
Draws a point.
Add finite line
Draws a line. To cover the area of non-existent candles, set the desired size of the area using the chart property "Bar indent".
Add infinite line
Draws an endless line. To cover the area of non-existent candles, set the desired size of the area using the chart property "Bar indent".
Add ray line
Draws a ray. To cover the area of non-existent candles, set the desired size of the area using the chart property "Bar indent".
Add horizontal line
Draws a horizontal line. To cover the area of non-existent candles, set the desired size of the area using the chart property "Bar indent".
Add vertical line
Draws a vertical line. To cover the area of non-existent candles, set the desired size of the area using the chart property "Bar indent".
Add Fibonacci
Draws Fibonacci levels.
Add text
Adds text.
Remove for selected scale and panel
Removes all graphic primitives associated with the scale and panel.
Scale
Selects the graph scale.
Color
Selects a color.
Time interval
Data caching interval.
Data provider
Selecting a data provider.
Type
Selection of tool type.
Market
Market selection.
Instrument list
List of securities available for selection. You can search for the required paper in the Search bar. Next to the search bar there is a drop-down menu that allows you to select an Exact or Fuzzy match of the input query to the name of the paper you are looking for.
Do not show strikes
Exclude strikes from the list of instruments.
Do not show expired
Excludes expired instruments from the list.
Expiration
Choice of expiration type:
after;
before;
exact.
Selecting an expiration date
Selecting an expiration date
Recalculation Interval
Management of agent recalculation mode and creation of commands in real trading mode:
Interval;
Interval + first trade;
Interval (for events)
Trade;
Buy / Sell;
Buy / Sell (without volume).
Real time update
Enables real-time update and recalculation in lab mode. This mode is used to simulate the agent's work with real data.