TSLab
TSLab.proSupportTSLab LiveTSVerse
Eng
Eng
  • TSLab trading platform
  • For newbies
    • A beginner's guide
      • Purchasing a license key for a data provider
      • An example of connecting text quotes
      • Example of connecting a data provider to a broker / exchange
      • An example of creating a script in TSLab
      • An example of creating a trading algorithm in TSLab
  • Installing TSLab
    • TSLab Installation Guide
      • System requirements
      • TSLab Installation manual
    • Update TSLab
      • Preparing for update
      • Release build
      • Nightly build
    • Restarting the TSLab program
    • TSLab Changelog
      • TSLab 2.1 Changelog
      • TSLab 2.2 Changelog
        • 2.2.26.0 - 2024/01/31
        • 2.2.25.0 - 2024/01/17
        • 2.2.24.0 - 2024/12/04
        • 2.2.23.0 - 2024/09/19
        • 2.2.22.0 - 2024/08/30
        • 2.2.21.0 - 2024/05/17
        • 2.2.20.0 - 2024/05/15
        • 2.2.19.0 - 2024/02/21
        • 2.2.18.0 - 2024/02/09
        • 2.2.17.0 - 2023/11/16
        • 2.2.16.0 - 2023/10/20
        • 2.2.15.0 - 2023/10/13
        • 2.2.14.0 - 2023/08/11
        • 2.2.13.0 - 2023/05/12
        • 2.2.12.0 - 2023/02/28
        • 2.2.11.0 - 2022/12/15
        • 2.2.10.0 - 2022/10/27
        • 2.2.9.0 - 2022/09/16
        • 2.2.7.0 - 2022/06/23
        • 2.2.5.0 - 2022/04/29
        • 2.2.3.0 - 2022/04/01
        • 2.2.2.0 - 2021/12/29
  • Data providers
    • Cryptocurrency exchanges
      • Binance Cryptocurrency Exchange
        • Registration on Binance
          • Registration on Binance Exchange website
          • Configure Binance Wallet
          • Creating a Binance API Key for TSLab
          • Binance. Transferring USDT from wallet to wallet without commission
        • Registration on TSLab [Binance]
          • Account registration on the TSLab website [Binance]
          • Creating a free Binance Data Provider for TSLab
        • Setting up a Binance Data Provider in TSLab
        • TSLab Binance Edition
          • Starting the program
          • Configuring the Binance Data provider
      • Bitget Cryptocurrency Exchange
        • Registration on the Bitget official website
        • Creating a Free Bitget Data Provider
        • Configuring the Bitget Data Provider in TSLab
      • ByBit Cryptocurrency Exchange
        • Registration on the ByBit website
        • Creating a free ByBit data provider
        • Configuring the ByBit Data Provider in TSLab
      • Deribit Cryptocurrency Exchange
        • Deribit data provider settings
        • Deribit. Frequently asked questions and useful information
        • Deribit. Possible problems and solutions
        • Deribit Margin Requirements Calculation
        • An example of a ready-made script for Deribit
      • Kucoin Cryptocurrency Exchange
        • Registration on the KuCoin official website
        • Creating an API key on the KuCoin website
        • Issuing a free license for KuCoin Data Provider
        • Setting up the KuCoin data provider in TSLab
      • OKX Cryptocurrency Exchange
        • Setting up an OKX account
          • Registration on the OKX website
          • OKX API Key creation
          • Issuing a free license for OKX Data Provider
          • Setting up the OKX data provider in TSLab
          • OKX demo account
        • TSLab OKX Edition
          • First launch of TSLab OKEx Edition
          • Configuring the OKEx data provider
          • Trading in TSLab [OKEx]
          • OKEx Demo
    • Historical Data
      • YahooFinance
      • Offline data provider in CSV format
      • An example of connecting text quotes
      • Text files with historical data
    • Interactive Brokers
      • Getting Started with Interactive Brokers Data Provider
        • Installing and configuring the Trader Workstation (TWS) terminal
        • Installing and configuring the IB Gateway terminal
      • Features of working with Interactive Brokers data provider
      • Known issues for Interactive Brokers Data Provider
      • Loading instruments in a package
  • Working with the program
    • Main menu
      • File
        • Program Settings
      • View
        • Chart
          • Features of working with the Chart in TSLab
          • Chart Controls
        • Depth of Market
        • Quotes
        • All Trades
      • Data
        • Data Providers window
        • Add online data provider
        • Add offline data provider
      • Lab
        • Scripts window
          • Script Container
      • Trading
        • Accounts window
        • Positions window
        • My trades window
        • My orders window
          • Move orders and deals to an agent
        • Autotrading Control Center window
          • Agent window
          • Agent trading settings
            • Event recalculations
            • Slippage
          • "Forget errors" of the agent
        • Orders manager
          • Linking a manually completed order to an agent
        • Agent Control Center window
      • Tools
        • Data backup and recovery
        • Notifications manager
          • Notifications Manager Filters
          • Reference List of Service Message Numbers
          • Example of setting up notifications for Gmail
        • Export to Excel
    • Common interface
      • Status bar
      • Tab
      • Workspace
      • Spreadsheets
    • Visual editor
      • Toolbar
        • Compress and Decompress Blocks
      • List of visual blocks
        • Service Elements
        • Cycles
        • TSChannel
      • The syntax of the Formula, Boolean expression and String expression blocks.
    • Autotrading Control Center
      • Agent trade settings
        • Agent trade settings - Placing orders
        • Agent trading settings - Script execution
        • Agent trading settings - Events
    • TSLab API
      • API Introduction
        • Visual Studio Installation
        • First script (API)
        • First Indicator (API)
        • Script Debugging
        • Logging
      • Writing scripts on the API
        • Trading Instrument Data
        • Working with positions
        • List of deals
        • The order queue
        • Standard Indicators and Handlers
        • Script parameters
        • Caching
        • Local and global cache
        • Multiple Tools
      • Writing indicators on the API
        • Stream indicator
        • Bar indicator
        • Pre-processed indicator
        • Indicator with multiple calculations
      • Additional features
        • The ability to create your own optimizers *
        • C ++ / CLI script
        • API Control Panel
        • Result from script
        • * Оптимизация. Пул массивов.
      • Examples
        • Get script results
        • Get script parameters
        • Get script and agent settings
        • Get position balance (net worth)
        • An example of a strategy Breakout of the Donchian channel
        • Example of a Moving Average Crossover strategy
        • Indicator example
        • How to speed up the processing of a script on the API
        • Links to examples
      • Question - Answer
        • HandlerParameter Attribute
    • Optimization
      • Insufficient load on a multicore processor
  • Examples of scripts and indicators
    • Examples of algorithms and indicators
    • Examples of implementing strategies in TSLab
      • A trading system based on indicator CCI
      • A trading system based on Standard Deviation
      • A trading system based on Aroon
      • A trading system based on ADX and DI technical indicators
      • A trading system based on the RSI indicator
      • Example of a trading strategy without parameters
  • TSLab website
    • TSLab Support Service
      • Memory dump of TSLab application
      • TSLab program log files
Powered by GitBook
On this page
  • Chart window
  • Legend menu of the Chart window
  • Context menu of the Chart window
  • Toolbar of the Chart window
  • Chart window properties
  • Chart Data Sources
  • Selecting instruments in the "Chart" window
  • Chart window properties
  • Common Settings

Was this helpful?

Export as PDF
  1. Working with the program
  2. Main menu
  3. View

Chart

Last updated 3 years ago

Was this helpful?

LogoLogo

Мы в соцсетях

  • Группа в Telegram
  • Новости TSLab
  • Vkontakte
  • YouTube канал TSLab Live

Наши веб-сайты

  • TSLab
  • Служба поддержки

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.

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

Toolbar of the Chart window

Commands and elements of manual technical analysis
Description

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 field
Description

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 field
Description

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 item
Description

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 item
Description

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 item
Description

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 Item
Description

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.