Chart

Chart window

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.

Legend menu of the Chart window

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.

Context menu of the Chart window

The context menu is accessed by pressing the right mouse button in the chart workspace.

CommandDescription

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.

Toolbar of the Chart window

Commands and elements of manual technical analysisDescription

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.

Chart window properties

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.

Chart Data Sources

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.

Selecting instruments in the "Chart" window

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.

Menu fieldDescription

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.

Additional Options

Menu fieldDescription

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

Features of working with futures

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.

Chart window properties

Properties of the Chart window can be opened using the context menu or using the Window properties button (Main menu - Edit).

Update Modes

Menu itemDescription

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.

Recalculation in Every Source

If the strategy uses several data sources, when this option is enabled, recalculation will occur when a new candle is opened for each source. This option does not affect the "Deal" and buy/sell modes..

Interval Period

Chart update interval:

  • Days (the time interval between adjacent candles is one day);

  • Minutes (the time interval between adjacent candles is one minute);

  • Seconds (the time interval between adjacent candles is one second);

  • Ticks (the chart update period is fluctuations in the price of a security);

  • Volume;

  • Price step.

Attention! Seconds and Tiki are built on the basis of information about transactions.

Interval

Chart update interval.

Dates

Menu itemDescription

Date from

Start date of the chart.

Use initial date

Enables the use of a start date. If not enabled, the maximum amount of data available is used, determined by the source.

Date to

Chart end date.

Use end date

Enables the use of an end date. If not enabled, the maximum amount of data available, determined by the source, is used.

Reload date

The date from which you want to reload the chart data.

Use reload date

Activates the application of the selected date from which to reload the chart data.

Maximum days

Allows you to limit the amount of requested historical data (from "Date to"). The value "0" - the number without limitation.

Session beginning

Sets the time intervals for the session.

Session end

Sets the time intervals for the session.

Maximum bars

The maximum number of bars used for the calculation. This setting allows you to limit the number of bars when the agent works in real time to avoid redundant calculations.

Calculation parameters

  • 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.

Script editor

  • Show connectors - the option allows you to enable / disable the drawing of connector lines in the script editor window

Chart parameters

Menu itemDescription

Bar size

The parameter sets the width of the bar in pixels on the chart.

Bars indent

Offset of the right edge of the chart from the axis, in pixels.

Hide axes

Hides the scales located at the bottom and sides of the graph

Legend transparency, %

The transparency of the legend as a percentage.

Time scale

Selecting the type of timeframe:

  • simple timescale. Each cell of the grid is filled with an equal number of candles, the timeline displays the time corresponding to the last candle of the cell;

  • adaptive timescale. The grid cell size adjusts to the actual number of candles in the selected time unit.

Using the adaptive timescale is possible if Days, Minutes or Seconds are used as the Interval period. In case of using Volume or Price Step, a simple timescale is applied.

Group trades

Groups trades on the chart using auxiliary lines

Legend foreground color

Legend font color.

Background color

Background color

Foreground color

Font color

Grid color

Grid color.

Border color

Border color.

Ruler background

Lines background.

Ruler foreground

Lines font color.

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.

Common Settings

Menu ItemDescription

Scrollbar visibility

Show/Hide the scrollbar.

Format of title

Specifies the format of the title displayed in the tab for the chart.

Font settings

Chart font type and size.

Window caption in floating mode

Show/Hide the window title.

Last updated