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
LogoLogo

Мы в соцсетях

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

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

  • TSLab
  • Служба поддержки
On this page
  • Agent window
  • Agent Chart tab
  • Results tab
  • Parameters tab
  • Log tab
  • Profit tab
  • Agents window statistics

Was this helpful?

Export as PDF
  1. Working with the program
  2. Main menu
  3. Trading
  4. Autotrading Control Center window

Agent window

Last updated 2 years ago

Was this helpful?

Agent window

This window allows you to monitor the running agent in real time. The tab of the Agent window has a graphic designation in the form of the letter "A" and a name corresponding to the name of the agent.

In the Agent window, you can access the Agent Chart, Log, Results, Trades, Parameters and Profit tabs.

You can access the Agent window using the shortcut buttons of the Autotrading Control Center window. In the Agent column, click on the monitor icon.

Agent Chart tab

This tab displays the agent's chart and the control panel (if available).

Results tab

Shows the results of the agent's work. This tab becomes available after starting the agent.

Parameters tab

The tab is intended for working with saved values and results of optimization parameters. The workspace of the Parameters tab is divided into 3 fields:

  • Saved parameter set ​

  • List of optimization parameters and their values​

  • Table of results of optimized parameters.

Saved parameter sets

Columns
Description

Name

The name of the parameter set.

Date & time

Date and time when the parameter set was saved.

Ticker

Instrument ticker.

Note

Comment to the parameter set.

Profit Factor

Profit factor.

Recovery Factor

Recovery Factor

​List of optimization parameters and their values​

Columns
Description

Optimization parameters

Block list.

Parameter name

Name of optimization parameters

Value

Parameter value.

Control buttons

Buttons
Description

Load

Loads previously saved settings.

New folder

Creates a new folder in a directory.

Delete

Deletes a set of options or a folder.

Import

Import of parameter sets previously saved in the script after optimization.

Export

Export of parameter sets saved in the script after optimization.

​Trades tab

The tab shows a table of completed transactions. Deal statuses:

  • Green - normal state of the agent;

  • Yellow - there are applications not placed;

  • Red - there are errors in the execution of orders.

Column
Description

Position

Position

Symbol

The name of the security.

Lots

The number of lots in a trade.

Lots Change/Max

The number of lots by which the position has changed.

Entry Execution

Normal / Fictitious (setting in the Position opening by market block)

Entry signal

Position entry signal. Block name "Position opening By market"

Entry Bar

Entrance bar. The number of the bar to enter the position.

Entry Date

Entry Date

Entry Time

Entry Time

Entry Price

Entry Price

Entry Commission

Entry Commission

Exit Execution

Normal / Fictitious (setting in the Position close By market)

Exit Signal

Exit signal. Block name Position close By market

Exit Bar

Exit Bar

Exit Date

Exit Date

Exit Time

Exit Time

Exit Price

Exit Price

Exit Commission

Exit Commission

Weighted entry price

The average entry price for a position.

P/L

Profit/loss

P/L per trade

Profit/loss per trade.

Fixed P/L

Fixed profit/loss

Open P/L

Open Profit/Loss

Bars Held

The number of bars between entry and exit.

Profit/Bar

Profit/loss per bar.

Gross Profit/loss

Current profit/loss for the position.

% of Change

Percentage change in profit/loss per trade.

MAE

Deviation of the price from the entry price for the worse. In absolute terms. Without taking into account the volume of the position.

MAE %

Deviation of the price from the entry price for the worse. In relative terms. Without taking into account the volume of the position.

MFE

Deviation of the price from the entry price for the better. In absolute terms. Without taking into account the volume of the position.

MFE %

Deviation of the price from the entry price for the better. In relative terms. Without taking into account the volume of the position.

Log tab

A tab showing the agent's event log.

Profit tab

A tab showing the agent's profit.

Agents window statistics

Agent management takes virtual positions into account.

Agent management has its own statistics, and there is a possibility of error in it.

This is also related to orders for which no response was received from the broker and to the calculation algorithm described below. It is not yet clear how to do it right so that there are no errors. There were suggestions that this information should be removed altogether. Window needs to be reworked. At a minimum, all instruments within one agent are not taken into account and are not shown.

Now in the management of agents, the statistics are calculated as follows: The script splits all transactions into pairs, if there is no pair, then the transactions are discarded.

For example, you have 2 lots (long), but if you look in the "Trades" table in the agent, then there is no such deal (deals). The script doesn't actually lead the position.

In the agent management, a generalized position on the script is shown. For example, pressing the "Forget errors" button, skipping entry, exit, auto-open / close all these events and settings can remove a trade without a pair from the statistics. Statistics in agent management do not affect the operation of the agent, no special actions are required. You cannot clear the agent management statistics, you can only start the agent with a new trade name.

In fact, statistics in agent management cannot be trusted yet.