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
  • Positions Window
  • Toolbar of the Positions window
  • Column filters in the Positions window
  • Account status lines of the Positions window
  • Columns of the Positions window
  • Context menu of the Positions window
  • Positions window properties

Was this helpful?

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

Positions window

Last updated 2 years ago

Was this helpful?

Positions Window

The Positions window contains data that displays the current state of the positions in your account. The Positions window can be opened by selecting the Main menu item: Trade - Positions.

This window contains data from the broker/exchange without any changes. In some cases (for example, crypto exchanges), we calculate the valuation in bitcoins. This also applies to blocks that use this data (passing this data to the agent), for example, Portfolio estimation.

By the way, the portfolio estimation in the laboratory is calculated based on the position according to the formula: Portfolio estimation = money + positions.

If the information in the window differs from what the broker broadcasts in some other place (in another program), please contact our support service. To find the causes of data inconsistencies, we need:

  • Program log and broker log (if it is possible to request a log from a broker). Access to the folder with logs of the TSLab program can be obtained from the Main menu: Tools - Log folder;

  • Screenshots of the window from the application, which displays data other than TSLab data.

Toolbar of the Positions window

The toolbar of the "Positions" window contains the buttons "Orders Manager", "Close position/Cancel all orders", "Cancel orders". To activate the button, select the line with the position.

  • Order Manager - Opens the Order Manager window for the selected instrument;

  • Close Position/Cancel All Orders - Closes a market position and cancels current active orders for the selected instrument;

  • Cancel orders - Cancels the currently active orders for the selected instrument.

Column filters in the Positions window

The data in the Positions table can be sorted using the built-in filtering system. You can access the filters by clicking on the special button located in the header of the table.

Account status lines of the Positions window

There are 4 account states in the Positions window:

  • Long position (by default, they are highlighted with a green background);

  • Short position (by default highlighted in red);

  • Position in money - your money on the account of the exchange / broker (by default, they are highlighted with a yellow background);

  • Neutral position is a closed position that has previously been traded (highlighted with a white background by default).

Columns of the Positions window

You can show or hide the columns you need by clicking on the table header with the right mouse button, or by selecting the appropriate menu item in the Positions window properties.

Column
Description

Data provider

Data provider.

Currency

Currency unit.

User's account name

The account name you created.

Account

Account number.

Ticker

Short designation of the instrument.

Instrument

Instrument name.

Market code

Short name of the market.

Incoming

The incoming position shows the actual amount of the specified instrument deposited in your account at the close of the previous trading day. The incoming position does not take into account outstanding obligations and claims on the instrument.

Current

The current position shows the actual amount of the specified instrument, which will remain in your account at the close of the current trading day.

Planned

The planned position is calculated as the current position, taking into account the planned purchases and sales.

Turnover

Amount of bought and sold financial instrument

Balance price

The average price of your transactions in the market, as a result of which a net position on a financial instrument was opened.

Assessed price

The price of the last transaction (quotes).

Daily commission

Broker commission per trading session.

Commission

Commission for the entire known period (currently not applicable).

Net value

For instruments on the exchange and OTC markets, the net value is equal to the value of the respective position in the account currency.и в рублях по цене последней сделки.

Balance volume

Position value at book price.

NP/L

Unrealized profit/loss.

Incoming net

Incoming position multiplied by the opening price.

In Bids

The total number of lots in all purchase orders.

In Offers

The total number of lots in all sell orders.

Bought

Bought per session.

Sold

Sold per session.

P/L (day)

Profit/loss daily.

P/L (est.)

Estimated profit/loss.

Variable Margin

The value of the variation margin broadcast from FORTS.

Initial Margin

The initial margin allows you to assess the risk of opening new positions. In fact, the initial margin is a discounted assessment of positions in liquid assets (securities and foreign currencies that can be accepted as collateral) and futures (if the Derivatives Market of the Moscow Exchange is included in the EBS) included in the investor's portfolio

Risk rate

Risk rates for an instrument take into account the risk of adverse price changes and allow you to assess the amount of risk that an investor can take on.

Context menu of the Positions window

The context menu is available by pressing the right mouse button in the workspace of the Positions window.

Menu item
Description

Properties

Opens the properties of the "Positions" window.

Orders Manager

Opens the "Orders Manager" window for the selected instrument

Chart

Opens the "Chart" window for the selected instrument.

Close position/Cancel all orders

Closes the selected market position and cancels current active orders for the selected instrument.

Cancel orders

Cancels current active orders for the selected instrument

Show at

Moving a window to one of the existing sheets

Clone window

Creates a copy of the window.

Positions window properties

Properties of the Positions window can be opened:

  • from the context menu of the "Positions" window;

  • using the "Properties" button located on the window's title bar;

  • by selecting the Main menu item: Edit - Window Properties

Attention! The settings of the properties "Font settings", "Long position", "Short position", "Position in money ", "Neutral position" that you have chosen can be returned to default using the "Select default settings" button located to the right of the drop-down menu. The application of custom settings is indicated by a red indicator on the "Select Default Settings" button.

Appearance

Menu item
Description

Long position

Setting the color of lines displaying long positions.

Short position

Setting the color of the lines displaying short positions.

Position in money

Setting the color of lines displaying positions "in the money"

Neutral position

Customize the color of rows displayed by neutral positions

Font settings

Select font type and size.

Columns caption

Hide/Show column headers.