Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
ATTENTION! Before performing the TSLab update procedure, we strongly recommend that you read the article Preparing for the update. TSLab Technical Support recommends upgrading TSLab when agents are switched off and there are no positions.
Release build of the software - is the latest version of the software that has been tested and debugged.
The release build version number is as follows: 2.X.XX.0. There is always 0 (zero) at the end. You can read more about installing the Release build version in the article Release build.
Nightly Build – is a build performed between Release builds of the software. Corrections from the nightly builds of the software fall into the next release build version of the software.
The nightly build version number is as follows: 2.X.XX.ХХ You can read more about installing the Nightly build in the article Nightly build.
ATTENTION!
Nightly builds may contain changes that did not pass the testing procedure. In this regard, TSLab Technical Support recommends using Nightly builds only in the following cases:
Technical Support specialist examined the situation you encountered and recommended you installing the Nightly Build;
the list of fixed problems contains the one that is encountered by you.
In other cases, TSLab Technical Support recommends using the Release build version of the software.
Please note! The article provides an example of connecting quotes created using a random number generator. Using this instruction, you can connect text data with quotes obtained from other sources.
You can download the text quotes used in this example. To do this, follow the link: Text quotes
As an example, we will be using quotes with a price step of 0.01. Double click on the line below.
On the page that opens, ready-made text files are laid out. In the scan folder, you can see screenshots of the obtained charts for each text file.
Download the 1.rand.quote.step = 0.01_1m.txt.zip file (the first in the list of files). Go to the directory with the downloaded file. Unzip the 1.rand.quote.step = 0.01_1m.txt.zip file.
For your convenience, we recommend downloading text quotes to the directory C:\ProgramData\TSLab\TSLab 2.1\Providers\Text, since when creating a text data provider, the TSLab program accesses this directory by default.
Open the TSLab program. In the main menu, select Data - Data Providers.
In the Providers window that opens, click on the Add button.
In the Add Data Provider window that opens, select Offline Data. Click on the Next button.
In the next step, you need to specify the name of the data provider to be created, and its type. You can specify any name. For current example, we will use the name TextData.
In the Data Provider Type list, select Text Files. To continue, click on the Next button.
At this stage, you need to specify the directory in which the text file with quotes is located.
Please note! The previously downloaded file must be unzipped.
By default, text files are stored in the C:\ProgramData\TSLab\TSLab 2.1\Providers\Text directory. To specify a new directory, click on the (...) button in the Folder line.
The historical data provider will see all the files of the proper format located in the folder.
Next, you need to set the settings for the data from the text file.
To correctly display the data from the 1.rand.quote.step = 0.01_1m.txt file, you need to set the following parameters:
Number of characters sets the number of decimal places. For the selected example, set the value to 2.
The price step is determined automatically if the step is less than one. If a file with Step = 0.01 is selected, and in the settings it will be indicated that that the number of characters = 1, then the program will take Step = 0.1 in its calculations.
After completing the configuration of the Data Provider, click Next. In the Providers window, a new text quotes provider (TextData) will be added.
Let's consider one of the options for connecting a textual data provider to a script and displaying it on a chart. You can read more about creating scripts in TSLab in the article An example of creating a script in TSLab
In the main menu of the program, select View -> Chart. The Empty Chart window will open. It is necessary to select the instrument that will be displayed on the chart.
Right-click on the graph workspace. A context menu will open. Select the Properties menu item.
In the Properties:Chart window, on the Sources tab, specify the data source for the Chart. Click on the Instrument field. In the Select Instrument selection window that opens, select the previously created provider Text and a file with quotes.
Click the Chart tab. Disable the Use initial date. Click on the OK button to complete the configuration.
Important! If you do not disable Use initial date option, the text data will not be displayed on the chart!
After completing the Chart setup, the data will be loaded and processed from the text file.
Go to the main page of the TSLab website: https://www.tslab.pro and click on the "Cabinet" button in the upper right corner of the page.
Fill in your registration details.
Note! The password must contain at least one uppercase letter. The password must be at least 8 and no more than 32 characters long.
After filling in the registration data, click on the "Register" button
After clicking on the "Register" button, you will be redirected to the page for confirming your credentials.
A confirmation email will be sent to the mail specified when registering your account. Open the letter you received from TSLab and follow the link in the text of the letter.
If you have not received a confirmation email:
make sure that the domain name is not on the blocked list
the domain name exists and the site is working.
After the account is confirmed, the "PROFILE" page can be closed. Click on the "Save" button to finish
Log in to your user account by selecting the "Cabinet" item in the upper right corner of the main page of the TSLab website. In the page that opens, enter the email address and password specified during registration. To enter, click "Next".
In the user’s personal account, select the Shop menu item. A list of available data providers will open on the site page.
Please note! Each broker has different tariff lines.
In the list of data providers, select your broker. To continue, click on the Details green button in front of the chosen tariff.
The page that opens will provide a detailed description of the data provider to be created. Pay attention to the type of license chosen and its compatibility with the markets.
In field # 1, you need to enter your public API key (created in your personal account on the cryptocurrency exchange website) or your login on the classic exchange (Interactive Brokers, Rithmic)
Specify the Maximum Size of Open Positions (for cryptocurrency exchanges). You can read more about Maximum Size of Open Positions by clicking on the question mark
Select the expiration date for the data provider to be created. To change the license validity period, move the slider to the desired side. If you subscribe for several months, you can get an additional discount on the cost of the data provider.
The total amount of the discount will be indicated in field 4
Confirm your acceptance of the User Agreement
Click on the Purchase button to proceed to payment
You can get all the necessary information about the created data provider on the Contracts page. This page displays all user-created data providers. Also, the connection data will be sent to your email address specified when registering your account.
For detailed information on the created data provider, click on the button with three dots.
In the window that opens, you can get information about the validity period of the created data provider, as well as the license key, which will need to be entered in the TSLab program when setting up the data provider of trade data.
Please note! In the TSLab program, you can connect both historical data and real trading data provided by your broker. In the current example, a data provider using a text file with quotes created in the article An example of connecting text quotes was selected.
Launch the TSLab application. In the main menu of the program, select Lab - Scripts.
In the window that opens, click the Create new script button. Enter a name for the new script, for example, "First". Click OK to continue.
Open the created script to edit it. Double click on the created script.
The window of the Visual Script Editor will be opened in the Workspace.
When creating a new script, blocks are moved to the workspace by default:
Traded instrument
(Source1)
Traded data source.
Volume
(Volume1)
Volume of concluded contracts – the number of transactions with futures contracts or options completed during a certain period of time.
Closing
(Closing1)
Bar closing price.
Chart panel
(Main)
Creates a chart panel.
Right-click on the workspace of the First* window. In the context menu that opens, select Properties.
In the Laboratory Properties window that opens, in the Script section, you need to uncheck the "Use initial date" item
In the Sources section (1), you need to select an instrument. Click on the "Instrument:" field (2). In the Select Instrument window that opens, select a data provider (in our example, Text (3)) and specify the required instrument (4) (in our example, quotes from the text file 1.rand.quote.step = 0.01_1m are used). Click OK to confirm.
Close the Laboratory Properties window by clicking on the OK button.
Pay attention to the tab with the logo of the chart. After you select a tool on this tab, the construction of the chart will begin. While loading and processing data from the file, this tab will say Loading.
After the data downloading is completed, the name of the tab will change to the name of the selected tool. In our example, the name of the tab switches to 1.rand.quote.step = 0.01_1m
After the data downloading is completed, click on the Save and Run button located in the upper right corner of the First* window.
The script will be compiled and switched to the tab with the chart. Thus, the first script is created and is ready for developing a trading system.
This script has a very simple algorithm - displaying an instrument on a chart.
If you put the mouse cursor on the vertical or horizontal axis and turn the mouse wheel, you can zoom out or zoom in.
The TSLab trading platform is designed specifically for traders and includes tools for developing, optimizing and launching trading scripts and personalized trading terminals. Creating your own trading strategy in TSLab does not require programming skills. All the necessary operations to create a trading system are performed using ready-made visual design blocks.
Automatic and semi-automatic trading. TSLab implements the technology for creating and using automated trading programs (agents) that perform trading operations without user intervention. If necessary, the user can adjust the operation of agents in manual mode;
Visual editor. A unique technology that allows you to create and improve algorithms of any complexity without knowledge of programming languages. The TSLab program implements an extensive library of indicators and elements of trading mathematics in the form of visual blocks. TSLab makes it possible to implement your trading strategies in the form of a scheme, simply by connecting the blocks together.
Testing trading strategies. In TSLab, you can test the developed trading strategy on historical data. Based on the research results obtained, it is possible to optimize the trading strategy before starting real trading on the exchange;
Trade diversification. Simultaneous working with several brokers and exchanges, which makes it possible to conduct independent trading operations on different platforms, with many tools;
Pre-trade restrictions and risk management module. The module checks applications for compliance with predefined filters and blocks, or removes them in case of violation of the requirements. Notifications of violation of terms and blocking applications can be sent through the notification system;
Safe script container. Script containers protect valuable strategies. The main task of the container is to restrict viewing and editing the algorithm contained in it;
Instant notification system. Using the instant messaging system, you can control the operation of the system by e-mail or via the Telegram messenger;
User-friendly interface. In TSLab it is possible to customize your workspace due to an extensive set of tools. The program is available in light or dark visual design, so you can choose the most comfortable mode for your eyes;
Flexible API. TSLab API is a set of ready-made libraries on the .NET platform that allow you to create trading scripts and indicators for TSLab;
Microsoft has officially stopped supporting Windows 7 and Windows 8. Therefore, the platform may not start or may work incorrectly.
We recommend using Windows 10.
ATTENTION! Please note that TSLab does not support Macintosh. Support is not available for iMac machines!
ATTENTION! TSLab is not designed to execute HFT algorithms
If you do not use the graph limit on the number of candles and the number of candles exceeds 20,000, the program will not be able to free memory timely, which may lead to the "Out of Memory Exception" error and the program will crash. This situation is most common for the 32-bit version.
In case of using tick or second charts, you should use the 64-bit version to ensure the stable operation of the software, unless a quantitative limit to 20,000 candles is applied.
If the number of candles is unlimited and the script with the active parameter "Update in real time" (laboratory mode) is running on an ongoing basis or the agent is running, it is recommended to restart the program daily (manually or according to a schedule), but at least once a week.
To ensure recalculation of agents with minimum delay, one processor core per agent is required.
ATTENTION! TSLab Technical Support does not address resource shortages when working on virtual machines. Overselling is an important feature for Servers Symptoms are brakes without any reason at the same time.
License servers are used to verify the authenticity of the license key:
Key verification occurs every time you connect to the data provider
Check the server numbers with the broker, by default in the program, the current broker's server is specified in the data provider settings. However, there are times when the server is already out of date.
The TSLab development team strongly recommends configuring the antivirus in such a way that there is no interception and scanning of the Internet stream. Interception can lead to slowdowns. On the trading machine, it is better to disable all Internet connections and create exceptions for the broker's and TSLab's servers.
Configure the antivirus firewall and firewall according to the creator's documentation.
For normal operation of data providers, including text sources, install all current Windows updates available in your region. All current Windows regional settings must fully correspond to the country of the physical location of the computer on which TSLab is installed.
The absence of some updates, for example, related to regions and times, can lead to serious errors and problems when trading.
In general, the connection of the program to the servers of the exchange or broker is carried out as follows:
Get a login and password to the server from a broker or create an API key in your personal account on the website of the cryptocurrency exchange.
Purchase a license for the selected data provider in your TSLab personal account. After paying for the selected connector (in some cases, the connectors are free), a letter with a license key will be sent to the mail indicated during registration. Also, data on the purchased connector can be obtained in the Personal Account in the Contracts section.
Launch TSLab program. Open the Data Provider window:
Method # 1: In the Main menu, select Data -> Data Providers. Click Add and select Online Data
Method # 2: In the Main menu, select Data -> Add online data provider
Select your data provider from the list and give it a name under which it will be saved in your list of providers.
Configure your data provider according to the information received from your provider / broker and click Next
In the Data Providers window, select the saved data provider and click the Key button. Enter the key created in your TSLab personal account (TSLab Personal Account - Contracts), click the OK button
After the key is entered, you will be able to access the button to launch the data provider in the Operation column. Click the button to establish a connection.
The program will inform you about the connection status in the Data Providers window:
red color of the button means an error in establishing connection,
yellow color means that the connection is in progress,
green color means that connections have been established and you can carry out trading operations.
Check the box in the Status bar column to activate the slider button in the Status bar. The color of the slider button in the Status bar also informs you about the connection status.
Using the Schedule manager menu, you can configure the automatic start of the data provider on the day and time you specify.
Note. To start the data provider automatically, the TSLab application must be running
To configure the automatic start of the provider, click on the button with three dots in the Schedule manager column.
In the Edit Schedule window that opens, fill in the data for the provider's automatic launch schedule. Click on the OK button
To start the created schedule, in the Providers window, move the Schedule manager slider to the extreme right position. In this case, manual control of the launch of the data provider will be blocked.
In the given example, we will consider the process of creating the "Moving averages crossover" trading strategy algorithm. At the intersection of the two averages from below, we enter a long position,
In the previous article () a script called First was created. We will use this script to create a new algorithm.
Open the First script by double-clicking the left mouse button or by clicking the Edit button in the panel with buttons. Go to the Editor (Script) tab.
In the Toolbar window, set the mouse pointer in the search field. Enter the SMA abbreviation. After that, the SMA indicator will be displayed below the search bar.
Select the SMA indicator and while holding the left mouse button drag it to the Editor.
Connect the SMA block to the Closing blocks and to the Main chart. To connect the blocks you need:
Set the mouse pointer in the on the block's input/output icon.
Hold the left mouse button.While holding the left mouse button, stretch the connecting line to another block with which you need to establish a connection.
For your convenience, you can change the color and thickness of the lines displayed on the chart. To do this, you need to click on the line connecting the SMA block to the Main chart block.
After selecting the connecting line, the Properties menu will be available to you. As an example, we will change the thickness and color of the line.
Save and run the script.
After the script is compiled, the results will be displayed on the chart.
According to the terms of the strategy, the SMA is taken from the bar's closing, however, the SMA can be taken from any point of the bar: Maximum, Minimum, Opening or from any other significant values in the algorithm.
For your convenience, all tabs can be moved relative to each other. Left-click on a tab shortcut and then drag it down. In the center of the page will appear a choice of places where the tab can be attached. If you have several monitors, tabs can be moved to other monitors. Then place the Editor tab to the right of the Graphics.
To implement our strategy, we need to add another SMA indicator to the script. Connect the SMA block to the Closing block and to the Main chart. Since SMAs currently have the same period, they merge into a single line on the chart.
Assign the name SMAFast to one of the averages. Display the average values on the Control pane block and then configure it.
Let's configure the SMA and SMAFast blocks. To do this, double-click on the Control Panel block.
For SMA and SMAFast blocks, it is necessary to enable the Recalculate option (activates the script recalculation function with each change of parameters).
For SMA and SMAFast blocks, you have to set the type of control. Select the option Numeric up/down.
As an example, in the SMA indicator, set the values:
Current value = 200
Step = 1
Set the SMAFast indicator values:
Current value = 50
Step = 1
Save the settings by clicking the OK button. Save and run the script.
Let's add blocks to the script editor:
Connect the blocks:
the outputs of the SMA and SMAFast blocks with the inputs of the Cross under and Cross over blocks
the input of the Position opening By market block with the output of the Source1 block
the input of the Position opening By market block with the output of the Cross under block
the output of the Market Position Opening block with the input of the Position close By market block
the input of the Position close By market block with the output of the Cross over block
You can configure the useful information displaying on the chart. To do this, click on the Menu button located in the upper left corner. As an example, turn off the name of the Instrument (menu item: ticker).
Let's optimize the created script. Since the volume is constant in the data formed by a random variable, the Volume block can be deleted so that it does not interfere with the chart.
Then you need to open the Optimization tab. Set the Maximum and the Minimum period for the SMA and SMAFast blocks. Choose a step for changing the period values equal to 10. The goal of optimization is to select the best indicators, best indicators' configurations and the best algorithm on a loaded data sample.
In the lower left corner of the Optimization window, set the maximum number of passes for calculations. To launch, click on the Start button.
After the optimization process is completed, you can see the results on the Optimization Results tab.
Sort the results by the Net Profit/Loss column. The row with the highest value in this column can bring the greatest profit. In order to write to the script the values obtained during optimization, double-click on the top line. The optimization process is complete.
The described example can be downloaded in the ready-made form and loaded into the program:
Save the file to your computer. Open the program. Select Lab - Scripts - Download from file. Then specify the location of the downloaded file.
Note You can also load Historical data into the program. You can read more about working with Historical data in the section
CPU
2-core 2GHz
4-core 2 GHz
4 cores 8 threads 3 GHz
8-core 16 threads 3.5 GHz or more
RAM
2 GB
2 GB or more
4 GB DDR4 or more
16 GB DDR4 or more
Hard disc
1 GB
10 GB
50 GB SSD
50 GB SSD or more
Video card
any
compatible with DirectX 9
compatible with DirectX 9
compatible with DirectX 9
Internet connection
256 kb
1 Mbit or higher
1 Mbit or higher
10 Mbit or higher
Operating system
64bit only Windows 10, Windows server 2016 File system NTFS
64bit only Windows 10, Windows server 2016 File system NTFS
64bit only Windows 10, Windows server 2016 File system NTFS
64bit only Windows 10, Windows server 2016 File system NTFS
Attention! It is highly recommended to back up your data before performing the update!
Important! Version 2.1.17 is the final version of the program in the 2.1.x line. Until the end of 2022, version 2.1.17 will only be supported by nightly versions.
Support for crypto providers in version 2.1.17 For version 2.1.17, the crypto-provider libraries were not updated! All updates and bug fixes in crypto providers will only be performed in versions 2.2.x. The TSLab development team does not guarantee the correct work of crypto providers in version 2.1.17. We strongly recommend that users working with crypto providers upgrade to TSLab 2.2.
Fixed: various minor bugs.
Attention! It is highly recommended to back up your data before performing the update!
The "Start all agents" button has been added to the "Autotrading Control Center" window;
A button for group change of providers in sources has been added to the agent settings window;
Added a message / event about the availability of a program update;
New block "Net value by account";
New version of Transaq connector 2.21.14.
Added the ability to change the display dates of historical data in containers when selecting the "Allowed to apply optimization" item;
Improved memory and performance when working with option board;
BinanceSpot: increased tick download limit;
Added the ability of the Cached Data Provider to work with tick data caches;
Increased history length limit when testing on tick data;
OKEx: added display of total futures position. Important! in the account settings on the OKEx website, 'Clean Mode' must be selected;
Added column sorting in the editor on the Parameters tab for those columns where it is allowed.
Fixed an error that caused double logout messages after vendor reconnection;
Fixed an errors in the "Last position has been closed and it was long" and "Last position has been closed and it was short" blocks;
Fixed placing orders via QuikLua on the American market;
Alor: fixed the situation with duplicate orders with a large volume of orders;
ByBit: various bugs fixed;
Fixed an error that prevented changing the Name of the Control Pane block in the editor;
Transaq MMA: the provider has been improved to work with a margin account (the error "Not enough funds" was issued);
Fixed error "NullReferenceException: Object reference does not point to an object instance" in the indicator editor;
IB: fixed IB cancellation;
Fixed an error where after compiling the script, the dependent dll blocks were not added;
Fixed operation of the "Recalc Scheduler" block when working with the Control pane;
Cryptocurrency exchanges: fixed "Tick size" in quotes for cryptocurrency exchanges;
various minor bugs.
Attention! It is highly recommended to back up your data before performing the update!
An error due to which the cached deals of agents were not loaded when the checkbox of the data provider settings "Offline orders/Trades visibility" was enabled;
Binance providers. Fixed an error that occurred when connecting to a provider: "Timestamp for this request is outside of the recvWindow";
An error that occurs while loading tick data for a chart;
various minor bugs .
TSChannel - Service for building automated distributed trading systems
A setting has been added to all crypto providers that saves ticks every N minutes (Save tick, min);
Added detailing in the Agent Control Center module;
Added the option "Detail logging order/trade cache actions", which solves the problem with a long connection time with a large order / deal cache;
Added the ability to configure the parameters of TSChannel blocks in the agent settings window;
Added a new option in the agent settings - "Order Expiration, days";
Added indices for Binance and Deribit: FundingRate, MarkPrice, IndexPrice;
Added the ability to pause during optimization;
In the script manager, a button "Change provider in sources" has been added to quickly change similar providers in script sources;
Removed output of information in exponential format on the chart;
Fixed memory leaks in the My Orders and My Trades windows;
Binance: The option "Download ticks in N days" has been changed to "Ticks loading depth,min". Allows you to speed up the connection if you don't need a large depth of history;
Binance: Improved work with rate limit for multiple data providers;
Okex: Migrated from V3 to V5 API.
Fixed an error related to the option Visibility of deals / orders offline;
Fixed an error that reset the content settings of secondary windows;
Added output of data from the Text block to the Control Panel;
Binance: Fixed a timeout bug that was breaking the agent;
Binance: Fixed an issue where the agent did not see commissions on Binance Spot;
Binance Spot: Fixed due to changes to the exchange API;
BitMEX: Fixed various minor bugs;
Deribit: Fixed a bug that occurred when a conditional order was triggered;
IB: Fixed work with orders created during non-trading hours and after reconnections;
IB: Fixed error "Reading after end of stream is not possible" for some contracts;
QuikLua: Fixed a bug due to which the account when creating an order was different from the account in the sent data on the order;
Rithmic: Fixed local time setting;
various minor bugs.
Attention! We strongly recommend to backup your data before update!
New Data provider OKEX Futures;
New Data provider Binance Margin;
Implemented "Agent Control Center" (experimental);
New block "Stacked Trade Statistics";
New block "Position by name";
In the menu "Program Settings" - "Trade" added the option "Minimum script recalculation interval".
Updated version of Transaq connector;
Updated version of Transaq HFT connector;
In the IB Data provider Settings window, the option "Load trades" has been added, which allows enabling / disabling the loading of ticks upon connection;
The number of entries in the "Sum up", "Max" and "Min" blocks has been increased;
The logic of sorting block names in the "Optimization" window has been changed;
In the "Toolbar" window, added the ability to expand / collapse the lines of the block tree by double-clicking;
Added a field with a description of the error when the mouse pointer is over the block;
The auto login mechanism has been redesigned for QUIK;
For RTS Plaza 2, the ability to manually enter the "Custom start trading time" in milliseconds has been added;
The work of the Trade Statistics Upper and Lower Level blocks has been accelerated;
Finam Data provider - added support for American Stock when QuikLua is connected.
Bug fixes / changes made to Binance COIN, Binance Spot, Binance Futures, Transaq HFT, Deribit, Bitfinex, Smartcom, Rithmic providers
Added the ability to insert text consisting of several lines into the "Comment" block;
Fixed a problem with loading a container made in the previous version of TSLab;
Binance Providers - error exceeding data upload limits (2400 requests per minute);
In the script manager, the sorting has been fixed for the "Creation Date" and "Modification Date" columns;
Added check for reserved characters in block names;
Fixed the work of the "Start time" parameter of the "Trade Statistics" block;
Fixed an error in working with the "Control Panel" when using a container;
various minor bug fixes and improvements.
Attention! We strongly recommend to backup your data before update!
Added new "Previous value" block;
Added new "Stacked Trading Statistics" block;
Added display of positions for all instruments in the Agents window.
Improved optimization and memory load speed on multi-core processors;
Added the ability to display custom optimization results on a 3D chart;
Updated FORTS work schedule for 2021 in the program;
Transaq New provider has been renamed to Transaq in the list of online data providers;
In the "Quotes" window, the "SumBid" and "SumAsk" fields for Binance and Deribit have been improved;
Implemented work with Quik 8.10.1.1;
Updated the Transaq library to work with the new version of the Finam broker server software;
Changes made to the process of scaling the chart using the mouse wheel.
fixed an error that occurred when selecting scripts ;
removed the simultaneous saving of the program database when saving the script to an external file;
fixed an error that occurred when working with optimization results;
fixed an error that occurred when using the "Event" block as a source of conditions for an order;
fixed an error in the work of limiting the number of orders in Risk Management;
fixed negative values of control panel elements;
fixed incorrect operation of left / right movement arrows when working with multiple windows;
changes in Risk Management were not always savedя;
fixed trading session settings for SPC.Transaq data provider;
fixed time filter for group in Risk Management;
fixed display of data when selecting a new contract for an agent in the Agents window;
fixed an error that occurred when deleting agents;
Transaq: fixed reopening of a position during long breaks between trading days;
fixed properties of type enum (selection from the list) in optimization;
Bittrex: fixed number of decimal places for instrument price;
fixed display of Sharpe / Sortino ratios during optimization;
fixed an error when exporting optimization results to Excel;
fixed updating of source information from a text file when paired with a source connected to a real connector;
Interactive Brokers: the disappearance of instruments from the list of securities;
Okex: fixed getting positions;
Okex: fixed work with placed orders when restarting the program ;
IQFeed: fixed work with Interactive Brokers;
Interactive Brokers: loading of skipped bars when TWS terminal is restored;
various minor bugs.
Attention! We strongly recommend to backup your data before update!
Deribit: fixed connection problems;
The former logic of the ATR indicator has been restored for compatibility with old scripts. Block renamed to ATR (Old). Made a new ATR block;
various minor bug fixes and improvements.
Attention! We strongly recommend to backup your data before update!
New data provider Binance Coin-M
Bittrex: added trading history
Binance Futures: fixed an error when connecting a data provider;
Binance Futures: fixed the freezing of the request queue while the data provider is running;
Bittrex: modified the mechanism of formation of prices candles;
Bittrex: increased inactivity timeout;
Bittrex: transfer to the V3 API;
Interactive Brokers: edits for working with deals;
Binance: transfer to updated API;
Bitmex: fixed reconnection problems;
QuikDDE: improved connection process;
QuikDDE: fixed position display after reconnection;
fixed incorrect work of the "group" frame in the visual script editor;
withdrawal of profit/loss when the line of deals is collapsed in the agent;
fixed work with instrument subscriptions;
displaying an error message when canceling an order;
fixed sorting in the position window;
improved work of the script optimization process;
fixed dumping parameters from external script in editor after closing;
fixed display of the price of a related order after reconnection;
fixed rounding of fractional volume values when sizing positions;
fixed message output when the volume is set less than the minimum;
fixed construction of a standard second chart from a tick chart;
various minor bug fixes and improvements.
Attention! We strongly recommend to backup your data before update!
added a script loading indicator when opening the editor;
added the "Copy" button, by which the notification handler is copied (if allowed for this handler type) with all filters and settings.
fixed an error where trade data from the Alor data provider was not loaded;
fixed an error with loading indicators in some situations;
fixed a bug in the order manager that caused it to freeze when working with the Binance Futures data provider;
fixed display of comments and tags when selecting a script during Agent creation;
fixed calculation of accuracy in entry price if tickers have different price accuracy;
the process of calculating the Sharpe / Sortino ratios has been improved;
various minor bug fixes and improvements.
Attention! We strongly recommend to backup your data before update!
The "Calculate Sharpe / Sortino Ratios" parameter has been added to the Program Settings menu.
various minor bug fixes and improvements.
Attention! We strongly recommend to backup your data before update!
New data provider: cryptocurrency exchange OKEx.
added Sharpe ratio with monthly calculation to the Optimization Results table and to the Result table;
added Sortino ratio to the Optimization Results table and to the Result table;
added the ability to set the minimum interval for dumping screenshots to disk equal to 1 sec.
Interactive Brokers: improved data provider, fixed work with requests;
fixed the error when the trade settings of the script were not loaded into the created agent;
fixed error in ATR indicator calculations;
various minor bug fixes and improvements.
Attention! We strongly recommend to backup your data before update!
Ricom Trust: restored connection to the Ricom Trust server;
fixed error that caused the Agents to hang during their launch;
various minor bug fixes and improvements.
Attention! We strongly recommend to backup your data before update!
New data provider LMAX Global.
Interactive Brokers: added an option that limits the number of days to download ticks; Interactive Brokers: added skipping bars with zero volume; Transaq: improved processing of related orders in Transaq; text files data provider: fixed statistics calculation when working with tick data; block "Profit (in N positions)": fixed work of "Profit kind" parameters; block "Trade Statistics": added the ability to specify the date and time of the start of the calculation of trade statistics; block "Save to Global Cache": added the ability to save data between program launches and recalculations; block "External C# script": added the ability to delete multiple files from an external script ; new menu for selecting parameters of the time interval on the chart; added the ability to accept negative prices in the Order manager; changed the Agent settings window; drawdown for closed positions and recovery factor for fixed drawdown added to the "Results" table;
QuikLua: fixed error loading charts; QuikLua: fixed error loading a large amount of historical data on a minute chart; Interactive Brokers: fixed error causing disconnection from the data provider when requesting an expired instrument from quotes; Interactive Brokers: fixed error related to displaying the Account; Interactive Brokers: fixed error canceling orders; Interactive Brokers: fixed error loading historical data; Interactive Brokers: fixed position opening error; Binance: fixed error creating an order with an amount equal to '0'; Binance: fixed error "Timestamp for this request was 1000ms ahead of the server's time." ; Bitmex: fixed error opening a position for a free license saving cache when switching from version 2.0 to version 2.1; updating the name of the chart panel in the script editor; preservation of block connector colors; recalculation from the control panel, when changing a parameter; fixed error in block «Changed Position Exit Bar Number»; various minor bug fixes and improvements.</li>
</ul></p> </body> </html>
Attention! We strongly recommend to backup your data before update!
New provider BitMEX.
Transaq HFT: updated Transaq HFT library.
Binance, Deribit: Buy/Sell recalculating interval error ; Binance: fixed errors during processing orders/deals in a special situation; text files data provider: price step was not read from settings; fixed error while saving agent message window settings; Alor: fixed errors during receiving data from Alor servers (due to a change in the exchange protocol); Quik: fixed errors during processing orders/deals processing using Quik DDE; various minor bug fixes and improvements.
Attention! It is highly recommended to back up your data before performing the update!
Fixed a critical error in which, after loading the program, canceled conditional orders became active;
ByBit: fixed error connecting to the ByBit Inverse Futures data provider;
Interactive Brokers: fixed an error in displaying transaction prices “by market” on the chart;
Interactive Brokers: fixed a bug where transaction data on the chart was displayed with a delay.
Fixed a bug in the operation of the "Download script" button in the "Scripts" window;
Portfolio testing: fixed an error that occurred when trying to add a script containing errors;
Various minor bugs.
Attention! It is highly recommended to back up your data before performing the update!
Block "Calculated tradable source (Instrument)" with variable price step cost;
The transition to the .NET 8 platform has been completed;
Portfolio testing: the "Deposit" option has been added to the portfolio settings;
On the "Optimization" tab, the state of the "Remove negative or zero P/L results" parameter is remembered when saving the script;
Cryptocurrency data provider libraries updated;
Authorization in TSVerse: by selecting the main menu item "TSVerse - Sign In" in the program, authorization will be performed in the default browser selected in the system;
Binance: fixed an error that occurred when trying to cancel an order;
Binance: fixed an issue with high memory consumption when working with Binance Funding Rate;
ByBit: fixed a bug where liquidation transactions by instrument were not displayed in the program;
ByBit: fixed an error in displaying Trades on a Unified Trading Account;
ByBit Perpetual: corrections have been made to the "Free Money" block. When working with a Unified Trading Account account, the block did not display data;
BitGet: fixed calculation of commissions in agents;
Deribit: fixed error loading bars in agents after data provider crash;
OKX Spot: fixed a bug where orders were not placed “By market”;
OKX: changes have been made to the formatting of error messages in the "Message Log";
OKX Perpetual: solved the problem with displaying the number of lots in the "Message Log" and the value of the P/L parameters in the optimization results;
OKX Swap: fixed an error in placing an order when the connection to the data provider is lost;
IB: fixed a bug that led to a loop in the candle loading procedure and false signals in agents.
Fixed an error in the calculations of the "Recovery Factor" when working with two or more instruments;
Corrections have been made to the algorithm for calculating the "Maximum drawdown" for a variable position;
TSChannel: fixed an error updating the values of the "API Key" parameter of the "Receiver" and "Transmitter" blocks on the "Control Panel";
Fixed an error loading the list of instruments from the folder with saved data with candles in the "Cached Data" provider;
In the "Agents" window, saving of the selected sorting for the "Agent" column has been fixed;
Fixed an error loading the last candle on the chart when selecting the "Session End" time in the script settings;
Fixed a bug where changes made to script properties from a container could be saved without confirmation in the dialog box;
Fixed bug with timeframe selection in script containers;
Fixed an error in the agent trading settings parameter "Auto fix dbl. exit";
Fixed a bug where orders for the BNB-COIN instrument were not placed;
Fixed an error in the algorithm of the "List of instruments" block that occurs when the connection with the data provider is lost and then reconnected;
Portfolio testing: fixed error displaying data when working with several "Result for optimization" blocks in one script;
Portfolio testing: corrections have been made to the drawdown calculation algorithm;
Fixed an error in displaying data in the "Tick size" and "Price step cost" columns of the "Quotes" window;
Fixed an error that occurred when using service characters in the name of a saved set of script parameters;
Fixed a bug in the mechanism for loading indicator libraries in the "Indicator Libraries" window;
Various minor bugs.
Attention! It is highly recommended to back up your data before performing the update!
Added new data provider: KuCoin;
Agent trading settings: Added the "Stop if Timeout" option, which stops trading by the agent if the waiting time is exceeded;
In the "Optimization results" table, a "Mark" column has been added, which allows you to mark the selected rows.
ByBit Inverse Futures: API V5 support has been implemented for the data provider;
OKX: In the data provider settings, the "Calculation of lot at face value" option is enabled by default;
Portfolio testing: portfolio calculation algorithms have been optimized, RAM memory consumption has been reduced;
On the "Log" tab of the laboratory, a display of script recalculation time has been added;
The broadcast of screenshots from TSLab has been reworked:
the broadcast setting has been moved from the "Program Settings" to the context menu of the "Tab" (right-click on the name of the "Tab");
the broadcast is assigned to the selected sheet, which makes it possible to create several broadcasts;
broadcasting is carried out either to the TSVerse server or to a local disk. Removed the ability to broadcast images to Google Drive, DropBox and to a remote server.
The function to automatically disable the "Hide Links" button in the Lab Editor is disabled when adding a new link between blocks;
The Autotrading Control Center window. In the "Creation Date" column, filtering will be performed only by date without taking into account time;
When saving changes in the agent, an information message has been added to the "Message log";
The possible number of characters in the name of a set of script parameters has been increased.
Binance Futures: resolved the issue of connection loss when working with multiple Binance data providers at the same time;
Binance: the problem of loss of connection with the data provider during connection has been resolved;
ByBit: fixed commission calculation on the "Trades" tab;
ByBit: the problem of long-term connection to the exchange has been resolved;
Alor: the problem with processing fictitious transactions on the St. Petersburg Exchange has been resolved. In the data provider settings, the option “Do not ignore zero trade volume” has been added (disabled by default);
Quik Lua: fixed a bug that led to double exits from a position;
Various errors in the work of suppliers have been fixed:
Binance
ByBit
OKX
The cache for loading trading statistics has been optimized;
Fixed an error in saving a new agent name;
Fixed an error in the operation of the "Risk Management" module that affected the values in the "Balance price" column of the "Positions" window;
Fixed an error in entering block parameter values for a simple chart;
The problem with multiple submission of orders when the Linked orders mode is enabled has been resolved;
Optimization results: when you cancel saving results to the repository, the tab name is not deleted;
Various minor bugs.
Attention! It is highly recommended to back up your data before performing the update!
Added the ability to save and load optimization results;
Changes have been made to the script container key format:
Containers created in earlier versions of the program can be loaded on version 2.2.14.0.
Containers created in version 2.2.14.0 cannot be loaded in earlier versions of the program.
New interfaces and methods of TSLab API:
INeedVariableParentVisuals - List of names of parent blocks (sources) separated by a semicolon;
INeedVariableParentIds - List of identifiers of parent blocks (sources) separated by a semicolon;
INeedVariableParentNames - List of names of parent blocks (sources) with parameters separated by a semicolon;
Methods have been added to the IRuntime2 interface to get information about agents;
Data providers:
OKX Perpetual Swap и Futures: added filling of columns "Upper limit" and "Lower limit" in the "Quotes" window;
ОКХ Perpetual Swap: fixed lot size;
Interactive Brokers: added multiple deletion of old contracts;
Interactive Brokers: the process of connecting to the data provider has been optimized, the connection speed has been increased;
Deribit: added support for XRP_USDC_Perp contracts;
Binance: added reloading account data when restoring a broken WebSocket connection;
Other:
Block "Profit (whole period)": added parameter "Direction trades" (All, Buys, Sells);
"Import/Export Values" blocks: added the ability to work with the "Control pane" block;
"Scripts" window: added the ability to filter the "Name" column by the name of Catalogs;
When creating a copy of the script, the setting of the selected optimization mode is saved (Random, Brute force);
Export to Excel: the name of the saved file is substituted with the name of the script or agent;
"Scripts" window: added "Agents count" column. Shows the number of agents bound to the script. Hidden by default;
Portfolio testing: Added "Change portfolio name", "Edit portfolio" and "Clone" buttons. Button icons have been changed;
Portfolio testing: added "With a securities" button. When adding scripts, it is possible to select default instruments (the instrument selected in the "Tradable instrument" block of the script);
Portfolio testing: corrections have been made to the filters of the "Settings" tab of the portfolio;
Portfolio testing: improved sorting by the name of the scripts in the "Settings" tab of the portfolio;
Data Providers:
OKX Perpetual Swap: fixed a bug that caused double exits from a position;
ОКХ Perpetual Swap: fixed bug in profit calculation;
Bybit: fixed a bug that caused double exits from a position;
ByBit: Fixed an issue that caused the data provider to take a long time to load;
ByBit Perpetual: fixed a bug that caused a discrepancy between open positions on the exchange and in the agent;
ByBit: fixed a bug that caused the data provider to freeze after losing internet connection;
Binance Futures: fixed error connecting to data provider;
Binance: fixed a bug that caused the message "Client order id is not valid" to appear;
Interactive Brokers: fixed errors in the work of the IB data provider in conjunction with IQFeed;
Interactive Brokers: fixed error loading own deals when reconnecting to a data provider;
BitMex: fixed bug in profit calculation;
"Positions" window: fixed errors in the displayed data for crypto exchanges;
Fixed various bugs in data providers:
Binance
ByBit
OKX
Other:
Fixed a memory leak during optimization when using graphs of non-threaded processors;
Risk management module: fixed a bug in the "Limit of long position by volume in money" option;
Agent parameters: fixed a bug when a new set of parameters from a script was not displayed in a disabled agent;
Block "Control panel": fixed a bug where the specified restrictions on the values of block parameters did not work;
Security sets: sorting for instruments in the table has been fixed;
The problem with the discrepancy between the data obtained on the "Optimization Results" tab and the data from the "Results" tab of the script has been solved;
Block "Decompress": corrections have been made to the operation of the block;
Fixed the problem with unexpected termination of the program in case of using several sources of trade data in the agent;
Fixed the problem with the impossibility of placing an order at negative prices;
Fixed the problem with the execution of the signal with the "Many exit signals" option enabled and the simultaneous use of related orders has been solved;
Fixed a bug that caused the swap file to overflow during optimization;
Fixed a bug that caused an unexpected termination of the program when switching between tabs and script windows;
Fixed error copying blocks from one script to another;
Block "Change Limit price": fixed errors when working with negative prices;
Fixed an error that occurred when correcting a double exit from a position after clicking on the "Forget errors" button;
The problem with saving the program configuration when working with options has been solved;
Fixed a bug in the "Search" button of the Laboratory editor;
A bug has been fixed that caused the indicator settings to fail if the set of parameters loaded into the script does not contain these indicators;
The problem with saving the path to the backup folder is solved;
Risk manager: fixed a bug where when the "Allow orders at a loss" option was enabled, the filters "Time intervals when trading is prohibited" were ignored;
Fixed the problem with saving column settings on the "Trades" tab of the agent;
Added setting of the workspace modification flag when changing the option board in the control panel;
"Parameters" window in the agent: fixed rounding of fractional numbers in the parameter values table;
Changes have been made to the formulas used to calculate the Sharpe and Sortino ratios;
Fixed a bug that did not allow updating the container after its expiration date;
"Agent's trading settings" window: fixed operation of the "Sort parameters alphabetically" button on the "Parameters" tab;
Various minor bugs
Attention! It is highly recommended to back up your data before performing the update!
Binance: added the ability to download historical Funding Rate data;
QuikLua: added an information message in the "Message Log" when the Quik terminal is disconnected from the server.
ByBit Spot: solved the problem connecting to the data provider;
ByBit: the problem of removing orders that do not exist on the exchange has been resolved;
ByBit: solved the problem of placing orders in certain situations;
QuikLua: solved the problem of connecting to the exchange on a schedule;
Tinkoff: added the Google.Api.CommonProtos.dll library, the absence of which led to an error in the operation of the data provider.
Fixed a bug that led to the disappearance of "Sources" blocks from the script in case of an error loading a third-party library (*.dll);
Fixed a bug due to which, when using a self-made portfolio value indicator, the agent could start with an error;
Fixed an error in the formation of the first candle on the chart when the start and end times of the trading session were set in the agent’s trading settings;
Portfolio testing: fixed error in working with the "Result for optimization" block;
Fixed an error in the simultaneous use of the "List of instruments" and "Tradable Instrument" blocks in the script;
Fixed an error in sorting the values of a saved set of parameters on the "Parameters" tab of the script;
Fixed a bug where the "Parameters" field was no longer displayed in self-made indicator blocks;
Fixed an error in launching the script in a certain situation with an external indicator library;
Fixed an error in displaying parameter values in saved sets on the "Parameters" tab of the agent;
Various minor bugs.
Attention! It is highly recommended to back up your data before performing the update!
Data providers:
ByBit: API V5 support implemented;; ByBit users, please note that as of October 16, the ByBit exchange will no longer support the old version of the API V3. We recommend updating TSLab to version 2.2.15.0 in advance.
Other:
The "Disable price correction" option has been added to the laboratory properties. The option only works on historical data;
TSVerse project: Translation of workspace images from TSLab to TSVerse has been implemented;
A new block "CCI" has been added, in which inconsistencies in the calculations of the CCI indicator have been corrected. Previous version of CCI block renamed to "CCI (old)".
"Autotrading Control Center" window: added ascending sorting for the filter in the "Ticker" column;
Message log: the agent name has been added to the message “The previous operation with the request is still in progress”;
Agent "Parameters" Tab:
"Collapse", "Expand" and "Load" buttons have been added under the tree of parameter sets from the script;
the highlighting of the last loaded set works on both trees;
in the middle table (in which the parameters are displayed) sets from both trees are now added: script and agent;
if the value of any parameter changes for a loaded set of parameters on the “Optimization” tab, then the flag of the loaded set on the “Parameters” tab is cleared;
Optimized deletion of orders in the "My Orders" window when disconnected;
Agent Control Center: program freezing when opening a list of deals (with numerous deals in the cache) has been eliminated;
Saving optimization results:
in the "Select results from the Repository" window, the columns "Creation date", "Record count", "File size" have been added;
when saving optimization results in the repository, the name of the tab with the results changes to the saved name;
Portfolio testing:
on the "Strategy Correlation" tab in the "Name" column, records are aligned to the left;
added an "Include" column allowing you to add or exclude strategies from the calculation of overall results;
For the "Save to Global Cache" block, the "Do not trim" option has been added. When the setting is enabled, the data will not be trimmed by the number of bars and by dates;
Changes have been made to the table of the "Agent Control Center" window:
the "Calculated Position" column has been renamed to "Common Position" and moved to the end;
a column “By agent trades” has been introduced - calculated position for agent transactions;
a column "Δ Agents" has been introduced - the absolute value of the discrepancy between the brokerage position and the settlement position for agents;
the “Align” button has been added to the “Δ Agents” column - places a limit order with the specified value;
the column "Δ Summary" has been introduced - the absolute value of the discrepancy between the brokerage position and the calculated one for agents;
the “Align” button has been added to the “Δ Summary” column - places a limit order with the value of the total discrepancy;
"Action" column removed.
Data Providers:
Binance: fixed a bug where instruments were not displayed in the provider settings;
Binance: fixed a bug causing the message "Server rate limit exceeded";
ByBit: fixed order expiration error;
Deribit: fixed the minimum lot value for options;
Deribit: the formation of values in the "Balance price" and "Assessed price" columns of the "Positions" window has been corrected;
Transaq: the problem with incorrect display of account balance has been resolved;
Fixed various bugs in data providers:
Binance
ByBit
OKX
Other:
Repository Manager: fixed bug with resaving imported optimization results;
Control Panel Editor: fixed a bug that caused displacement of selected objects on the control panel in the laboratory editor;
Fixed an error that occurred when loading optimization results;
Fixed a bug where the Laboratory and Agent tabs were included in the list of open windows (Main menu - Windows);
Improved algorithm for replacing block names in the "Formula Editor" of the "Formula" block using a global search in the Laboratory editor;
Changed default directory for storing text data for offline providers;
Fixed a bug where it was impossible to launch an agent that used the "List of instruments" block;
Solved an issue where it was impossible to link an order to an agent if an option was used as a trading instrument;
Parameters: fixed a bug where the saved set of parameters for a container could contain extra parameters (from deleted blocks);
Fixed a bug where the price of a partially executed active order was incorrectly determined, causing it to be re-issued;
Fixed a bug where the lists of available parameter sets disappeared in the agent's "Parameters" window when saving a new set in the source script;
Fixed a situation where, after launching the program, before the transaction history was fully loaded, agents could start working;
Agent Profit Chart: Fixed the algorithm for calculating the Median Profit when there are positions outside the current history;
Changes have been made to the calculation of the Results of the script in the Laboratory when several orders are triggered on one bar;
Fixed a bug that caused memory leaks during optimization;
Fixed a bug that led to double exits from a position in multi-order mode;
Portfolio testing: fixed a bug that caused the data calculation process to freeze;
Various minor bugs.
Block: SMA
Simple (arithmetic) moving average. It is calculated by adding the incoming values, for example, instrument's closing prices total amount for a certain period divided by the length of the period.
Block: Control Pane
A panel on which you can add control elements that control the optimization parameters of blocks.
Block: Cross over
The function determines the moments when the second input (signal) crosses the reference line (first input) from top to bottom. The top link = what we cross. The second link of the block = using what we cross.
Block: Cross under
The function determines the moments when the second input (signal) crosses the reference line (first input) from the bottom up. The top link = what we cross. The second link of the block = using what we cross.
Block: Position opening By market
Opening a position at the first prices offered on the market. In calculations on the history, the opening price of the next bar is used. The first link from the Market Position Opening block is always connected to the Source, as there can be many sources in the Editor. If you move the mouse cursor over the links in the Block, each input is signed, so, in the editor, you can always determine which type of data the Block needs for calculation.
Block: Position close By market
Closing a position at the first prices offered on the market. In calculations on the history, the opening price of the bar following the signal is used.
Nightly Build – is a build performed between Release builds of the software. Corrections from the nightly builds of the software fall into the next release build version of the software.
The nightly build version number is as follows: 2.X.XX.ХХ
ATTENTION!
Nightly builds may contain changes that did not pass the testing procedure. In this regard, TSLab Technical Support recommends using Nightly builds only in the following cases:
Technical Support specialist examined the situation you encountered and recommended you installing the Nightly Build;
the list of fixed problems contains the one that is encountered by you.
In other cases, TSLab Technical Support recommends using the Release build version of the software.
TSLab 2.1 Nightly Build URL: http://www.tslab.ru/files/prerelease/TSLab210NightBuild.tsupdate
TSLab 2.2 Nightly Build URL: http://www.tslab.ru/files/prerelease/TSLab220NightBuild.tsupdate
Before updating the TSLab program, we strongly recommend that you read the article Preparing for update.
The TSLab User Support Service recommends updating the TSLab program when agents are turned off and there are no open positions.
In TSLab 2.2, you can upgrade the program to the Nightly build version by selecting the menu item Tools -> Update to a nightly build.
You can also open the nightly build installation window by pressing 4 keys "Ctrl" + "Alt" + "Shift" + "u"
In the window that opens, select "Current nightly build". Click the OK button to start the update.
Wait for the update to finish downloading. The loading indicator is located in the lower right corner of the main program window.
After downloading the Nightly build, you will be prompted to restart the program. Restart the program.
You can check the relevance of the installed nightly version by opening the program window Tools -> Update to a nightly build. For the menu item Current nightly build, the comment "Сurrent version is a latest build" will be added.
You can also update the program to the Nightly build version using the direct address of the Nightly build version:
Select Use URL to update.
Paste the link http://www.tslab.ru/files/prerelease/TSLab220NightBuild.tsupdate into the text field next to the selected item.
Click the OK button to start the update.
If for some reason you do not have an Internet connection on the computer with TSLab installed, you can download the update file on another PC and install the Nightly build version via the Use file to update menu item. You can download the file with the Nightly build version of the program at: http://www.tslab.ru/files/prerelease/TSLab220NightBuild.tsupdate
Before performing the TSLab update procedure, we strongly recommend that you read the article Preparing for update.
TSLab Technical Support recommends upgrading TSLab when agents are switched off and there are no open positions.
In the main window of the TSLab software, hold down the 4 keys "Ctrl" + "Alt" + "Shift" + "u"
In the window that appears, select "Use URL to update".
Copy the URL and paste it into the program:
http://www.tslab.ru/files/prerelease/TSLab210NightBuild.tsupdate
Click OK to continue.
After finishing the update installation, the program will suggest you to restart the TSLab software. To continue press "Yes".
In TSLab 2.2, you can restore the program to the latest Release version by selecting the menu item Tools -> Update to a nightly build.
In the Update to a nightly build window that opens, select the Release build (x.x.x.0) menu item. To start the recovery process, click the OK button.
Wait for the download process of the release version to finish (the recovery file download indicator is displayed in the lower left corner of the main program window), and then restart the program to complete the installation.
This operation can only be performed if the previous version of the Nightly Build was not removed from the server. If the previous version is removed, then it has big problems, or it is very outdated.
You can also restore the previous version of the Nightly build using Data Backup. To do this, before starting the update of the TSLab program, you need to make a backup copy of the software data (Preparing for the update), and select "Software" among other parameters.
In other cases, downgrade is possible only to the current Release version of the software.
ATTENTION! In order to avoid the loss of important and unsaved data, we strongly recommend that you back up TSLab data before updating the program.
To create a backup copy of the program, select Tools - Create Backup on the main menu bar.
In the window that opens, specify the data that will be saved on your computer, as well as the backup storage directory.
When you select the options to save the data cache in the Backup Properties, it may take a long time to create a backup file.
In some cases, the process of storing the data cache can take up to several hours.
Software update is carried out:
manually ("Manually");
on request for permission to update ("Request permission").
The update mode is selected in the "Program Settings" window.
To check for updates "Manually", use the "Check for Update" command (Main menu | Tools | Check for Update).
If a new version is detected, the program displays a message box that suggests:
accept the update by selecting "Yes";
refuse to update at the moment by clicking "No";
completely skip the update by clicking the "Skip"
ATTENTION! If you selected the "Request permission" mode in the "Program Settings", messages about the missed update will no longer be displayed and the installation of the missed update must be done manually.
The current release versions of the program are available on the website page:
Attention! It is highly recommended to back up your data before performing the update!
Attention container users! Be prepared that account keys will change after the update. Recommendation: stop container agents before upgrading. After the update, create new containers and replace the containers in the Scripts table.
New blocks in the editor:
Average entry price (by security);
Data providers:
QuikLua: "Delay transaction" option added to Data Provider settings;
Other:
Improvements have been made to the work of the Filters system of the Agents window;
Script properties. The "Interval period" setting has been moved to the "Update Modes" group;
Script name length increased to 100 characters;
Added Hotkey "Script Manager. Rename Script";
Editor: In the "Parameters" tab, editing of the "Note" field is enabled;
Added parameter "Script execution timeout" in the script properties ("Common Settings" tab).
Data Providers:
ByBit: fixed a bug causing quotes lag;
ByBit: disabled download Funding Rate;
ByBit: fixed error loading trading history;
ОКХ: fixed a bug causing the execution of extra signals;
Deribit: fixed bug with canceling orders for Solana Perpetual;
Tinkoff: fixed a bug in the work of the "Exclude weekends" setting;
Fixed various bugs in data providers:
ByBit
OKX
QuikLua2
Interactive Brokers
Other:
Fixed error saving changes in the script settings when clicking on the "Cancel" button;
Fixed a bug in the operation of the "Global cache" block in conjunction with the "Order book" block;
Corrected the construction of the time scale of the Chart when using the "Bars indent" option;
Risk management. Fixed bug in the time filter;
Changed the algorithm for calculating the account key;
Fixed indication of double exits;
Fixed a bug that blocked the replacement of the script container if there is an error in the agent;
Fixed a bug in the block "Save to global cache" and "Load from global cache";
Corrected the algorithm for sending signals to the exchange when changing the type of order;
Fixed a bug that caused the "Opening positions" order not to be canceled when the agent was turned off;
Fixed "Wait for exit (entry)" option in agent settings;
Fixed a bug that caused a double exit from positions;
Various minor bugs
Attention! It is highly recommended to back up your data before performing the update!
Block "Format message". The block allows you to create a message with numeric values. Work with string formula is supported.
Added "Auto fix dbl. exit" option. Automatically aligns position if double outputs are detected. For this option to work, you need to enable the "Automated closing (bars)" option;
Added option "Stop if Timeout". Stops trading by an agent if the waiting time for a response from the server indicating that the order has been accepted is exceeded (the value of the "Order Timeout" parameter can be set in the "Program Settings").
New "Indicator Libraries" window showing status and information about loaded third-party indicator libraries (*.dll).
ByBit: added support for a single account for the Spot and USDT Perpetual markets;
ByBit: added USDC swap instruments (instruments with PERP ending, for example BNBPERP);
ByBit: if the connection to the server is lost, the provider will continue to work for 15 seconds, waiting for a reconnection;
ByBit Spot: added exchange conditional orders;
Tinkoff: corrected quotes for futures;
OKX: The option "By market as a limit plus %" has been added to the data provider settings.
Cluster analysis. Added abbreviations to block names:
"Trade Statistics Extremum Price" - (POC);
"Trade Statistics Upper Level" - (VAH);
"Trade Statistics Lower Level" - (VAL).
Changes have been made to the "Cache Settings" option of data providers. The parameters "Storage period of transactions" and "Storage period of executed orders" have been combined;
Updated working day calendar for option blocks;
Repository Manager. Added display of the time the record was created in the "Creation Date" column;
Block "List of instruments". Improved loading and alignment of instrument bar history.
Binance Futures: Fixed an issue that caused delays in issuing orders;
Interactive Brokers: fixed display time of "My trades";
Interactive Brokers: fixed a bug due to which data on completed orders did not get to the agent;
Interactive Brokers: corrections have been made to the process of placing limit orders;
KuCoin: the server time synchronization problem has been resolved. Added automatic time update in the program equal to one minute;
OKX: the process of updating order data in case of receiving information about an error when placing or canceling it has been improved;
Various errors in the work of suppliers have been fixed:
Binance
ByBit
BitGet
Interactive Brokers
Notification Manager: fixed a bug that blocked messages when using the "Show messages from script with name" filter;
Repository Manager: fixed a bug where the calculated Sharpe and Sortino ratios were not included in the saved optimization results;
Corrections have been made to the ToString() method of the OptimProperty optimization parameters in the TSLab API;
Portfolio testing: corrections have been made to the calculation of the “Profit”;
Fixed a problem with data discrepancies on the “Optimization Results” and “Results” tabs of the laboratory;
In the "Central Strike" block for the "Shift strike" parameter, the ability to accept negative values has been added;
Solved the problem with importing parameter values with the same name when transferring a set of parameters from one script to another;
Fixed an error that occurred when loading a script with an unconfigured instrument in Source blocks;
Fixed a bug where orders continued to be sent after the agent was stopped;
Various minor bugs.
Attention! It is highly recommended to back up your data before performing the update!
New blocks in the editor:
Added block "Profits running"
Added block "Variation"
Data providers:
New data provider QuikLua2
New data provider Binance USA
Data providers:
Binance: Implemented Conditional Orders
ByBit: switched to work in One-Way Mode
ByBit: trading in the markets has been implemented:
Inverse Futures
Spot
Deribit: new markets added
OKX: added display of net value in the "Positions" window
Other:
An updated version of the "Save to Global Cache" and "Load from Global Cache" blocks has been added. The previous version of the blocks is saved with the postscript "(old)"
Increased the speed of the algorithm for calculating the indicators "Highest for" and "Lowest for"
An option has been added to the program settings that includes a dialog box for changing data providers when loading scripts from an archive
Added hotkey "F6" to save the script in the lab
A checkbox has been added to the "Select" column header of the "Optimization" window, allowing you to select / deselect all parameters in the column
Added prefilter "Remove negative or zero P/L" in the "Optimization" window
Added sorting and filtering of data in the window "Agent Control Center"
Data Providers:
Binance: fixed occasional data provider crashes
Fixed various bugs in the work of data providers:
Tinkoff
Alor
BinanceFutures
QuikLua2
QuikDDE
ByBit
Other:
If Windows shut down while TSLab was running, the program could crash without flushing the latest data to disk
The "One to many linked parameters" block could not be connected to other blocks if the "Constant" block was connected to the first input of this block
Various minor bugs
Attention! It is highly recommended to back up your data before performing the update!
TSVerse: In the Main menu of the program for the menu item TSVerse added the option "My Purchases"
TSVerse: In the TSVerse menu, the option to create a data provider based on a contract drawn up in the TSVerse personal account has been added
In the "Program settings" - "Script Optimization", the setting "Workstation garbage collection .NET" has been added. Affects the loading of multi-core processors.
OKX Swap: Added "Balance" and "Available" data to the "Accounts" window. Account currency changed to USDT;
OKX и ByBit: Added option "Don't save trades" in data provider settings;
OKX: Reduced CPU load when working with OKX;
ByBit: In the settings of the data provider, the option "By market as a limit plus %" for the execution of market orders has been added.
TSChannel: Added APIKey menu for TSChannel blocks in script properties;
If the broker did not send the price for the execution of transactions, the bar's opening price is used (Previously it was 0 and the "bars" of the market);
Accelerated calculation of the block "Profit (whole period)";
Accelerated calculation of the block "Free money";
Portfolio testing. Fixed sorting in the portfolio table;
Autotrading Control Center window: added sorting for the "Creation date" column;
Blocks "Formula": In the "Expression Editor" added button [-1];
Optimized tick cache memory usage;
Autotrading Control Center window: Fixed "Forget errors" button and agent statistics.
ByBit: Fixed a problem with the work of the "Portfolio estimation" block;
ByBit: Fixed display of "Volume" in the "Quotes" window;
ByBit Spot: Fixed a bug that caused an increase in incoming network traffic;
Deribit options: Fixed bug with placing orders;
Bitfinex: Fixed switching intervals on the chart;
OKX: Fixed a bug where conditional orders did not work;
OKX: Fixed a bug with assigning a number to orders;
OKX Swap: Fixed a bug that caused gaps to appear on the chart when a provider is disabled;
Fixed various bugs in data providers:
ByBit
OKX
BitMEX
Fixed a bug where the transaction history was not cleared in the Autotrading Control Center window when changing the agent name;
Fixed a bug in displaying the optimized parameters of a custom indicator;
Fixed the problem of performance degradation when using the "Compress" block in a self-made indicator;
Scripts window: Fixed Name column filter;
Various minor bugs
Attention! It is highly recommended to back up your data before performing the update!
Added "High limit" and "Low limit" blocks in the Trading Mathematics section;
Added menu item "Update to a nightly build";
Added menu item "Cache folder".
Crypto providers Binance, BinanceFutures, Okex, Bitmex have been updated in accordance with changes in the exchange API;
The tick cache has been redesigned. The new cache has optimized memory management;
BinanceFutures Provider: Added "Subs. to Index data" flag to provider settings. Allows you to reduce the load on the PC for those who do not work with Funding rate, IndexPrice, MarkPrice data;
Block "Position by name": added parameter "Currency";
Added additional options from the script to container settings.
Fixed various bugs in Binance, BinanceFutures, Okex, Deribit, Bitmex providers. Including:
BinanceFutures Provider: Fixed a bug causing position doubling on reconnects;
Bybit Provider: fixed order queue display;
Bybit Provider: fixed bug with submitting an order;
Huobi Provider: Data Provider Connection Error Fixed;
Deribit Provider: fixed a bug where trades on instruments were not executed;
Various minor bugs.
Attention! It is highly recommended to back up your data before performing the update!
Data Providers:
Fixed possible freezes in crypto providers;
Bitfinex: fixed bug in data provider ("Invalid order: maximum size for BTCUSD is 2000");
Huobi: fixed data provider connection error;
Bitfinex: fixed a bug that caused a double exit from a position;
Other fixes:
Fixed error when copying blocks ("No source in script");
Fixed handling of input type (streaming / non-streaming) in custom indicators;
Fixed work of a self-made indicator with the block Logical formula;
Fixed a bug with the "Skip" button in the program update window;
Fixed "hotkey F4" button in floating program window;
Fixed work of links in blocks ("Linked parameter" and "One to many Linked parameters" blocks);
Various minor bugs
Attention! It is highly recommended to back up your data before performing the update!
Added new Data provider: Bitget.
Initial Deposit;
Quote by name;
Average exit price.
Bybit: added setting "Place conditional orders via TSLab" in the Data provider settings;
Interactive Brokers: Added support for the latest TWS API.
For the "Trade Statistics Strings Sum" and "Trade Statistics Extremum Value" blocks, the Minimum and Maximum bar,% parameters have been added;
Script editor: when the "Hide links" mode is enabled, links are displayed only for selected blocks placed on the Editor's workspace;
When creating a script container, a container compression procedure has been added. For new containers, the file extension has been changed from .tscont to .tszcont;
The algorithm for counting positions in agents has been changed (columns in the Agents window: Positions (lots), Positions (money), Long positions, Short positions). Now, if the volume by the amount of transactions on some executed order does not match the volume in the order, then the position is complemented to the volume of the order. If the missing deal comes next, then the order is no longer taken into account;
The Parameters tab has been redesigned in the Script Editor and in agents. Attention! Data about parameter sets are saved in a new format, so when you roll back to the old version of the program, new parameter sets will not be available;
Changes have been made to the menu item "Tools" - "Export to Excel" for a table in the Agents window. The list of exported parameters has been changed;
In the Agents window, for the buttons "Start all agents", "Start selected agents", the ability to enable a request for confirmation of the operation (File - Program settings - Trade - Request confirmation for starting a group of agents) has been added;
In the context menu of the Graph tab in the script and in the agent, the "Reload data" item was added;
Added "Maximum bars" and "Maximum days" parameters to agent settings. At zero values, the values are taken from the corresponding script parameters;
Added percentage selection for the number of optimization runs;
The title of the "My trades" window displays the number of trades, similar to the "My orders" window.
ByBit: corrected the time synchronization procedure;
Fixed various bugs in data providers:
OKX
Rithmic
Fixed commission calculation error in the Agents window;
Control panel: data output in the form of a drop-down list for the "Instrument by name" block in conjunction with the "List of instruments" block has been fixed;
Fixed error in the "Interactive constant" block;
TSVerse: fixed a bug that caused the program to disconnect from the TSVerse service;
Improved search system by block name placed on the Editor's Workspace;
Fixed a bug in working with the cache of providers, when the option "Don't save trades" is enabled;
In the Data Providers Settings, the editor for entering the cache storage period has been fixed;
When ticket blocking is enabled, commands to change active tickets are no longer sent;
Various minor bugs.
Attention! It is highly recommended to back up your data before performing the update!
New data provider Tinkoff.
New block "Lot size". The block returns the number of shares in one lot;
Optimized work with the tick data cache;
Binance Provider. Added option "Don't save trades" to minimize memory consumption;
Added the ability to control from the keyboard in the table Optimization results;
Visual script editor. Search and replacement of text within blocks has been implemented;
Various minor bugs.
Attention! It is highly recommended to back up your data before performing the update!
Portfolio testing: on the "Profit" tab, the "Drawdown" and "Drawdown duration" panels were added;
Portfolio Testing: on the "Profit by strategies" tab, an profit graph for each instrument was added;
Portfolio Testing: added "Strategy correlation" tab which displays the matrix of correlations;
Added a menu for creating sets of securities (main menu item Data - Security Sets);
Added "Batch ticker replacement" menu for futures contracts in the "Autotrading Control Center" window. Tickers can be changed for a selected group of agents. Note! Before changing the ticker, it is necessary to stop running agents.
Binance: Added support for RSA keys.
The following columns have been added to the "Optimization Results" tab: "Bars Held (all trades)", "Bars Held (win trades)", "Bars Held (loss trades)". Invisible by default;
Optimization of the program work with the cache of candles;
Block "Save to Global Cache": added an output that returns saved values. Added parameter "Save to next bar";
Information about the number of the latest nightly build has been added to the "Update to a nightly build" window.
Binance Spot: fixed a bug that caused the Binance Data Provider to hang when it was disconnected.
Binance: fixed a bug in the "Use local time" setting;
Binance: fixed a bug that caused the agent to lose active orders after a disconnect;
Binance: fixed a bug that prevented the drawing of new bars on the Agent chart when working with a script that uses several sources;
ByBit: fixed a bug related to the rounding of the order price;
ByBit: fixed error that occurred when synchronizing with server time;
ByBit: the problem of writing the database of orders/deals was solved. Improved interaction with the exchange;
ByBit: for the ByBit USDT Perpetual provider, the option "Upload orders and trades in N days" has been added to increase the speed of connection to the exchange;
Interactive Brokers: fixed problem with reconnecting to data provider;
Fixed various bugs in data providers:
Binance
ByBit
Deribit
Huobi
Other:
Blocks "Relative commission" and "Relative commission with minimum": when calculating the commission for purchase transactions (long), the "Margin, %" parameter is not used;
The "Parameters" tab in the Agent: added the ability to collapse and expand all directories;
"Scripts" window: fixed a bug that caused scripts to disappear from the directory;
Fixed a bug where data from a text file was not loaded into the Agent as an additional source;
Fixed an error that occurred when connecting to a scheduled data provider at the start of the program with the "Risk Manager" window open;
"Order Manager" window: fixed a bug that prevented placing a conditional order with a negative price;
"Order Manager" window: fixed incorrect display of negative prices;
Fixed calculation of lots in the agent when using multiple exit;
"Optimization" tab of the "Laboratories" window: for percentage optimization, calculation of optimization steps has been fixed when changing the number of parameters to be optimized;
Fixed a bug that did not allow opening the installation dialog for the nightly build when downloading the manifest failed;
Various minor bugs
We are pleased to announce that TSLab company in association with Binance Cryptocurrency Exchange have entered into an agreement under which Binance Exchange customers are entitled to use the TSLab trade terminal for free on the Binance Exchange.
In order to take advantage of this offer, the following conditions must be met:
Binance Cryptocurrency Exchange website: https://www.binance.com/
Binance Cryptocurrency Exchange account must be registered after February 9, 2020.
If your current Binance account was registered before February 9, 2020 and you want to take advantage of the free offer, you need to create a new free Binance account.
Please note!
Trade restrictions will be imposed on the data provider automatically if the Binance-Free license is connected to a Binance Exchange account that does not meet at least one of the above conditions.
In order to remove this restriction, you need to complete one of the following actions:
Register a new account on the Binance Exchange website without using a referral code. Create a new Binance Exchange data provider in TSLab Cabinet. Select Binance-Free license, while creating the data provider. In TSLab application, update the data provider settings.
Purchase Binance-USD license for Binance Cryptocurrency Exchange.
Opening a Binance Spot wallet occurs simultaneously with the registration of a new account. To start trading on the Binance Spot Exchange, create an API key in the API Management menu. You can read more about creating an API key in the article "Creating a Binance API Key for TSLab".
On the main page of the Binance Cryptocurrency Exchange website, open the Wallet selection menu located in the upper right corner of the page. Select Wallet - Futures Wallet
In the Futures Wallet page, click on the Open now button.
Please note! In order to use the TSLab application for free, please do not fill in the “Referral code (optional)” field, even if you have a referral program code.
After completing the creation of a futures wallet, on the Futures Wallet page you can find out the balance of your Binance Futures account.
Attention! Transfer of funds from one account's wallet to another account's wallet without commission is carried out in USDT currency via the TRON (TRC20) network.
Log in to your new account on the Binance exchange website.
Open the cryptocurrency wallet's (Wallet) settings menu on the main page of Binance exchange's site in the upper right corner of the page. Hover the cursor over this menu item and select Spot Wallet item in the list that opens.
Select Deposit menu item on the page that opens. Deposit menu is located in the left corner of the site page.
In the Deposit section you need to choose currency in which the funds will be transferred:
Select the USDT Tether US currency;
Select the TRC20 network;
Copy the USDT Address wallet's address.
Log out of your newly created account: hove over the account abbreviation in the main Binance website's menu in the upper-right corner and select Log out button.
Log in to your old account, from which you need to withdraw the funds.
Open the cryptocurrency wallet's (Wallet) settings menu on the main page of Binance market's site in the upper right corner of the page. Hover the cursor over this menu item and select Spot Wallet item in the list that opens.
Select Withdraw menu item on the page that opens. Withdraw menu is located in the left corner of the site page.
In the Withdraw section you need to choose currency in which the funds will be transferred:
Select the USDT Tether US currency;
Select the TRC20 network;
Paste the USDT Address, which was copied in the previous step;
Specify the amount of funds to be transferred. Please note that when transferring funds via the TRC20 no commission is charged;
Select Submit button to confirm money transfer.
A transfer confirmation email will be sent to your email address. Open the email and complete the confirmation by selecting the Confirm Withdrawal button.
After confirming the transfer you will be redirected to the Binance site page.
Login to the user's Personal account. Click Login button in the upper right corner of the main TSLab company's page.
Enter your email address, specified during the registration, and a password in the opened page. Press the Next button to enter.
While entering the user's Personal account, you will be taken to the TSLab's data provider Store's page.
In the list of available data providers, select the Binance Spot provider for trading in the spot market or Binance Futures provider for trading in the futures market.
There are several types of licenses for each data provider's type:
Binance-Free license allows you to get free access to the Binance exchange.
Binance-USD license allows you to get paid access to the Binance exchange. The cost of this license is calculated in USD and depends on the chosen Maximum size of open positions.
Choose the Binace-Free license to create a free data provider for Binance Spot market or Binance Futures market and press the details button.
You will see the detailed description of the data provider which is being created on the open page. Pay attention to the type of the chosen license and its compatibility with markets.
Open a new browser tab to switch to the Binance website. Log in to your account.
Go to the API Management settings section in the upper right page corner
Choose the API key that was created for trading on the Binance exchange from the created API keys list.
Copy the API Key to the clipboard.
Check that the Enable Future option is turned on if you are planning to trade on the futures market.
After copying the API Key, go to the TSLab's site page, in which the data provider creation process was started.
Paste the copied API Key in the API Key (public) field.
Choose the duration term of the data provider.
Confirm your agreement with the User agreement.
Click the Get For Free button
You can get all the necessary information about the created data provider on the Contracts page. This page shows all the data providers created by the user.
Click the data provider's name line twice to get the necessary information about the data provider to the Binance exchange.
In the open window you can get the information about the duration term of the created data provider and a license key which you will need to enter in the TSLab program when setting up a trade data provider. Detailed information about the created data provider is also sent to the specified email address.
Open the main page of the Binance exchange website. Hover over the account settings menu located in the upper right corner of the page. This menu is indicated as two characters surrounded by a circle (the first two characters in the name of your email address specified during registration). In the dropdown list select API Management item.
At this stage, you must enter a name for the generated API key. Enter the name of the API key and then click on the Create button.
To confirm the operation of creating the API key, you need to enter the six-digit code created in the two-factor authentication application installed on your mobile device. Enter the code in the text input line.
After the confirmation the creation of the API key, an email will be sent to your email address with a link that completes the process of creating the API key. Open the email and confirm your decision to create an API key (click the Confirm new API key button to confirm).
After confirming the creation of the API key in the mail message, the page for configuring the API key will open in your browser.
Attention! After loading the API key configuration page, be sure to save the Secret key. After updating the page, or when closing the page, this Secret key will be replaced with special characters and will become inaccessible for reading. In case of loss of the Secret key, you will need to delete the API key and recreate it.
Write down the Private Key, then click on the Edit restrictions button.
In order to connect TSLab application to Binance Exchange futures market, click the Enable Future menu item
Click on the Save button. To confirm your changes, enter the six-digit two-factor authentication code.
Go to the main page of the TSLab company's website:
Click the «Register» button in the upper right corner.
Fill in the registration data.
Please note! The password should contain at least one capital letter.
After filling in the registration data, click the Register button
After clicking the "Register" button you will be transferred to the email address confirmation page.
A confirmation email will be sent to the email address specified during the account registration. Open the email you received from TSLab company and click the link in the email text.
You will be taken to your Personal account after clicking the link.
To get started with TSLab, you need to select a data provider.
Open the Providers window
Method №1
In the Main Menu, select Data - Data Providers
Click on the Add button
Select Online data and click Next
Method №2
In the Main Menu, select Data - Add online data provider
Note. You can also load Historical data into the program. You can read more about working with Historical data in the section Historical data
Select the Binance data provider from the list and give it a name under which it will be saved in your list of providers. Click on the Next button
In the Data provider settings window, fill in the API Public and API Secret fields.
In the Data Providers window, select the created data provider and click the Key button.
Enter the key created in your TSLab personal account (TSLab Personal Account - Contracts) and click the OK button.
After the key is entered, you will be able to access the button to launch the data provider in the Operation column. Click the button to establish a connection.
The program will inform you about the connection status in the Data Providers window:
red color of the button means an error in establishing connection,
yellow color means that the connection is in progress,
green color means that connections have been established and you can carry out trading operations.
Check the box in the Status bar column to activate the slider button in the Status bar. The color of the slider button in the Status bar also informs you about the connection status.
Using the Schedule manager menu, you can configure the automatic start of the data provider on the day and time you specify.
Note. To start the data provider automatically, the TSLab application must be running.
To configure the automatic start of the provider, click on the button with three dots in the Schedule manager column.
In the Edit Schedule window that opens, fill in the data for the provider's automatic launch schedule. Click on the OK button
To start the created schedule, in the Providers window, move the Schedule manager slider to the extreme right position. In this case, manual control of the launch of the data provider will be blocked.
To start the TSLab program open the Windows Start menu, then Select the TSLab 2.1 folder and click on the TSLab shortcut
After the TSLab program loading is finished, the main user's working area will open.
The working area is an interactive tool, organizing your comfortable working place. The working area contains tabs, which consist of zones, where you can place windows.
The working area consists of the following elements:
The Chart allows you to display any numerical data visually and do technical analysis as well. TSLab has a powerful and flexible chart displaying system. You can use ready chart templates or customize chart appearance to your needs.
You can display a chart of quotes for the selected instrument for the Binance Spot and the Binance Futures markets by using this control. In the chart settings menu, you can specify time segments (ticks, seconds, minutes, days).
By default, the first time you launch the app, the charts will be configured for the BTC/USD tool. Historical data will also be loaded for the Binance Spot and the Binance Futures markets.
You can use tabs located at the bottom of the program window to switch between the Binance Spot and the Binance Futures markets.
The Depth of Market is an important indicator demonstrating liquidity and depth for instrument. As orders get executed and new orders are placed, values in the Depth of Market window get updated according to changing prices.
The Depth of Market (or quotes of the second level) is an organized sequence of all pending orders for an instrument registered by the exchange.
In the asks half the first order is an order at maximum price, an order at a lower price follows, and so on, as offered price diminishes.
In the bids half the first one is an order at minimum price, the next one is an order at a higher price, and so on, as the price grows.
If prices of orders are equal, an order created earlier has a priority over the other one.
The Depth of Market and the tools for manual trading are located on the right side of the workspace.
The field for displaying the information about the program's and the agents' work is located at the bottom of the working area (№1 on the screenshot)
The Data providers Quick Access Toolbar is located below (№2 on the screenshot). You can connect and disconnect the selected Data providers in one click via this control.
The tabs for the workspaces you created are located to the right of the Quick Access Toolbar (№3 on the screenshot).
You can select and configure the connection to the markets in the Data providers menu. In your Personal account on the TSLab company's website, you can find a list of the markets available for connection. The Data providers menu access can be obtained in the main menu of the program: Data - Data Providers.
For your convenience in the TSLab Binance Edition, the Data providers menu is moved to the Spot Manual trading and Futures Manual trading working area, and located under the trading chart.
Information for TSLab 2.2 users
If you already have TSLab 2.2 installed and would like to install Binance Edition, simply download the Configuration File and Script Set to your computer.
Important! Globally, there are no differences from the simple version 2.2 of Binance Edition.
The only difference is the setting of what exactly is in Binance Edition and what is not in the simple version of TSLab 2.2. In Binance Edition, we have prepared for you:
Examples of scripts and indicators written in a visual editor.
Preconfigured agents.
Customized program configuration.
Some history already loaded (bars).
Preconfigured two data providers.
The Binance Edition is more suitable for beginners who have never dealt with the TSLab program. If TSLab is already installed on your computer, then there is no need for installing TSLab Binance Edition. Just load the configuration file and scripts.
Go to the TSLab website and download the latest version of TSLab
Install the TSLab program on your computer. Learn more about the installation process.
Launch the TSLab. Download ready-made scripts for Binance and Binance Edition configuration file
Download the script file to your computer:
In the main menu of the TSLab software, select items "Lab" – "Scripts".
In the "Scripts" Workspace that opens, click on the "Load from file" button.
In the window that opens, select the directory with the downloaded BE-Scripts.tspack file. Select the file type: TSLab scripts archive (* .tspack). Open the BE-Scripts.tspack file.
Examples of scripts with strategies and indicators will be added to the script table.
Download the configuration file to your computer:
Open the TSLab program. In the Main menu of the program, select items "File" - "Load".
In the window that opens, select the folder with the downloaded BE-Config.tlws file. Open the configuration file.
Open the official website of the Binance Cryptocurrency Exchange
Click on the “Register” button in the upper right corner of the page.
Enter your email address and password on the registration page. The password should consist of a combination of numbers, upper and lower case letters.
Confirm your agreement with the Binance Exchange Policy by checking the box "I am over 18 years old, and I agree to the Binance's Terms".
After filling in the registration data, click on the "Create Account" button.
After clicking on the “Create Account” button, you will be transferred to the page of confirmation of your email address.
A confirmation email will be sent to the email address specified during account registration. Open the letter received from the Binance Exchange. The letter will contain a six-digit numeric code, which you will need to enter on the confirmation page of your mailing address.
Enter the six-digit code in the text box on the email address confirmation page.
If the password is entered correctly, a message will appear in the upper right corner of the browser window confirming the successful completion of the account registration process.
Two-factor authentication (2FA) — This is a method of identifying a user in a service (usually on the Internet) by requesting authentication data of two different types, which provides two-layer, and therefore, more effective protection of the account from unauthorized entry.
After successful registration of the account on the website of the Binance Cryptocurrency Exchange, a window for choosing a two-factor authentication method will open. Select the Google Authentication method.
At Step 1, you will be prompted to download a mobile application for two-factor authentication.
By default, Binance Exchange offers to enable two-factor authorization through the Google Authentication application.
TSLab developers recommend using the Authy application. This application will allow you to create a single account on several mobile devices and, in the event of the loss of one of the devices, you can restore your data.
Android: https://play.google.com/store/apps/details?id=com.authy.authy&hl=ru
Install the two-factor authentication application on your mobile device and click on the Next button
At Step 2, you need to scan the created QR code using your phone’s camera.
Run the two-factor authentication application. Select the menu for adding a new account.
Following the instructions in your application, scan the QR code posted on the page (No. 1 in the screenshot).
If your device does not allow you to scan a QR code, you can enter the code manually (No. 2 in the screenshot).
Click the Next button and go to Step 3
At Step 3, you will be presented with a code to restore access to the two-factor authentication application. This code must be used in case of loss of access to your mobile device. Save the code provided to you on paper or on another storage medium! Click on the Next button and go to Step 4.
Two-factor authentication application access recovery code
At Step 4, you need to enable two-factor authentication for your account on the Binance Exchange website.
Enter the password that you used when creating your account and the six-digit code that is generated in your application for two-factor authentication.
This six-digit code is updated on average 1 time per minute.
Fill in the text box with your password and six-digit number. Click on the "Submit" button.
There are 4 working areas prepared in the TSLab Binance Edition in advance:
Spot Manual trading - working area, optimized for the manual trading on the Bianance Spot Market
Futures Manual trading - working area, optimized for the manual trading on the Bianance Futures Market
Scripts - working area which assembled a set of ready-made indicators and trading strategies. You can use a ready-made solution or develop your own trading strategy, test it on the historical data, and launch it on the Binance market.
Robots - working area with ready-made sales agents.
Switching between the working areas is implemented by clicking on the selected tab at the bottom of the TSLab's work window.
Please note!
Select the "Spot Manual trading" working area to connect the Binance Spot Market.
Select the "Futures Manual trading" working area to connect the Binance Futures Market.
Find the Data Providers block in the TSLab working area, which is located under the quote chart.
There are two data providers created and configured in this block: the BinanceFutures and the BinanceSpot. Select the provider whose markets you want to access:
Use the "BinanceSpot" data provider to connect to the Binance Spot Market.
Use the "BinanceFutures" data provider to connect to the Binance Futures Market
You need to enter your API key from your Binance account and license key created in your Personal account on the TSLab website to start working with the selected data provider.
The Binance-Free and the Binance-USD license key could be used simultaneously to connect to the spot market and the futures market.
In your browser, go to the main page of the TSLab website (TSLab website). Log in to the user's Personal account by clicking the Login button located in the upper right corner of the page.
Go to the Contracts section in the user's Personal account. Select the created Binance data provider in the Contracts section. Double-click the selected provider.
In the window that opens, you need to copy the API Key (public) line
In the TSLab program, go to the Spot Manual trading working area for the Spot Market or the Futures Manual trading working area for the Futures Market.
Double-click the selected provider to enter the API key. The Data provider Settings window will open.
Paste the copied key in the API Public field in the Data provider Settings window.
You need to paste the secret key, which you saved when creating the API key on the Binance website, in the API Secret field.
Please note! The secret key is only available at the stage of creating the API key on the Binance exchange website.
Click on the OK button to continue.
Go to the previously opened data provider's page in the TSLab user's Personal account.
Copy the license key for the Binance data provider.
In the TSLab program, go to the Spot Manual trading workspace for the Spot Market or the Futures Manual trading for the Futures Market.
Select the Binance data provider for which you need to enter the license key.
Click the Key button. Paste the copied license key in the open window. Click the OK button.
If the license key was entered correctly, the information about the license validity period will appear in the comments to the provider.
Attention! If TSLab informs that the key is not valid, please make sure that the key matches the login that you use. If the problem still cannot be solved, please contact the TSLab Support Team.
The Connect button becomes clickable. The process of establishing the connection to the broker is indicated by the yellow color, the connection is indicated by the green one.
Click the Connect button located in the Operation column to launch the data provider. You can also launch the data provider by clicking the Connect button located on the Quick Access Toolbar.
After the successful connection to the Binance market, the Connect button will change its color to green. Everything is ready for the work.
After the Binance Data provider's configuration is complete, you can close the Data providers menu.
Note! This article describes the process of registering and setting up credentials on a third-party resource not affiliated with TSLab. Over time, there may be changes in the interface of the ByBit website, which we do not track. You can find detailed instructions on registration and configuration in the original source at the link
For ByBit clients, the TSLab trading platform is free!
In order to take advantage of this offer, you have to register an account on the ByBit cryptocurrency exchange website using the referral code:
EPN9QP
Follow the link below and complete the account registration process.
👉
Please note! You can also use a free license for TSLab if you did not enter any referral code when registering an account on ByBit.
At the same time, if you registered an account using a referral code other than EPN9QP, then in this case you will not be able to take advantage of the offer. You must obtain a paid TSLab license or create a new account.
When registering an account, you can link your account to your email or mobile phone number. Select the option you want and fill in the fields provided. The phone number must be entered without the eight, the password must be at least 8 characters long, contain numbers and capital letters.
Please note! In the Ref. code you must enter the code EPN9QP, or leave this field empty in order to be able to obtain a license for the ByBit data provider for TSLab for free.
After entering the registration data, you will receive an email confirming the registration. The letter will contain the digits required to complete the registration.
When registering via a mobile phone, the code will have to come via SMS.
To connect the TSLab trading platform to your ByBit account, you need to create an API key. This key will be available only after enabling two-factor authentication in your account.
Two-factor authentication (2FA) is a method of identifying a user in a service (usually on the Internet) by requesting authentication data of two different types, which provides a two-layer protection, which means more effective account protection against unauthorized entry. Open your ByBit account settings. On the website, in the upper right corner, hover the cursor over the picture in the form of a person, and in the drop-down menu, select Account & Security.
In the Two-Factor Authentication section, you can choose the following methods of confirming the operations performed:
Email Authentication
SMS Authentication
Google Two Factor
Choose and enable the method that is most convenient for you.
Open API settings.
Please note! For security reasons, the API key will only be displayed once. Once the window is closed, the API will be unavailable. Keep the key in a safe place.
Click on the Create New Key button.
Fill out the form for creating an API key. You must set a name for the key and set permissions for trading operations.
Confirm the key creation using two-factor authentication and save the generated key data to your computer. This will be required when connecting TSLab to the ByBit data provider.
Next, you need to go through the process of registering a free license for the ByBit data provider on the official TSLab website. Read more in the article:
Go to the TSLab website:
Enter your Personal Account by selecting the Cabinet button in the upper right corner of the main page of the TSLab website.
After entering your Personal Account, you will be taken to the TSLab Data Providers Shop page. In the list of available providers, select the ByBit provider.
There are several types of licenses for each type of provider:
ByBit-Free license allows you to get free access to the ByBit exchange.
ByBit-USD license allows you to get paid access to the ByBit exchange. The cost of this license is 60 USD without limiting the size of the position.
To create a free data provider, select the ByBit-Free license and click on the Details button.
On the ByBit data provider page you need to:
Fill in the API Key field by inserting the key created on the ByBit website.
Select the license term of the provider to be created.
Confirm your acceptance of the User Agreement
Click on the Get for free button
You can get all the necessary information about the created provider on the Contracts page. This page displays all user-created data providers.
Click on the ellipsis to get the information you need about the data provider. In the window that opens, you can get the information about the duration of the created provider, as well as the license key, which will need to be entered in the TSLab program when setting up the trading data provider.
Detailed information about the created data provider will be sent to the email specified during registration.
To get started with TSLab, you need to select a data provider.
Open the Providers window
Method №1
In the Main Menu, select Data - Data Providers
Click on the Add button
Select Online data and click Next
Method №2
In the Main Menu, select Data - Add online data provider
Select the ByBit data provider from the list and give it a name under which it will be saved in your list of providers. Click on the Next button
In the Data provider settings window, fill in the API Public and API Secret fields.
In the Data Providers window, select the created data provider and click the Key button.
Enter the key created in your TSLab personal account (TSLab Personal Account - Contracts) and click the OK button.
After the key is entered, you will be able to access the button to launch the data provider in the Operation column. Click the button to establish a connection.
The program will inform you about the connection status in the Data Providers window:
red color of the button means an error in establishing connection,
yellow color means that the connection is in progress,
green color means that connections have been established and you can carry out trading operations.
Check the box in the Status bar column to activate the slider button in the Status bar. The color of the slider button in the Status bar also informs you about the connection status.
Using the Schedule manager menu, you can configure the automatic start of the data provider on the day and time you specify.
Note. To start the data provider automatically, the TSLab application must be running.
To configure the automatic start of the provider, click on the button with three dots in the Schedule manager column.
In the Edit Schedule window that opens, fill in the data for the provider's automatic launch schedule. Click on the OK button
To start the created schedule, in the Providers window, move the Schedule manager slider to the extreme right position. In this case, manual control of the launch of the data provider will be blocked.
Note! This article describes the process of registering and setting up credentials on a third-party resource that is not associated with TSLab. There may be changes to the interface of the Bitget website over time that we do not monitor. You can find detailed instructions for registering and setting up in the source at the link
For clients of the Bitget exchange, the TSLab trading platform is free!
We are pleased to announce that TSLab company in association with Bitget Cryptocurrency Exchange have entered into an agreement under which Bitget Exchange customers are entitled to use the TSLab trade terminal for free on the Bitget Exchange.
In order to take advantage of this offer, the following conditions must be met:
Register an account on the Bitget website without a Referral Code.
In the , subscribe to a special free Bitget-Free tariff plan.
When registering an account, you can link your account to an email address or a mobile phone number. Choose the option you want and fill in the fields provided. The password must be at least 8 characters long, contain numbers, capital letters and special characters. symbols.
After entering the registration data, a registration confirmation letter will be sent to your e-mail. The letter will contain the numbers required to complete the registration.
To connect the TSLab trading platform to your Bitget account, you need to create an API key. This key will be available only after enabling two-factor authentication for your account.
Two-factor authentication (2FA) is a method of identifying a user in a service (usually on the Internet) by requesting two different types of authentication data, which provides a two-layer, and therefore more effective account protection from unauthorized entry.
Open your Bitget account settings. On the Bitget website, in the upper right corner, hover over the picture of a person, and select Security Settings from the drop-down menu.
In the Security Settings section, you can select the following methods for confirming performed operations:
Email authentication
SMS authentication
Google authentication
Choose and connect the most convenient way for you.
Open the "API Management" settings window.
Click on the "Create a new API" button. In the window that opens, fill in the fields:
Enter a name for the generated API key. Key name can be anything.
Think up and enter a passphrase. The passphrase will be required when connecting the Bitget data provider to TSLab.
Select Trade Permission.
If necessary, specify the IP address of the computer on which TSLab will be launched
Scroll down the window. Confirm the creation of the key using two-factor authentication and save the data of the generated key on your computer. They will be needed when connecting the TSLab program to the Bitget data provider.
Next, you need to apply for a free Bitget-Free license on the official website of TSLab. Read more in the article:
Founded in March 2018, ByBit is one of the most advanced and innovative cryptocurrency derivatives trading platforms, with over 1.6 million registered users. ByBit occupies a leading position in the industry in terms of contract execution speed, high transparency, user-friendly interface and professional risk management tools.
In order to take advantage of this offer, you have to register an account on the ByBit cryptocurrency exchange website using the referral code:
EPN9QP
Please note! You can also use a free license for TSLab if you did not enter any referral code when registering an account on ByBit.
At the same time, if you registered an account using a referral code other than EPN9QP, then in this case you will not be able to take advantage of the offer. You must obtain a paid TSLab license or create a new account.
You must have an account on the Binance Cryptocurrency Exchange website
Registration of a new account should be performed without specifying the Referral discount in the Referal ID column
Note. You can also load Historical data into the program. You can read more about working with Historical data in the section
Please note that the TSLab program does not support the “Master Trader” service. You can use the service to autofollow on ByBit.
👉
Attention! It is highly recommended to back up your data before performing the update!
New blocks in the editor:
Weighted average bar price;
Bars tick data;
MultiSecurity;
Data providers:
ByBit: Changed the number of ByBit data providers, according to the number of markets.
Other:
Simultaneous placing of several orders is implemented;
Script Editor: Added "Save a copy" button.
Data providers:
Binance: Updated support libraries to fix connection issues;
ByBit: Added option "Subscribe to trades with quotes";
Other:
Improved the functionality of the window "Update to a nightly build";
Added confirmation request to close the "Optimization results" tab during a running optimization;
Added blocking of TSLab startup during the process of creating or restoring a backup;
Autotreading Control Center window: added sorting for some columns;
Autotreading Control Center window: added the agent "Creation Date" column;
Script editor: in the Results window, you can swap groups of indicators by dragging and dropping;
Script editor: "Random" was set to the default method in the "Optimization" window.
Data Providers:
Binance: fixed downloading ticks after disconnection;
Binance Spot: fixed an issue where fiat was not displayed in the Positions window;
Binance Futures: fixed updating positions when converting currencies;
Binance Futures: fixed an issue with local order times in requests;
Binance Futures: fixed lot rounding in the Agent Control Center;
OKx: fixed loading of historical data;
Huobi spot: fixed sell execution as buy;
Fixed various bugs in data providers:
OKx
Huobi
ByBit
Other:
TSLab API: fixed a bug in the GetTrades() method;
Chart window: fixed an error in updating the chart when changing the price step in the settings;
Data Providers window: for the Text Provider, the updating of information in the Comment field when changing the folder has been fixed;
Risk Manager window: fixed operation of rules for a group of agents;
Autotreading Control Center window: fixed a bug that caused a long opening of the Agents window;
Agent Control Center window: a bug in the operation of the Agent Control Center service has been fixed;
My orders and My trades windows: Fixed filtering of the "Date" column by the "equals" condition;
Block Linked parameter: fixed visual updating of parameter values when changing the value of the parameter associated with it;
Blocks Save/Load Global Cache: fixed per-bar saving in blocks;
TSLab installation wizard: fixed the error of choosing the language of the program interface at the first start;
Fixed the algorithm for forming the price range of candles;
Fixed a bug with the cache when the "do not save ticks" option is enabled;
Fixed a bug with canceling orders when the agents option "Send position entry order immediately" is disabled;
Fixed a bug that caused a double exit from a position;
Various minor bugs
API Public
The user's public API key. Using the public key, you can get a license key for the TSLab program. Note! On the Deribit website, the public key is designated as Client ID.
API Secret
The secret key of the user. Note! On the Deribit website, the public key is designated as Client Secret
Max of requested trades
The maximum number of requested history trades. The number of requested trades in one request. The default is 50000.
Basic URL
Allows you to change the path to the exchange server.
Trade server - https://www.deribit.com
Test server - https://test.deribit.com
Use local time
Allows you to output data in the local time zone, UTC is used by default.
Use PostOnly orders
Activates the posting of PostOnly orders.
Subs. to trades with quotes
Subscribe to receive trades on an instrument when subscribing to quotes on an instrument.
Orders blocking timeout (sec.)
The time during which, after connecting to the exchange server, the data provider will not accept orders.
Cache settings
Sets the period for storing information about your transactions and orders, the following options are available:
Executed order cache period;
Cancelled order cache period;
Trade cache period.
Save tick, mins
Save ticks every N minutes.
Offline orders/Trades visibility
Activates the ability to see your deals and orders offline. Changing this parameter requires restarting the program.
Logs for Debug
Service option. Required to create an extended program log to analyze possible errors in the work of the supplier. Enable this option only if requested by the TSLab Support Service
KuCoin is a global cryptocurrency exchange for numerous digital assets and cryptocurrencies. Launched in September 2017, KuCoin has grown into one of the most popular crypto exchanges and already has 30 million registered users across more than 200 countries and regions around the world.
Known as the "People’s Exchange", KuCoin is a global crypto exchange with its operational headquarter in Seychelles, providing users with 24/7 multi-language customer services. Meanwhile, KuCoin has established 24 local communities around the globe, providing users with highly localized services.
As the home of crypto gems, KuCoin has supported over 700 projects with 1,200+ trading pairs. Over 200 projects had their world premiere listing on KuCoin.
In 2022, KuCoin raised over $150 million in investments through a pre-Series B round, bringing total investments to $170 million with Round A combined, at a total valuation of $10 billion. KuCoin is currently one of the top 5 crypto exchanges according to CoinMarketCap and Coingecko.
We are pleased to announce that TSLab company in association with KuCoin Cryptocurrency Exchange have entered into an agreement under which KuCoin Exchange customers are entitled to use the TSLab trade terminal for free on the KuCoin Exchange.
In order to take advantage of this offer, the following conditions must be met:
Register an account on the KuCoin website.
In the TSLab store, subscribe to a special free KuCoin-Free tariff plan.
To connect to the perpetual futures market, use the KuCoin USDT Perpetual data provider
PostOnly in the TSLab program is supported only with limit orders. It does not work with conditional orders and orders "by market"!
Examples for the visual editor:
"Opening and Closing a position with a limit price"
"Open a position if more/less" with the "Open by limit orders" flag set in the agent's trading settings (Agent's trading settings - the button with the image of a gear in the Agents window)
"Closing a position by take-profit" with the "Take-profit without slippage" flag set in the agent's trading settings. (Agent's trading settings - the button with the image of a gear in the Agents window).
The blocks corresponding to the first three "Convert By" items and their flags in the agent's trading settings (Agent's trading settings - the button with the image of a gear in the Agents window).
The type of the placed order can only be limit, for the PostOnly option to work in the TSLab program.
The Deribit exchange has specific options, the underlying asset of which is a non-tradable futures individual for each series, which are not in the documentation. In the Deribit API, upon request for an option ticker, information about a non-tradable futures and its price is disclosed. The price of a non-tradable futures is calculated according to a formula similar to the rate of futures with expiration, depending on the variable "minutes to expiration". Unfortunately, it is impossible to implement access to the "Result Underlying Price" data for a specific option series, because there is no way to subscribe to these instruments when the program starts. They are broadcast only if you subscribe to one of the strikes where they are calculated. We have decided not to come up with any special mechanisms. You can calculate this value using linear interpolation:
Price_SYN = Price_Perpetual - (Price_Perpetual - Price_26JUN20) * (dT_SYN - 0) / (dT_26JUN20 - 0)
Example of indicators implementation developed by one of our users:
ly0ka
SYN The underlying Deribit option futures price used to calculate theoretical prices and option Greeks.
Customized Buy/Sell options blocks:
Short call
Initial margin (BTC): Maximum (0.15 - Out of the Money Amount/Underlying MarkPrice, 0.1) + Mark Price of the option
Maintenance margin (BTC): 0.075 + mark price of the option
Short put
Initial margin (BTC): Maximum (Maximum (0.15 - Out of the Money Amount/Underlying MarkPrice, 0.1 )+ markprice_option, Maintenance Margin)
Maintenance margin (BTC):Maximum (0.075, 0.075 * markprice_option) + mark_price_option Click this link to see calculation example - https://docs.google.com/spreadsheets/d/1KQWOMF7Y5AE3SPJ_WLEcdVylysyJVZBP00-g_PbqURE/edit#gid=0
is there a way to calculate a simluation that would include the leverage? For Deribit you can set the initial deposit in BTC in a script
And use portfolio simulation with imitation type "Calculate changes"
Use Portfolio imitation with Calculate Changes imitation type.
Do the following in a script:
Initial deposit = 0.3btc
Use the "Constant" block as the initial deposit in the script. If the drawdown is greater than the initial deposit, then do not open new positions.
In open position we set lots per calculation leverage
script:
On the website of the Deribit exchange, the price step in the order queue is from $1 (can be changed up to $5). The queue depth is much greater than in TSLab.
Why is the price step from 1 to 5$ on the exchange website, and every 0.5$ in TSLab? The step of futures at the exchange is $0.5, this is indicated in the contract specification.
Why is the queue depth on the exchange website much larger? We issue a queue of applications such as the exchange broadcasts from https://www.deribit.com/main#/account?scrollTo=api It can be compared with what comes from the getorderbook function on the stock exchange. If the exchange gives more, we will give the depth automatically.
For Deribit, use 0.05% or 0.075% Relative Fee and 0% Margin
We have prepared for you a sample script "hi-lo with preset holidays" created for Deribit on BTC Perpetual as a FREE example to get started in TSLab easily.
How to load the script:
Download the script to your computer. In TSLab, open the Scripts window (Lab - Scripts).
In the Scripts window, click the Load from file button. Select the downloaded script.
After the script is loaded into TSLab, it will appear in the list of available scripts in the Scripts window.
This is what the script looks like when opened in Lab mode:
Results with weekends enabled and disabled.
Check the data provider settings for access to REST, WebSocket & FIX API
Public API key (Client ID)
Secret API secret (Client Secret)
When such an error occurs
Check these settings:
Short call
Initial margin (BTC): Maximum (0.15 - Out of the Money Amount/Underlying MarkPrice, 0.1) + Mark Price of the option
Maintenance margin (BTC): 0.075 + mark price of the option
Short put
Initial margin (BTC): Maximum (Maximum (0.15 - Out of the Money Amount/Underlying MarkPrice, 0.1 )+ markprice_option, Maintenance Margin)
Maintenance margin (BTC):Maximum (0.075, 0.075 * markprice_option) + mark_price_option Click this link to see calculation example - https://docs.google.com/spreadsheets/d/1KQWOMF7Y5AE3SPJ_WLEcdVylysyJVZBP00-g_PbqURE/edit#gid=0
is there a way to calculate a simluation that would include the leverage? In version program 2.1, for Deribit you can set the initial deposit in btc in a script
And use portfolio simulation with imitation type "Calculate changes"
Can do in script. Example. initial deposit 0.3btc
Use Constant as an initial deposit in script.
If the drawdown more than initial deposit, then do not enter new positions.
In open position we set lots per calculation leverage
script:
Deribit Exchange is a professional cryptocurrency options and futures trading platform.
Attention! A powerful computer is required to work with options!
Attention! If you expect breaks in work, then it is not recommended to build strategies on tick or second charts.
In order to access the trading servers of the Deribit exchange through the TSLab platform, you need to:
Open an account on the Deribit exchange. Detailed information on the terms of service and tariffs can be found on the official website of the Deribit exchange: https://www.deribit.com/
Create an API key. The API Key is required to link the TSLab trading platform with your Deribit account.
Download and install the TSLab trading platform. You can download the latest version of the TSLab program by clicking on the link: https://www.tslab.pro/download
Subscribe to the Deribit Data Provider. To subscribe, you need to register on the TSLab website. In the User's Cabinet, open the Store section. Select Deribit Data Provider and subscribe.
Set up a Data Provider. To connect to the trading servers of the Deribit exchange, you need to configure the data provider in the TSLab program
Register an account on the Deribit exchange website:
Open the account settings menu located in the upper right corner. Select My Account.
Go to the API section. In the menu that opens, you need to create a new API key. Click the Add New Key button
Set the API key settings as shown in the image below
After the new keys have been created, the Client ID (Client ID) and Client Secret (Client Secret) will be available to you. This data will be required to issue a license key in the TSLab personal account, as well as when setting up the Deribit data provider in the program itself
Download and install the TSLab program on your computer:
You can read more about the TSLab installation process in the TSLab Installation section.
Note! TSLab program supports Windows operating system. TSLab requires Microsoft .NET 6 to work
Please watch the video from our partners, which describes the process of creating and configuring the Deribit data provider step by step
To get started with TSLab, you need to select a data provider.
Method №1
Open the Providers window. In the Main Menu, select Data - Data Providers
Click on the Add button
Select Online data and click Next
Method №2
In the Main Menu, select Data - Add online data provider
Note. You can also load Historical data into the program. You can read more about working with Historical data in the section Historical data
Select the Deribit data provider from the list and give it a name under which it will be saved in your list of providers. Click on the Next button
In the Data provider settings, you need to enter the Client ID (API Public) and API Secret created in the Personal Account on the Deribit exchange website.
Max of requested trades
The number of requested trades in one request. The default is 50000.
Use local time
It is advisable to set local time in cases where several data providers are connected to the program.
Use PostOnly orders
Optional. Additional exchange settings.
Cache settings
For canceled applications 7 days, you can set less.
If you are connecting a test circuit of the exchange, change the URL:
By default, the program connects to the trading server https://www.deribit.com
Test circuit https://test.deribit.com
Please pay attention! The Client ID for the test server is different from the Client ID for the main trading server
Starting from version 2.1 of the program, we calculate all indicators of scripts and agents in bitcoins. In addition to MFE and MAE for the correct calculation of stop losses in scripts. Enabled "Initial deposit" support in portfolio simulation in agents (script properties).
In the Data Providers window, select the created data provider and click the Key button.
Enter the key created in your TSLab personal account (TSLab Personal Account - Contracts) and click the OK button.
After the key is entered, you will be able to access the button to launch the data provider in the Operation column. Click the button to establish a connection.
The program will inform you about the connection status in the Data Providers window:
red color of the button means an error in establishing connection,
yellow color means that the connection is in progress,
green color means that connections have been established and you can carry out trading operations.
Check the box in the Status bar column to activate the slider button in the Status bar. The color of the slider button in the Status bar also informs you about the connection status.
Using the Schedule manager menu, you can configure the automatic start of the data provider on the day and time you specify.
Note. To start the data provider automatically, the TSLab application must be running.
To configure the automatic start of the provider, click on the button with three dots in the Schedule manager column.
In the Edit Schedule window that opens, fill in the data for the provider's automatic launch schedule. Click on the OK button
To start the created schedule, in the Providers window, move the Schedule manager slider to the extreme right position. In this case, manual control of the launch of the data provider will be blocked.
Note! This article describes the process of registering and setting up credentials on a third-party resource that is not associated with TSLab. There may be changes to the interface of the KuCoin website over time that we do not monitor. You can find detailed instructions for registering and setting up in the source at the link https://www.kucoin.com/support/900002975963
Go to the official website of the KuCoin cryptocurrency exchange: https://www.kucoin.com/
Click on the Sign up button in the upper right corner of the page.
On the registration page you will be offered two options for creating an account - using an email or a phone number.
Enter the data and click on the Create account button. A message containing a digital code required to confirm your account will be sent to the address you specified. Enter the received code and in the next step create and enter a password for your account. Complete the registration procedure.
Starting from August 31, 2023 (UTC), new users must complete Identity Verification in order to use KuCoin's products and services. More...
In order to strengthen the protection of your account from hacking, and to be able to create an API key for your trading account, you need to configure your account security.
To connect the TSLab trading platform to your KuCoin account, you need to create an API key. This key will be available only after enabling two-factor authentication for your account.
Two-factor authentication (2FA) is a method of identifying a user in a service (usually on the Internet) by requesting two different types of authentication data, which provides a two-layer, and therefore more effective account protection from unauthorized entry.
Open the Account menu -> Account Security
On the Security Settings page, find the Google Verification menu item. Click on the Bind button.
In the window that opens, request a verification code by email. Enter the code and on the next page, scan the QR code using your two-factor authentication app of choice. Enter the code from the application.
Next, to create an API key, you need to set a Trading Password. On the Security Settings page, find the Trade Password item. Click on the Settings button.
In the window that opens, enter the six-digit code from the two-factor authentication application. This six-digit code is updated on average 30 seconds.
Create and enter a new Trading Password.
After 2FA is enabled and the Trading Password is set, you can proceed to creating an API key.
Go to the official website of OKX cryptocurrency exchange: https://www.okx.com/
Click on the Sign UP button in the upper right corner of the page.
On the registration page, you will be offered two options for creating an account: using your email or using your phone number.
Enter the data and click on the Sign UP button. A message will be sent to the address you specified, containing the digital code required to verify your account. Enter the received code and complete the registration procedure.
In order to strengthen the protection of your account from hacking, we recommend that you configure all available account protection functions.
To connect the TSLab trading platform to your OKX account, you need to set up two-factor authentication for your account.
Two-factor authentication (2FA) is a method of identifying a user in a service (usually on the Internet) by requesting authentication data of two different types, which provides a two-layer protection, which means more effective account protection against unauthorized entry.
TSLab developers recommend that you use Authy application. This application will allow you to create a single account on several mobile devices and, if one of the devices is lost, you can restore your data.
Android: https://play.google.com/store/apps/details?id=com.authy.authy&hl=en
Open the menu Account - Security Settings
In order to make the function of enabling 2FA authorization available for connection, you need to pass verification by phone or perform Google authentication.
Select item Google Authenticator - Settings
Following the instructions, scan the generated QR code with your phone.
Request the code to your e-mail. Enter the received code in the Email Code field.
In the Google Authentication field, enter the six-digit code generated in the application. Confirm the entered data.
Select item Mandatory 2FA - Turn on
In the window that opens, enter the six-digit code from the application that provides two-factor authentication.
The six-digit code is updated on average 1 time per minute.
To gain access to trading operations on the Exchange, you need to refill your account.
To refill the OKX account select Assets - Deposit
On the Deposit page, specify the currency for replenishment. For the selected replenishment system, you will receive a Deposit Address.
Refill your OKX account. The currency credited to your account is automatically credited to the Funding Account. You can check the status of your account on the Assets page.
Go to the TSLab website and download the latest version of TSLab 2.2
Run the downloaded TSLab Installation Wizard
In the dialog box that opens, you will be asked to select the interface language of the TSLab Setup Wizard.
After selecting a language, the installation can be continued by clicking Next.
Microsoft .NET Framework 4.7.2 is required to install and run TSLab. If this component has not been installed on your computer before, the Setup Wizard will offer you to download and install the missing components. Click Next to continue.
In the window that opens, you will be asked to specify which of the missing components you need to download and install. Select the required components and click Next.
TSLab application will download the specified components and then install them.
TSLab Development Team recommends installing all components selected by the Setup Wizard
After you select the interface language and, if necessary, download the missing software components, a window will open in which you will be offered to start the installation process of the TSLab application on your computer. To start the installation, click Next.
At this step, you need to become familiar with the User License Agreement. To continue, select I accept the terms in the License Agreement and click Next.
Files will be installed in the proposed folder, unless you select another option by clicking the "Change" button. By default, the application will be installed in the directory C:\Program Files\TSLab\TSLab 2.1\
Now everything is ready to install the program. Click on the Install button and wait for the installation to complete.
At the end of the installation process, a window will open confirming the successful completion of the Setup Wizard. You can close this window by clicking Finish.
If you select the Launch TSLab 2.1 option, then after closing the Setup Wizard the TSLab application will automatically start.
The TSLab development team recommends restarting the program using only standard application management tools.
Stopping an application through the Windows "Task Manager" is not a standard tool and can lead to data loss;
Stopping the application through the Windows "Task Manager" will result in the loss of tick charts.
You can restart the program by selecting the Main menu -> File -> Restart.
Restart can be done by completely stopping the program. Correct stop of the application using standard controls is performed by clicking on the "X" in the upper right corner of the TSLab main window. Also, to stop the TSLab application, you can select the main menu items "File" -> "Exit".
Then run the program using standard tools, for example, using a shortcut from the desktop.
When you stop the application, you will be prompted to save the current TSLab configuration. The mode of saving the configuration on exit can be changed in the program settings. If you select Always save - then saving will be not only the configuration, but also all open scripts of the laboratory.
We strongly recommend that you set up an automatic restart of the program according to a schedule once a day, preferably during non-trading hours. If, at the same time, Automatic connection to the broker according to the schedule is set in the Data provider window, disconnection / connection to the broker will occur automatically.
In the main menu section "File" - "Program settings" it is possible to select the mode of saving the configuration on exit. Available modes:
By request - a request to save the configuration will be issued every time the application is stopped
Always - the configuration will be saved automatically every time the application is stopped
Never - the application will be stopped without saving the configuration.
Note! In order for the selected settings to be saved, you must create at least one configuration file. Make sure you have the "Load recent workspace" option enabled.
When the application is stopped, the accumulated tick cache (trades by instruments) will be automatically saved to the hard disk and the cached data "My Trades" and "My Orders". Due to the need to save important information before stopping the application, the TSLab Development Team recommends that you wait until the end of the TSLab stop process.
When running, the program may display a message stating that the computer does not have enough RAM. Recommendation, configure the program for these computer resources. Very often, the user, in the desire to get more, loads a large history, overlays "heavy" indicators, for example, from the Cluster Analysis tab, forgetting that computer resources are not unlimited. On the machine on which TSLab trades, it is advisable to keep the computer resources a little with a margin. Set up scripts, graphics, agents so that the program always has enough resources to work. For this, in scripts and charts, you can use restrictions, such as MaxDays, MaxBars.
Release build of the software - is the latest version of the software that has been tested and debugged.
The release build version number is as follows: 2.X.XX.0. There is always 0 (zero) at the end. You can read more about installing the Release build version in the article Release build.
Software update is carried out:
manually ("Manually");
on request for permission to update ("Request permission").
The update mode is selected in the "Software Settings" window.
Please note that in case of problems with the TSLab application after selecting the "Update mode" - "Manual" function, Technical Supports service will ask you to upgrade to the latest Release version and reproduce the problem again before accepting your request.
Often the release of a new version is caused by fixing the problems that users have encountered or by updating the connector by the broker and the exchange. In this regard, the probability that the problem that is reproduced in your old version is already fixed on the new version significantly increases.
To check for updates "Manually", use the "Check for Update" command (Main menu | Tools | Check for Update).
If a new version is detected, the program displays a message box that offers the user to update.
After the update download is complete, you must restart the program.
After checking for updates, if a window appears with the message "The installed version is the latest", then the current Release build version has already been installed.
The "Request Permission" mode allows you to automatically check for new software updates every time you restart it.
Also, if you do not turn off the TSLab application for a long time, checking for new updates will be performed automatically at a certain time interval.
If a new version is detected, the program displays a message box that suggests:
accept the update by selecting "Yes";
refuse to update at the moment by clicking "No";
completely skip the update by clicking the "Skip".
ATTENTION! If you selected the "Request permission" mode in the "Program Settings", messages about the missed update will no longer be displayed and the installation of the missed update must be done manually.
Headquartered in Malta, the world's Blockchain Island, OKX is a market leader in the blockchain and crypto industry in terms of trading volume, countries served, and user base.
USD 1.5 billion daily trading volume
20 million users
From over 100 countries
As a trailblazer in crypto product innovation, OKX offers the most complete product suite in the industry, ranging from spot trading and margin trading, to crypto derivatives such as futures, perpetual swaps, and options, helping traders, miners, and institutional investors optimize their investment strategies.
TSLab OKX Edition is a special release of the TSLab 2.2 trading platform, which includes:
Pre-configured workspace for automatic and semi-automatic trading;
A set of classic trading strategies, consisting of 20 ready-made examples adapted for trading through the OKX Exchange.
We suggest that you familiarize yourself with the advantages of automatic trading strategies over manual operations using the example of one of the scripts available in TSLab OKX Edition called Manual Trading with automatic stop-loss.
Please note! The TSLab development team recommends starting to study the TSLab OKX Edition program on the Demo server or on historical data
TSLab company in association with OKX Exchange have entered into an agreement under which OKX customers are entitled to use the TSLab trade terminal for free on the OKX Exchange.
In order to take advantage of this offer, the following conditions must be met:
Register an account on the OKX exchange.
Register an account on the TSLab website.
Download and install TSLab program.
As blockchain technology continues to evolve and gain further adoption, more tokens become available to the market for trading. OKX providing a resourceful, user- friendly, and compliant platform to trade, and help blockchain projects grow.
One of the world’s largest markets by trading volume, offering strong liquidity for traders
Over 200 high-quality assets with more than 400 trading pairs listed for trading
Margin trading available for certain cryptocurrencies with up to 5x leverage
Strict compliance process to ensure users have a comprehensive review of assets before investing
Advanced API support for quantitative trading
OKEx aspire to provide users every trading option available to hedge risks and seek higher asset growth. That’s why OKEx offer the world’s first futures trading of crypto assets.
Supporting major crypto assets, namely Bitcoin, Ethereum, EOS, Litecoin, Bitcoin Cash, Bitcoin SV, XRP, TRX, and Ethereum Classic
Weekly, bi-weekly, quarterly, and biquarterly contracts are available to suit different needs
Up to 100x leverage available to maximize trading strategy
Algo orders are available to facilitate advanced trading strategy
Derivatives market analytics to help traders catch market trends
Perpetual swap is a more powerful incarnation of OKX futures, offering a more flexible and convenient derivative option to our users. Traders can still long or short a position to profit from / hedge against the rise or decline of a digital asset’s price, but without the hassle of rolling over contracts
No expiry - no need to roll over a contract
Offering leverage up to 100x to maximize trading strategy
A funding mechanism is adopted to maintain a reasonable price divergence between spot and Perpetual Swap markets
New Tiered Maintenance Margin Ratio System and partial liquidation mechanism to minimize the risk of cascade liquidation and clawback
Mark Price is introduced to minimize the impact of short-term volatility
A gateway to enter the digital assets market, OKX’s Buy Crypto service offers a crypto purchase channel for traders to enter the crypto market using different local fiat currencies. OKX have partnered with a number of payment partners to offer payment options such as Visa, Mastercard, wire transfer, and Apple Pay, etc.
Supports the exchange of 6 mainstream tokens —Bitcoin (BTC), Ethereum (ETH), Tether (USDT), Ripple (XRP), Litecoin (LTC), and OKB.
Buy crypto with 30 fiat currencies across 180+ countries and regions, including USD, EUR, GBP, RUB, TRY, and more.
Supports 6 most trustworthy payment channels including Simplex, Koinal, Banxa, Koinal, Mercuryo, and MoonPay, to offer up to 17 payment options, covering VISA, MasterCard, bank transfer, Apple Pay, etc.
No KYC verification on OKX is required
To connect the TSLab trading platform to the KuCoin exchange, you need to create an API key. Go to the API key creation page (Account -> API Management).
On the API Management page, click the Create API button. On the Create API page, fill in the required fields:
API Name - the name of the new API key, can be anything;
API Passphrase - the password for the API key. Save your password, as if you lose it, you will need to create a new API key. The password will be used in the future when connecting TSLab to the exchange.
Next, you need to fill in the following fields: Spot trading, Margin trading, Futures trading.
Note! At the moment, only trading on the KuCoin futures market is available in TSLab. To allow the program to place orders on the futures market, enable the Futures trading option. If you plan to place trading orders with leverage, then in this case you need to activate the Margin trading option. Spot trading is temporarily not supported.
IP address (optional) - binding the API key to a specific IP address.
To confirm, click on the Next button
At the final stage of creating the API key, a secret key will be specified. Save this secret key as you will need it when creating a connection in TSLab. Once the API key has been created, it will be impossible to obtain information about this secret key.
After the new API key has been created, you can view the key information in the Account -> API Management section.
Next, you need to apply for a free license on the TSLab website. More details in the article:
To connect the TSLab trading platform to the OKX exchange, you need to create a V5 API key.
To create an API key go to the page Account - API
On the API page, click on the Create V5 API Key button located in the upper right corner of the page.
On the page that opens, you need to fill in the fields:
Label - the name of a new API key
Passphrase - API key password. Save your password, because if you lose it, you will need to create a new API key.
Link IP Address (Optional) - binding an API key to a specific IP address.
Permissions - to trade through the TSLab platform, select the items: Read, Trade.
In the Google Authentication field, enter the two-factor authentication code generated in your phone app.
Click on the Confirm button
After the new API key is created, you can view the key details in the Account - API section.
For more information, you need to click on the View button and then enter the Passphrase and the 2FA code.
To get started with TSLab, you need to select a data provider.
Open the Providers window
In the Main Menu, select Data - Data Providers
Click on the Add button
Select Online data and click Next
In the Main Menu, select Data - Add online data provider
Select the KuCoin data provider from the list and give it a name under which it will be saved in your list of providers. Click on the Next button
In the Data provider settings window, fill in the API Public, API Secret and Pass Phrase fields. Click on the Next button
In the Data Providers window, select the created data provider and click the Key button.
Enter the key created in your TSLab personal account (TSLab Personal Account - Contracts) and click the OK button.
After the key is entered, you will be able to access the button to launch the data provider in the Operation column. Click the button to establish a connection.
The program will inform you about the connection status in the Data Providers window:
red color of the button means an error in establishing connection,
yellow color means that the connection is in progress,
green color means that connections have been established and you can carry out trading operations.
Check the box in the Status bar column to activate the slider button in the Status bar. The color of the slider button in the Status bar also informs you about the connection status.
Using the Schedule manager menu, you can configure the automatic start of the data provider on the day and time you specify.
Note. To start the data provider automatically, the TSLab application must be running.
To configure the automatic start of the provider, click on the button with three dots in the Schedule manager column.
In the Edit Schedule window that opens, fill in the data for the provider's automatic launch schedule. Click on the OK button
To start the created schedule, in the Providers window, move the Schedule manager slider to the extreme right position. In this case, manual control of the launch of the data provider will be blocked.
The TSLab development team recommends that you start learning the TSLab program on an OKX demo account. To transfer your OKX account to demo mode, go to the official page of the OKX exchange.
On the OKX website, select the menu item Assets - Demo Trading
To connect the TSLab terminal to the OKX demo server, you need to create an API key. From the My Profile menu, select Demo trading API.
On the API page, click the Create V5 API key for demo trading button.
On the page that opens, you need to fill in the fields:
API Name - the name of the new API key
Passphrase - API key password. Save your password, as if you lose it, you will need to create a new API key.
Permissions - to trade through the TSLab platform, select the items: Read, Trade.
Click on the Confirm button to complete. Enter the two-factor authentication code.
After a new API key has been created, you can view the details of the key in the Account - API section. For detailed information, you need to click on the Information button and then enter Passphrase and the 2FA code.
Get a free license key for the TSLab program in your account on the company's website:
To start working in TSLab, you need to select a data provider. From the Main Menu select Data - Add Online Data Provider
Select the OKX data provider from the list and give it a name under which it will be saved in your provider list. Press Next button.
Fill in the required fields in the Data Provider Settings window:
API Public - a public API key created in your OKX personal account;
API Secret - a secret API key created in your OKX personal account;
Pass Phrase - API key passphrase.
Note! If you want to connect to the Demo account of the OKX exchange, you need to check the boxes in the menu item Demo trading.
To trade on a demo server, you need to select points:
Demo trading - trading on the OKX Demo Server;
Real data for Paper - enable the use of quotes from the real market in Demo trading.
Additional settings (optional):
Use local time - use the time in accordance with your computer's regional settings
Subscribe to trades with quotes - Includes subscription to trades for instruments that have ever been requested from the View | Quotes
Logs for Debug - Enable maximum data provider logging. Turn it on only if you were asked by the TSLab support service.
Orders blocking timeout (sec.) - Blocks the submission of orders for a specified time interval after establishing a connection with the data provider.
Cache settings - The cache retention period settings allow you to specify how long your executed orders, trades and canceled orders will be stored.
Offline orders/Trades visibility - Enables the visibility of your trades in agents when the data provider is turned off.
To confirm the entered data, click the OK button.
In the Data Providers window (Main menu - Data - Data Providers), select the created data provider and click the Key button. Enter the key created in your personal account on the TSLab website (TSLab Personal Account - Contracts), click the OK button.
Note! If you entered the key, but the input field is surrounded by a red frame, then an input error was made. Common causes of errors:
The key is copied manually and a space character is added at the beginning of the line, or at the end of the line
When creating a data provider in your personal account, a secret key was entered instead of a public API key, or extra characters were entered (for example, a space character)
If you have registered several data providers for the same exchange, check that you have copied the key for the corresponding provider from the Contracts section in your account
After the key has been entered, the button to launch the data provider in the Operation column will become available to you. Click the button to establish a connection.
The program will inform you about the connection status in the Data Providers window:
red color of the button means an error in establishing connection,
yellow color means that the connection is in progress,
green color means that connections have been established and you can carry out trading operations.
Go to the TSLab website.
Enter the user's Account by selecting the Cabinet item in the upper right corner of the main page of the TSLab website.
In your TSLab user’s Cabinet select the Shop menu item. A list of available data providers will be displayed on the site page.
Please note! Each broker / exchange has different tariff lines.
Paid tariffs for cryptocurrency providers are designated:
Provider-USD
For any tariff plan, payment is possible in the following currencies: RUB, USD.
Free tariffs for cryptocurrency providers are designated:
Provider-Free
Select OKX exchange from the list of data providers. To continue, click on the Details green button located opposite the selected tariff.
On the page that opens, you need to place an order for the purchase of a TSLab license key:
In the API Key (public) field, you need to enter a unique API key created in your personal OKX cryptocurrency exchange account.
Please note! The purchased license will be valid only for the specified API Public Key. If you enter the wrong number, the data provider will not work!
Move the slider to select the license term (validity period).
Please confirm your agreement with the User Agreement. To register a license key, click on the Get for free button.
After the license key is issued, a letter with the license key for the data provider in the TSLab program will be sent to your mail. You can also find license information in your personal account on the TSLab website. To do this, go to the Contracts page.
For detailed information about the purchased license in the Contracts window, click on the ellipsis in the line with the selected license.
Next, you can proceed to setting up the KuCoin data provider in the TSLab program.
Go to the TSLab website.
Enter the user's Account by selecting the Cabinet item in the upper right corner of the main page of the TSLab website.
In your TSLab user’s Cabinet select the Shop menu item. A list of available data providers will be displayed on the site page.
Please note! Each broker / exchange has different tariff lines.
Paid tariffs for cryptocurrency providers are designated:
Provider-USD
For any tariff plan, payment is possible in the following currencies: RUB, USD.
Free tariffs for cryptocurrency providers are designated:
Provider-Free
Select KuCoin exchange from the list of data providers. To continue, click on the Details green button located opposite the selected tariff.
On the page that opens, you need to place an order for the purchase of a TSLab license key:
In the API Key (public) field, you need to enter a unique API key created in your personal KuCoin cryptocurrency exchange account.
Please note! The purchased license will be valid only for the specified API Public Key. If you enter the wrong number, the data provider will not work!
Move the slider to select the license term (validity period).
Please confirm your agreement with the User Agreement. To register a license key, click on the Get for free button.
After the license key is issued, a letter with the license key for the data provider in the TSLab will be sent to your mail. You can also find license information in your personal account on the TSLab website. To do this, go to the Contracts page.
For detailed information about the purchased license in the Contracts window, click on the ellipsis in the line with the selected license.
Next, you can proceed to setting up the KuCoin data provider in the TSLab program.
To start working in TSLab, you need to select a data provider. From the Main Menu select Data - Add Online Data Provider
Select the OKX data provider from the list and give it a name under which it will be saved in your provider list. Press Next button.
Fill in the required fields in the Data Provider Settings window:
API Public - a public API key created in your OKX personal account;
API Secret - a secret API key created in your OKX personal account;
Pass Phrase - API key passphrase.
To trade on a demo server, you need to select points:
Demo trading - trading on the OKX Demo Server;
Real data for Paper - enable the use of quotes from the real market in Demo trading.
Additional settings (optional):
Use local time - use the time in accordance with your computer's regional settings
Subscribe to trades with quotes - Includes subscription to trades for instruments that have ever been requested from the View | Quotes
Logs for Debug - Enable maximum data provider logging. Turn it on only if you were asked by the TSLab support service.
Orders blocking timeout (sec.) - Blocks the submission of orders for a specified time interval after establishing a connection with the data provider.
Cache settings - The cache retention period settings allow you to specify how long your executed orders, trades and canceled orders will be stored.
Offline orders/Trades visibility - Enables the visibility of your trades in agents when the data provider is turned off.
To confirm the entered data, click the OK button.
In the Data Providers window (Main menu - Data - Data Providers), select the created data provider and click the Key button. Enter the key created in your personal account on the TSLab website (TSLab Personal Account - Contracts), click the OK button.
Note! If you entered the key, but the input field is surrounded by a red frame, then an input error was made. Common causes of errors:
The key is copied manually and a space character is added at the beginning of the line, or at the end of the line
When creating a data provider in your personal account, a secret key was entered instead of a public API key, or extra characters were entered (for example, a space character)
If you have registered several data providers for the same exchange, check that you have copied the key for the corresponding provider from the Contracts section in your account
After the key has been entered, the button to launch the data provider in the Operation column will become available to you. Click the button to establish a connection.
The program will inform you about the connection status in the Data Providers window:
red color of the button means an error in establishing connection,
yellow color means that the connection is in progress,
green color means that connections have been established and you can carry out trading operations.
Check the box in the Status bar column to activate the slider button in the Status bar. The color of the slider button in the Status bar also informs you about the connection status.
Using the Schedule manager menu, you can configure the automatic start of the data provider on the day and time you specify.
Note. To start the data provider automatically, the TSLab application must be running.
To configure the automatic start of the provider, click on the button with three dots in the Schedule manager column.
In the Edit Schedule window that opens, fill in the data for the provider's automatic launch schedule. Click on the OK button
To start the created schedule, in the Providers window, move the Schedule manager slider to the extreme right position. In this case, manual control of the launch of the data provider will be blocked.
In order to be able to perform trading operations on the OKEx exchange You need to transfer funds from the Funding Account to the Trading Account. To do this, open the Assets page and select Transfer - Transfer between accounts
In the page that opens, you need to specify:
Token - type of the currency to be transferred;
From - the account that the transfer will be made from;
To - account to which the transfer will be made;
Amount - the amount to be transferred.
To complete the transfer, click Confirm.
You can check the receipt of the funds to your trading account by opening the Assets section and selecting the Trading Accounts item.
You can check your accounts in the TSLab program in the Positions window.
On the OKEX exchange website, select Trades-Margin trading
Select the instrument you would like to trade and click Borrow
Please note! Further, as an example, we consider the loan of funds when trading ETH/USDT on a demo OKEx account. This sequence of actions is also relevant for real accounts.
If you only have ETH on your account , you will not be able to buy ETH. You need to borrow USD, secured by ETH to buy it.
If You have only USDT on your account, you will not be able to sell ETH because you do not have it and you should borrow ETH firstly for such a transaction.
In the next window you need to borrow funds for margin trading, for example, if you have USDT on the account, you should borrow ETH.
After borrowing funds, you need to reconnect to the data provider DEMO OKEX Spot
After enabling the DEMO FOREX Spot data provider you need to select the instrument for margin trading in the Chart and Order Manager window. Here is an example of selecting a margin market in the Order Manager window.
Enable the DEMO OKEX Spot data provider.
Click Select tool in the order Manager
Click on the list of data providers in the Select securities window
A new supplier for the margin market will appear in the list of data providers. The market name corresponds to the name of the Instrument.
Clear the filter if a tool has ever been selected in the data provider. The margin market Instrument will appear in the list of instruments.
The TSLab development team recommends to start learning the TSLab OKEx Edition program on an OKEx demo account. To switch your OKEx account into demo mode, go to the official OKEx exchange page and log in.
On the OKEx website, select the menu item: Assets - Start Paper Trading
To connect the TSLab terminal to the OKEx demo server, you need to create an API key. In the My Profile menu, select Paper trading API.
On the API page, click on the Create V3 Paper Trading API Key button.
On the page that opens, you need to fill in the fields:
Label - the name of a new API key
Passphrase - API key password. Save your password, because if you lose it, you will need to create a new API key.
Permissions - to trade through the TSLab platform, select the items: Read, Trade.
Enter the two-factor authentication code generated in your phone app.
Click on the Confirm button
After the new API key is created, you can view the key details in the Account - API section.
For more information, you need to click on the View button and then enter the Passphrase and the 2FA code.
In order to issue a free license key for the TSLab program, go to the TSLab website.
In your TSLab user’s Account (Cabinet) select the Shop menu item. A list of available data providers will be displayed on the site page.
Select OKEx exchange from the list of data providers. To continue, click on the Details green button located opposite the selected tariff.
On the page that opens, you need to place an order for receiving a TSLab license key:
In the API Key (public) field, you need to enter a unique API key created in your personal OKEx cryptocurrency exchange account.
Attention! The received license will be valid only for the specified API Public Key. If you enter the wrong number, the data provider will not work!
Move the slider to select the license term (validity period).
Confirm your agreement with the User Agreement. To register a license key, click on the Get for free button.
After the license key is issued, a letter with the license key for the data provider in the TSLab program will be sent to your mail. You can also find license information in your personal account on the TSLab website. To do this, go to the Contracts page.
For detailed information about the purchased license in the Contracts window, click on the ellipsis in the line with the selected license.
Launch the TSLab program, wait until the loading of the software components and the Trader's Workspace is complete. In the upper left corner of the Workspace you will see the Data Providers window.
Double-click on the DEMO Okex Spot data provider.
In the Data provider settings window, fill in the required fields:
API public - public API key created in your OKEx account;
API secret - secret API key created in your OKEx account;
Pass Phrase - passphrase to the API key.
To trade on a demo server, you need to select items:
Okex.SimulatedTrading - trading on the OKEx Demo Server
Okex.PaperTRealDataForSimulatedTradingrading - Enabling the use of the real market quotes, for simulated trading.
Additional settings (optional):
Use local time - use the time specified in your regional computer settings
Subs. to trades with quotes - Enables subscription to trades with instruments that have ever been requested from the View | Quotes
EnableDebugLogs - Enabling maximum logging of the data provider. Enable only if asked by TSLab support team.
Orders blocking timeout (sec.) - Blocks orders placement for a specified time interval after establishing a connection with a data provider.
Cache settings - The cache storage period settings allow you to specify how long your executed orders, deals and canceled orders will be stored.
Offline orders/Trades visibility - Enables the visibility of your deals in agents while the data provider is off.
To confirm the entered data, click on the OK button.
In the Data Providers window, select the DEMO Okex Spot data provider. Click on the Key button located to the right.
In the Key window that opens, enter the key created for the data provider in your TSLab account. Click on the OK button.
After the key is entered, the button for launching the data provider will become available to you in the Operation column. Click the button to establish a connection.
The program will inform you about the connection status in the Data Providers window:
red color of the button means connection establishment error,
yellow color of the button means connection establishment process,
green color means that connection have been established and you can carry out trading operations.
Information for TSLab 2.2 users
If you already have TSLab 2.2 installed and would like to install OKX Edition, just download the Configuration File and Script Set to your computer.
Important! There are no differences from the simple version 2.2 in OKX Edition globally.
Only the setting differs, what exactly is in OKX Edition and what is not in the simple version of TSLab 2.2. In OKX Edition we have prepared for you:
Examples of scripts and indicators written in a visual editor
Preconfigured Agents customized configuration.
Schedule and order of applications.
Some history (bars) has already been loaded.
The OKX Edition is more suitable for beginners who have never dealt with the TSLab program.
Go to the TSLab website and download the latest version of TSLab 2.2
Launch the TSLab 2.2 program. Download ready-made scripts for OKX and OKX Edition configuration file
Download the script file to your computer:
In the main menu of the TSLab program, select the menu items "Lab" - "Scripts".
In the "Scripts" workspace that opens, click the "Load from file" button.
In the window that opens, select the directory with the downloaded OKEx.tspack file. Select the file type TSLab Script Archive (*.tspack). Open the OKEx.tspack file.
Examples of scripts with strategies and indicators will be added to the scripts table.
Download the configuration file to your computer:
Open the TSLab program. In the main menu of the program, select the menu items "File" - "Load...".
In the window that opens, select the folder with the downloaded OKEx.tlws file. Open the configuration file.
TSLab OKEx Edition is a special release of the TSLab 2.1 trading platform, which includes:
Pre-configured workspace for automatic and semi-automatic trading;
A set of classic trading strategies, consisting of 20 ready-made examples adapted for trading through the OKEx Exchange.
We suggest that you familiarize yourself with the advantages of automatic trading strategies over manual operations using the example of one of the scripts available in TSLab OKEx Edition called Manual Trading with automatic stop-loss.
Please note! The TSLab development team recommends starting to study the TSLab OKEx Edition program on the Demo server or on historical data.
We invite you to review the preconfigured TSLab OKEx Edition workspace.
Run the TSLab program. After downloading all the components necessary for operation, the main window of the TSLab program will open on your desktop.
By default, in the standard version of TSLab 2.1, the user's workspace is loaded empty. For TSLab OKEx Edition, our team has prepared for you a customized and ready-to-use ManualTradingReal workspace. To get started, you just need to enter your credentials from your OKEx exchange account.
Please note! You can open, close and drag all windows located in the ManualTradingReal workspace. Also, you can choose Light theme for the TSLab program. To do this, select File - Program Settings in the main menu of the program. In the window that opens, select Appearance - Theme. Select Light theme and click on OK button.
In the screenshot below, all the main controls are divided into areas:
The main menu. Data providers.
Positions, Accounts, My Trades
Chart
Orders Manager
Status Bar
The main menu is located at the top of the program window. It provides you with access to the main controls and settings of the TSLab program.
A data provider is a part of the program that provides interaction with a particular trading broker, or directly with an exchange. The provider can implement both a full set of functionalities (receiving trade data, issuing trade orders) and a partial set of functionalities.
The Data Providers window is intended for managing data providers. The Data Providers window can be opened from the Main Menu - Data – Data Providers.
4 data providers were pre-created for TSLab OKEx Edition:
Okex Perpetual Swap Real - a data provider configured for perpetual swaps markets
Okex Spot Real – a data provider configured for spot markets
Okex Futures Real – a data provider configured to work with futures markets
DEMO Okex Spot – a data provider configured to work with the OKEx demo server
To configure a data provider, double-click on it, or select a provider and click on the Settings button.
To enter the license key, select a provider and click the Key button.
You can configure automatic start of data providers using the Schedule manager menu.
For your convenience, you can move the data provider launch button to the status bar, located in the lower left corner of the window, by selecting this item in the Status Bar column.
The Positions window displays data reflecting the current state of positions. The Positions window can be opened from the Main Menu | Trades | Positions.
Data from the broker / exchange is transmitted to this window without changes.
The toolbar of the Positions window contains the Orders Manager, Close Position / Cancel All Orders, Cancel Orders buttons. To activate the button, select the line with the position.
The Accounts window allows you to receive information about the status of your accounts. The Accounts window can be opened from the Main Menu - Trades - Accounts.
The My Trades window contains information about executed deals. You can open this window from the Main Menu - Trades - My Trades.
This window can be used to display instruments’ charts. The chart has its own visual editor for displaying indicators using it.
The Chart window can be opened from the Main Menu | View | Chart or from the context menu of the Quotes window, opened above the security you are interested in.
Some blocks that cannot be used in the chart are disabled in the Chart Editor, for example, Open Position and Close Position.
At least one data source must be defined for each graph. This is a security, the indicators of which will be displayed on the chart.
One of the cluster analysis indicators is displayed on the chart. It collects statistics of trades per day and is configured for the number of trades. The indicator starts collecting statistics from the moment of the first connection.
Please note! The selection of a security is performed in the Properties: Chart - Select Instrument window. Properties: Chart can be opened by right-clicking in the chart window. In this window, you can select a provider (broker providing information), the type of securities, and also use the securities filter.
In TSLab OKEx Edition, the BTC-USDT instrument is selected by default. In order to see the full list of instruments and select another instrument, clear the filter field located above the list of instruments.
For convenience, when working with futures, it is possible to connect instruments of different expirations with each other. Thus, the program provides you with the opportunity to combine data from various financial instruments.
The selected instruments are placed in the Source field of the Properties: Chart window. Click on + Add Instrument to expand the tool for adding start and end dates that will be used to create the chart. The newest instrument must be selected as the main instrument.
The installed instrument can be removed by clicking on the Remove button.
The Orders Manager window allows you to quickly trade a specific security. This window can be opened from the Main Menu l Trades | Orders Manager, or from the context menu of other windows.
The Orders Manager window contains a queue of orders and three tabs for setting order parameters: Scalping, Limit and Conditional orders.Please note! The Orders Manager slots are active. Using various combinations of buttons, you can place and remove buy and sell orders.
You can select the instrument you are interested in from the menu located at the top of the window.
Status Bar is located at the bottom of the workspace and is designed to display the current state of the system.
Status Bar displays the following information and functionality:
Data provider connection button (if you work with several data providers, the status bar displays the data providers connection button, in the line of which there is a check mark in the Status Bar column in the Data Providers window);
Status of connection with the server (if the connection could not be established, the reason is indicated);
Server Time;
Tabs Panel;
Message Log open / close button;
Flags for activating the display of various types of messages in the Message Log and the number of new messages.
There are several Sheets with customized workspaces in TSLab OKEx Edition:
ManualTradingReal is a Workspace with an example of setting up the program interface for manual trading. Loaded at the first launch of TSLab OKEx Edition
Scripts is a Workspace with a prepared set of classic trading strategies, consisting of 20 ready-made examples adapted for trading on the OKEx exchange
ManualTradingDemo is a Workspace with an example of a ready-to-run Manual Trading with automatic stop-loss trading agent configured to work with the OKEx demo server. The agent consists of a chart panel and a script control panel.
Note. You can also load Historical data into the program. You can read more about working with Historical data in the section
You can read more about obtaining a license key in the article:
Note. You can also download historical data into the program. You can read more about working with Historical data in the section section.
Note. You can also download historical data into the program. You can read more about working with Historical data in the section section.
Note! If you want to connect to the Demo account of the OKX exchange, you need to check the boxes in the menu item Demo trading. To trade on a demo account, you need to create a separate API Key on the OKX exchange website. Read more in the article:
Install the TSLab 2.2 program on your computer.
In order to connect the TSLab program to Interactive Brokers, you need to install the Trader Workstation (TWS) terminal or IB Gateway on the computer where the TSLab program will be installed.
Enter the Cabinet on the TSLab website.
In the Shop section, find the Interactive Brokers data provider. To select a data provider, click the Details button.
Note! When placing an order, you must provide your Interactive Brokers account number. The account number can be found in the TWS terminal. The number has the following notation format:
D0000000 - for real account
DU0000000 - for demo account
Complete the Interactive Brokers data provider subscription form.
Enter your Interactive Brokers account number.
Specify the key expiration date for the data provider.
Confirm the User Agreement.
Click on the Purchase button. Complete the license process by paying the invoice.
After the license registration process is completed, an email with a license key will be sent to your email address. Also, the key can be found in the Contracts section. In order to get detailed information about the contract, click on the button with three dots in the line with the contract.
The window that opens provides detailed information about the contract, including the expiration date, account number, and key for the data provider.
Note! The generated key is only suitable for the specified account number. If you want to use the Interactive Brokers Data Provider for another brokerage account, you will need to create a new key.
Download and install the TSLab trading platform. You can download the latest version of the program by clicking on the link:
Launch the TSLab program. To connect to Interactive Brokers, you must set up a data provider. In the main menu of the program, select the menu item Data -> Data Providers.
In the Data Providers window that opens, click the Add button. Select provider category Online data. Press Next.
Next, in the list of providers, you need to find and select Interactive Brokers. Enter the name of the provider, which will later be displayed in the "Data Providers" window. Press Next.
In the data provider settings window that opens, enter the IB user account number.
The user account is displayed:
For the IB Gateway terminal - in the Settings window of the IB Gateway terminal.
For the TWS terminal - in the title bar of the main window of the TWS terminal
After setting up the Interactive Brokers data provider, click the Next button.
Contracts Manager
Allows you to add and remove securities (contracts).
Account
Interactive Brokers client account.
Alternative provider
Alternative data provider.
API ID
The unique API ID of the program by which the Interactive Brokers client interacts with the TWS terminal. The API ID is set by the client.
Host
The IP address of the computer running TWS.
Port
Port number.
Use local time
Allows you to output data in the local time zone, UTC is used by default.
Orders outside RTH
Activates the placement and execution of orders outside the exchange session
Use SMART always
Enables the use of the SMART site.
Use limit orders instead of market
Disables the use of the "Order by Market" broker. Activates a Limit order at the last known price +- 4%
Percentage of limit price increase
Percentage increase in price for an order when limit orders are used instead of market orders
Load trades for (max) days
Download missed ticks for N days
Load trades
Load trades when connected. If disabled, it will not load ticks.
Orders blocking timeout (sec.)
Blocks the submission of requests for a set time interval after establishing a connection with the data provider.
Cache settings
Sets the period for storing information about your transactions and orders, the following options are available:
executed order cache period;
cancelled order cache period;
trade cache period.
Offline orders/ Trades visibility
Activates the ability to see your deals and orders offline. Changing this parameter requires restarting the program.
Next, you need to enter the license key for the created data provider. Select the Interactive Brokers provider and click the Key button. In the Registration Key window, enter the key sent to you by mail (or copy the key from your TSLab personal account). Click on the OK button.
If the key is entered correctly, then in the Comment column the license validity period will be displayed, and in the Operation column, the button to connect to the exchange will become available to you.
Attention!
Before connecting to the Interactive Brokers data provider, you need to set up #trader-workstation-tws-and-ib-gateway-terminals
Check the work of the supplier by clicking on the button in the Operation column. The program will inform you about the connection status in the Data Provider window and in the status bar:
red color of the button means an error in establishing connection,
yellow color means that the connection is in progress,
green color means that connections have been established and you can carry out trading operations.
Check the box in the Status bar column to activate the slider button in the Status bar. The color of the slider button in the Status bar also informs you about the connection status.
Using the Schedule manager menu, you can configure the automatic start of the data provider on the day and time you specify.
Note. To start the data provider automatically, the TSLab application must be running.
To configure the automatic start of the provider, click on the button with three dots in the Schedule manager column.
In the Edit Schedule window that opens, fill in the data for the provider's automatic launch schedule. Click on the OK button
To start the created schedule, in the Providers window, move the Schedule manager slider to the extreme right position. In this case, manual control of the launch of the data provider will be blocked.
In order to access the trading servers of the Interactive Brokers broker through the TSLab platform, you need to follow the steps described below.
You can find detailed information about the conditions for providing brokerage services and tariffs on the official website of the Interactive Brokers broker:
In order to connect the TSLab program to Interactive Brokers, you need to install the Trader Workstation (TWS) terminal or IB Gateway on the computer where the TSLab program will be installed.
Go to the official website of the TSLab project. Download the latest version of TSLab and install it on your computer.
Log in to the User's Cabinet on the official website of the TSLab project. Subscribe to Interactive Brokers Data Provider. After paying for the subscription, a license key for the data provider will be sent to your mail. Also, this key will be added to the list of contracts in your TSLab Cabinet
Launch the TSLab program. Set up the Interactive Brokers data provider.
The article describes the process of obtaining a license for the Interactive Brokers data provider, as well as setting up a provider in the TSLab program.
This article summarizes the main features of the Interactive Brokers data provider that you need to pay attention to before you start trading.
Please note! With real connections to exchanges and brokers, as well as when updating, the program uses the following servers:
License Server: - ls1.tslab.ru - ls2.tslab.ru - ls3.tslab.ru
Update server https://files.tslab.pro/update/ The update server is specified in the program settings. If the path is not specified, or any other path is specified, the program will write an error every time it starts or requests an update. You can also receive an error message if work is in progress on our server. "Update service: Error downloading manifest from manifes.xml. Address https://files.tslab.pro/update/ will be used"
If Anti-Virus or firewall is used, TSLab must be excluded. In Anti-Virus, be sure to disable real-time Internet traffic interception.
For these servers, you need to give permission in the firewall if it is in use or in the antivirus firewall if it is in use.
The main menu gives you access to the main controls and settings of the TSLab program. It is located at the top of the main program window.
The main menu of the program.
Program version.
Downloaded program configuration file. The * character at the end of the line means that there are unsaved changes in the program
New Workspace
Creates a new workspace configuration.
Load
Opens a folder with previously saved workspace configurations.
Save
Save As...
Saves the current workspace configuration to an external file with the .tlws extension and the file name. Make sure the location of the *.tlws configuration file is not in the system directory! (For example, in C:\Program Files (x86)\ or C:) Move it from the system directory. We recommend using Desktop or My Documents.
List of the latest configurations
Shows a list of configurations used recently.
Program Settings
Opens the "Program settings" window.
Exit
Closes the program. Before the program closes, you will see a dialog box with a list of unsaved lab windows and configurations. In this window, you need to mark the items that should be saved, and then the program will be exited.
Find
In the script editor, allows you to find a block by its name
Copy
Copies the selected object to the clipboard.
Cut
Copying the selected object to the clipboard and deleting it.
Paste
Paste an object from the clipboard.
Delete
Deleting the selected object.
Undo
Undoes the last action.
Redo
Restoring an undone action.
Window properties
Opens the properties of the active window.
Secondary Window
Creates a secondary program window
Chart
Opens the "Chart" window.
Depth of Market
Opens the "Depth of Market" window
Quotes
Opens the "Quotes" window
All Trades
Opens the "All Trades" window
Data Providers
Opens the "Data Providers" window
Add online data providers
Opens the broker connection window.
Add offline data providers
Opens the historical data import window.
Scripts
Opens the "Scripts" window.
Script/Agent Settings
Opens the default trading settings window for agents created based on the script being edited.
Clear Log
Deletes all entries from the "Message Log".
Accounts
Opens the "Accounts" window.
Positions
Opens the "Positions" window.
My Trades
Opens the "My Trades" window.
My Orders
Opens the "My Orders" window.
Autotrading Control Center
Opens the "Autotrading Control Center" window.
Agent Control Center
Opens the "Agent Control Center" window.
Commands Manager
Opens the "Commands Manager" window.
Orders Manager
Opens the "Orders Manager" window.
Options Board
Opens the "Options Board" window.
Risk Manager
Opens the "Risk Manager" window.
Create Backup
Opens the "Backup Properties" window.
Restore Backup
Opens the "Restore Backup Properties" window.
Export to Excel
Exports the contents of the window to an Excel spreadsheet. The operation is applicable only to windows containing tabular data. Does not apply to control windows and the "Quotes" window.
Cache Folder
Opens the folder with the data caches of the connected data providers
Log Folder
Opens the logs folder. The TSLab program saves logs, which is a history of the program's actions for the last 5 days. In case of problems with the operation of the TSLab program, the contents of this folder can be archived and provided to the TSLab customer support service to analyze possible errors
Check for Update
Checks for uninstalled updates.
Update to a Nightly build
Notifications Manager
Opens the "Notifications Manager" window.
Opens a list of open windows in the program.
Online Help
Opens the "User's Guide" online in the browser.
Visit TSLab site
Opens the TSLab website in the browser.
About
Opens a window with information about the rights to the program.
To connect to the exchange through the TSLab trading platform using the Interactive Brokers data provider, you need to install the latest version of the IB Gateway terminal on your computer. You can download the latest version of IB Gateway from the link:
After the installation is complete, launch the IB Gateway program. Enter the Username and Password from your Interactive Brokers account.
When the IB Gateway application is launched, open the program settings. To do this, select the menu item Configure -> Settings
In the window that opens, select the menu item API -> Settings.
Set the IB Gateway terminal settings according to the screenshot below. Pay attention to the items highlighted in red.
Note! You can choose the values of the fields Socket port, Master API client ID at your discretion. The values of these fields must match the values specified in the settings of the IB data provider in TSLab.
Note! The IB account number is indicated in the upper left corner of the settings window.
Save the settings by clicking the Apply button. Close the settings window.
When working with the Interactive Brokers data provider in TSLab, the IB Gateway must be running and connected to the IB data servers.
While working through the Interactive Brokers data provider, the TSLab program does not have the ability to receive a list of available securities (contracts).
To start working with a security (contract), you need to enter the ticker of the security (contract) in the appropriate field of the "Manage Contracts" window, which can be accessed from the Interactive Brokers data provider settings. In the same window, you must specify:
the name of the market (either in manual mode or select from the list of available ones)
the type of security (contracts).
As additional contract parameters, you can specify the contract currency and contract expiration in the corresponding fields of the window.
You can add all futures for the underlying asset. To do this, you need to specify:
Ticker;
Market;
Currency;
Type (futures);
Expiration may not be specified.
For example: MSFT, ONE, USD, Futures.
After the necessary properties of a security (contract) are specified, you can add the security to the list of cached contracts for further use using the "Add contract" button.
To add options, you must specify the expiration date, since there are a lot of options. Select the type of Option (Call or Put).
After the necessary properties of a security (contract) are specified, you can add the security to the list of cached contracts for further use using the "Add contract" button.
Alternatively, in order for the security to be recognized by the TSLab program, you must place and immediately cancel an order for the security you are interested in using the TWS terminal. Thus, the name of the security will be remembered in the list of cached contracts in the TSLab program.
The Interactive Brokers API used by the TSLab program does not transmit lot size information. Accordingly, to buy 1 lot containing, for example, 100 shares, you must specify 100 in the agent's settings.
Unfortunately, the Interactive Brokers API we use does not transmit lot size information. Therefore, if one lot is set in the agent's settings, the agent will buy one share, not one lot. Accordingly, to purchase one lot = 100 shares, 100 lots must be specified in the agent's settings. The same goes for the ticket manager.
To test algorithms on stocks, use the "Relative commission with minimum" block.
In the block, set the parameter "Minimum commission" = 1. The broker does not charge a fee for the volume of the transaction, and each transaction, with any volume, is 1$
The "Commission, %" block parameter can be used to approximate slippage in trades.
"Margin" is indicated in % per annum. Accounting is only for shorts. Specify its size with the broker.
The IB broker supports placing orders outside of the trading session on the exchange. This functionality is not fully supported by TSLab. Therefore, when placing an application outside the session, the response to confirm the application may take longer than the specified amount of waiting for a response in the Program settings.
After the timeout expires, the program will place the request again, thus there will be a double execution.
Solution
To prevent this situation with the Interactive Brokers data provider, it is necessary to organize the algorithms so that they do not place orders outside of trading hours. If it is not possible to do this, then it is recommended to organize a connection to TWS, taking into account the request waiting timeout.
In TSLab, open the Program Settings window.
File -> Program settings -> Trading -> Order timeout
The value of the Order timeout field must be greater than the difference between the trading session start time and the broker connection time.
We do not recommend placing orders outside the exchange, obviously the broker executes such orders either rarely or never. Also, in a few milliseconds, the broker can send an update on an order placed outside of trading time, that the order is CANCELLED, and then it is executed.
Accordingly, the same problem arises with double execution. The order has been canceled, so the program must place a new one, according to the signals.
If you set the "Use SMART always" setting in the data provider's settings, then instruments from some exchanges, such as MEXI, cannot be loaded, since MEXI is not available in the SMART market. You can create multiple data providers. Using different API IDs. There is no special configuration required for TWS.
To get started with TSLab, you need to select a data provider.
Open the Providers window
In the Main Menu, select Data - Data Providers
Click on the Add button
Select Online data and click Next
In the Main Menu, select Data - Add online data provider
Note. You can also load Historical data into the program. You can read more about working with Historical data in the section Historical data
Select the Bitget data provider from the list and give it a name under which it will be saved in your list of providers. Click on the Next button
In the Data provider settings window, fill in the API Public, API Secret and Pass Phrase fields. Click on the Next button
In the Data Providers window, select the created data provider and click the Key button.
Enter the key created in your TSLab personal account (TSLab Personal Account - Contracts) and click the OK button.
After the key is entered, you will be able to access the button to launch the data provider in the Operation column. Click the button to establish a connection.
The program will inform you about the connection status in the Data Providers window:
red color of the button means an error in establishing connection,
yellow color means that the connection is in progress,
green color means that connections have been established and you can carry out trading operations.
Check the box in the Status bar column to activate the slider button in the Status bar. The color of the slider button in the Status bar also informs you about the connection status.
Using the Schedule manager menu, you can configure the automatic start of the data provider on the day and time you specify.
Note. To start the data provider automatically, the TSLab application must be running.
To configure the automatic start of the provider, click on the button with three dots in the Schedule manager column.
In the Edit Schedule window that opens, fill in the data for the provider's automatic launch schedule. Click on the OK button
To start the created schedule, in the Providers window, move the Schedule manager slider to the extreme right position. In this case, manual control of the launch of the data provider will be blocked.
Open the TSLab website:
Enter your Personal Account by selecting the Cabinet button in the upper right corner of the main page of the TSLab website.
After entering your Personal Account, you will be taken to the TSLab Data Providers Shop page. In the list of available providers, select the Bitget provider.
There are several types of licenses for each type of provider:
Bitget-Free license allows you to get free access to the Bitget exchange.
Bitget-USD license allows you to get paid access to the Bitget exchange. The cost of this license is 60 USD without limiting the size of the position.
To create a free data provider, select the Bitget-Free license and click on the Details button.
On the Bitget Data Provider page you need to:
Fill in the API Key field by inserting the key created on the Bitget website.
Select the license term of the provider to be created.
Confirm the User Agreement
Click on the Get for free button
You can get all the necessary information about the created provider on the Contracts page. This page displays all user-created data providers.
Click on the ellipsis to get the information you need about the data provider. In the window that opens, you can get the information about the duration of the created provider, as well as the license key, which will need to be entered in the TSLab program when setting up the trading data provider.
Detailed information about the created data provider will be sent to the email specified during registration.
Saves the current workspace configuration to an external .tlws file. Also on the main menu bar there is a button for quickly saving the configuration file
Opens the "Upgrade to Nightly build" window.
Launched in 2018, Bitget provides comprehensive and secure trading solutions to our global userbase.
With a core focus on social trading, Bitget has amassed over 8 million users, 380,000 followers, and 80,000 professional traders from more than 100 countries around the world.
Bitget is ranked in the top five globally by CoinGecko for derivatives trading by volume.
We are pleased to announce that TSLab company in association with Bitget Cryptocurrency Exchange have entered into an agreement under which Bitget Exchange customers are entitled to use the TSLab trade terminal for free on the Bitget Exchange.
In order to take advantage of this offer, the following conditions must be met:
Register an account on the Bitget website without a Referral Code.
In the TSLab store, subscribe to a special free Bitget-Free tariff plan.
To connect to the perpetual futures market, use the Bitget USDT Perpetual data provider
In TSLab, you can use CSV files as an offline data provider. The contents of the file must be in the specified format.
The only data format recognized for CSV files:
The order of writing data in columns:
The order and the format of writing data in rows:
The file should not have a header line. The line above is indicated as an instruction; it should not be in the file.
It is necessary to use bars starting from minutes and above.
There should be no empty lines in the file. Data is read until the first empty line.
You must use a semicolon character (;) as a column separator.
As a separator of the fractional part of the number, you must use the dot sign (.)
The number must be written without spaces.
The format of writing Date: MM/dd/yyyy
The format of writing Time: HH:mm
Important!
The time written in the csv file is perceived by the program as UTC time. In the data provider, you can use the Local time setting, according to the time settings in windows.
You can download an example of filling the CSV file:
In order to connect to the trading servers of the OKEx exchange, you need to configure the OKEx data Provider in the TSLab program. Launch the TSLab program and wait for the software components and The trader's workspace to load. In the upper-left corner of the Workspace You will see the Data Providers window.
In this window, 4 data providers are prepared for You in advance:
Okex Perpetual Swap Real - data provider configured to work with the perpetual swap market;
Okex Spot Real - data provider configured to work with the spot market and margin market;
Okex Futures Real - a data provider, configured for futures markets;
DEMO Okex Spot -data provider configured to work with the OKEx demo server.
Select the appropriate data provider.
Please note! Trading on the Margin market is available after depositing funds to the Margin Account. To trade in "short", you need to "borrow money" from the exchange.
As an example, we will consider setting up the OKEx Spot Real data provider. Double-click on the selected data provider.
Fill in the required fields in the Data Provider Settings window:
API Public - public API key created in the OKEx merchant profile;
API Secret - secret API key created in the OKEx merchant profile;
Pass Phrase - code phrase from the API key.
Please note! TSLab team recommends to set the necessary settings of the data provider during its creation and configuration. Changing the settings of the data provider after its creation can lead to errors in its work.
Additional settings (optional):
Use local time - use time according to your regional settings of your computer.
Okex.SimulatedTrading - trading on the OKEx Demo server.
Okex.PaperTRealDataForSimulatedTradingrading - Enabling the use of quotes from the real market for simulated trading.
Subscribe to trades with quotes -Enables a subscription to the transactions on the instruments. which were ever requested from the View | Quotes window.
EnableDebugLogs -Enabling maximum data provider's logging. Enable it only if the TSLab support service has asked you to.
Orders blocking timeout (sec.) - Blocks the submission of requests for a set time interval after establishing a connection with the data provider.
Cache settings - The cache storage period settings allow you to specify how long your executed orders, transactions, and canceled orders will be stored.
Offline orders/Trades visibility - Enables visibility of your transactions in agents when the data provider is disabled.
Click OK to confirm the entered data.
In the Data Providers window, select the data provider that you entered credentials for. Click on the Key button located on the right.
In the Registration key window that opens, enter the key that was created for the data provider in the TSLab Merchant profile. Click OK.
After you enter the key, you will see the start button for the data provider in the Operation column. Click the button which establishes a connection.
The program will inform You about the connection status in the Data Providers window:
red color of the button indicates an error in setting up the connection,
yellow color of the button indicates the connection setup process,
green color indicates that the connection has been established and you can perform trading operations.
Please note! The Chart and Orders Manager are configured to work with the OKEx Spot Real data provider. After the OKEx Spot Real data provider is launched, the program will load the history from the OKEx server. The Chart will be updated. If you need to display data from another data provider on the Chart and Orders Manager, select the instrument you need in the Chart and Orders Manager settings.
OKEx exchange periodically conducts maintenance work. During maintenance there may be problems connecting the data provider to the OKEx exchange servers. Also in the Status bar TSLab you can see the message:
"Matching engine is being upgraded. Please try in about 1 minute."
For this reason, the TSLab team recommends that you set up a schedule for connecting to the data provider.
Using the Manage schedule menu you can configure the data provider to start automatically on the day and time you specify.
Please note! To automatically start the data provider, the TSLab application must be started.
To configure automatic startup of the provider click the button with the three dots in the Schedule Manager column.
In the Edit Schedule window that opens, fill in the schedule data for automatically starting the data provider. Click OK.
To launch the created schedule you need to click the button in the Schedule Manager column in the Data Providers window. In this case, manual management of the data provider startup will be blocked.
To disable the data provider, you need to disable the schedule by clicking the button in the Schedule Manager column.
Please note! The article provides an example of connecting quotes created using a random number generator. Using this instruction, you can connect text data with quotes obtained from other sources.
Please note! The article provides an example of connecting quotes created using a random number generator. Using this instruction, you can connect text data with quotes obtained from other sources.
You can download the text quotes used in this example. To do this, follow the link: Text quotes
As an example, we will be using quotes with a price step of 0.01.
On the page that opens, ready-made text files are laid out. In the scan folder, you can see screenshots of the obtained charts for each text file.
Download the 1.rand.quote.step = 0.01_1m.txt.zip file (the first in the list of files). Go to the directory with the downloaded file. Unzip the 1.rand.quote.step = 0.01_1m.txt.zip file.
For your convenience, we recommend downloading text quotes to the directory C:\ProgramData\TSLab\TSLab 2.1\Providers\Text, since when creating a text data provider, the TSLab program accesses this directory by default.
Open the TSLab program. In the main menu, select Data - Providers.
In the Providers window that opens, click on the Add button.
In the Add Data Provider window that opens, select Historical Data. Click on the Next button.
In the next step, you need to specify the name of the data provider to be created, and its type. You can specify any name. For the current example, we will use the name TextData.
In the Data Provider Type list, select Text Files. To continue, click on the Next button.
At this stage, you need to specify the directory in which the text file with quotes is located.
Please note! The previously downloaded file must be unzipped.
By default, text files are stored in the C:\ProgramData\TSLab\TSLab 2.1\Providers\Text directory. To specify a new directory, click on the (...) button in the Folder line.
The historical data provider will see all the files of the proper format located in the folder.
Next, you need to set the settings for the data from the text file.
To correctly display the data from the 1.rand.quote.step = 0.01_1m.txt file, you need to set the following parameters:
Number of characters sets the number of decimal places. For the selected example, set the value to 2.
The price step is determined automatically if the step is less than one. If a file with Step = 0.01 is selected, and in the settings it will be indicated that the number of characters = 1, then the program will take Step = 0.1 in its calculations.
After completing the configuration of the Data Provider, click Next. In the Providers window, a new text quotes provider (RandomQuotes) will be added.
You can download historical data from the Yahoo Finance search engine. This feature is implemented in the software starting with version TSLab 2.1
Open the Yahoo Finance website. Enter the abbreviation of the market you are interested in the search bar. As an example, select Apple quotes
On the opened page of the selected market, you need to choose Historical Data section
Select a time interval for historical data
Confirm the selection
Save the data to your local disk. The file will be saved in .csv format. We recommend downloading the file with quotes to the C:\ProgramData\TSLab\TSLab 2.1\Providers\Text directory. This folder is used by the software to load text files by default.
Open the TSLab program. In the main menu, select Data - Add Offline Data Provider
In the window that opens, enter any name for the data provider, for example YahooText. Select the data type: Yahoo Finance files. Click on the Next button.
The next step is to specify the path to the .csv file containing quotes history.
Configure the data provider according to the specification of the market instrument which you will subsequently use for trading.
To complete the process of setting up the data provider, click Next.
The created data provider can be found in the menu: Data - Data Providers.
To check the data provider, you should display the selected tool on the chart. To do this, select View - Chart in the main menu.
Then right-click on the empty field of the graph. In the context menu that opens, select Properties.
In the Sources settings, choose a YahooText provider. Select the AAPL tool. Confirm the selection.
In the Chart settings, you must disable the "Use initial date" item
Save changes by clicking the Apply button. Close the "Properties: Chart" window. Wait for the data to load from the file to finish.
At the end of each line, use a semicolon (;)
Problem:
"Attention! The history download limit has been selected, the program switches to the waiting mode for history availability. Read the information of the broker: https://interactivebrokers.github.io/tws-api/historical_limitations.html#gsc.tab=0 "
Solution:
Try reducing the history request in scripts, agents, and graphs.
To correctly load data from a text file, you must write the first line of the document in the following format:
If this string is missing, the program will display the message "Format string not found" Possible options for parameters used in the header:
<TICKER>
Tool name. Optional
<PER>
Period. Integer.
<DATE>
Date yyyymmdd
<TIME>
Time hhmmss
<OPEN>
Candle opening price (bars only)
<LOW>
Candle low price (bars only)
<HIGH>
Candle high price (bars only)
<CLOSE>
Candle closing price (bars only)
<VOL>
Volume of the bar (or deal)
<OI> или <INTEREST>
Open Interest
<LAST>
Trade price (used for tick data)
<MSEC>
Milliseconds
<TRADENO> или <ID>
Trade number (for ticks) Integer
<LAST>
Last value (for ticks)
<OPER>
Trade direction (for ticks) "B", "S"
<ASK>
The price of the best sell offer in the order queue (at the time of closing the bar, deal)
<ASKQTY>
Volume of the best offer
<BID>
Best demand price
<BIDQTY>
Best demand volume
<STEPPRICE>
Price step
Note!
If you loaded a text document into the program that contains errors in the format of the data written to it, the program will generate an error "Error code 71. Can not recognize the data format for the text file." You can edit a text document manually in Excel or any other text editor with advanced features.
The program supports the format only with BAR START time. This is an important nuance that can cost money in real trading.
The first line of data in the file is the oldest date. The last line, with more recent data.
To connect to the exchange through the TSLab trading platform using the Interactive Brokers data provider, you need to install the latest version of the TWS terminal on your computer. You can download the latest version of TWS from the link:
For the TWS terminal to work, Java must be installed on your computer. In the latest versions of TWS, the required items are downloaded and installed automatically during the TWS installation.
Once the installation is complete, launch the TWS terminal. Enter the Username and Password from your Interactive Brokers account.
When the TWS application is launched, open the program settings. To do this, select the menu item File -> Global Configuration...
In the window that opens, select the menu item API -> Settings.
Set the TWS terminal settings according to the screenshot below. Pay attention to the items highlighted in red.
Attention! The Master API client ID and IP must match the connection settings in TSLab. If these settings do not match, then tickets placed in TWS will not be displayed in the TSLab program. If you plan to run the TSLab program on the same computer where TWS is running, then select Allow connections from localhost only
Before downloading the tool, make sure you subscribe to Market Data for that market.
Or like this:
If you plan to work with only a few tools, then one tool can be loaded into the program by following this instruction
Create a .csv file. The file name can be anything. We recommend choosing a name in such a way that you understand which market is in the file. There can be multiple markets in a file. The file must contain lines like: TYPE;TICKER;NAMESERVER
For example: CASH;EUR;IDEALPRO STK;AAPL;SMART STK;BABA;NYSE
In this example, the character ";" is the separator between columns. This is a request for three different tickers from different servers.
For the first one, TWS will issue the entire list of all instruments on the EUR ticker from the broker's Forex market.
For the second Apple share from the liquidity server of the broker Smart, the NYSE exchange.
For the third share of Alibaba directly from the NYSE
The availability of the instrument on a particular server is determined by the broker and/or exchange. Use the link to form your own lists of instruments and determine if the instrument belongs to Exchange:
Download and extract the IBUtils.zip program to any place on your hard disk, for example, to a folder on your desktop.
IBUtils requires an active TWS connection.
Put the prepared source file with the necessary instruments in .csv format into the in folder. You can upload multiple files.
Run the IBUtils program by double-clicking the left mouse button
When the IBUtils program is running, errors in the search for an instrument or market are displayed in the program window. Modify the original file if necessary.
After finishing work, the finished file for the TSLab program is located in the out folder.
Copy the Actives.xml file to the VendorNameData folder For example: C:\Users...\AppData\Local\TSLab 2.0\XXXData where XXXData is the name of your IB data provider in the program
Reload the program.
Below are examples of source files.
The finished file for the TSLab program according to all the examples below from the Exchange section can be downloaded here:
Unzip the file, put it in a folder C:\Users...\AppData\Local\TSLab\TSLab2.0\XXXData
Run the program.
STK - stock (or ETF)
OPT - option
FUT - future
IND - index (for many instruments of this type, the broker writes No Data)
FOP - futures option
CASH - forex pair
BAG - combo
WAR - warrant
BOND - bond
CMDTY - commodity
NEWS - news
FUND - mutual fund
BDNS - broker does not support
Examples of source files required for batch loading of instruments in TSLab
CHX
IDEALPRO
SMFE
MEXDER
SMART
AMEX
SMART
To access the "Program Settings" window in the main menu of the program, select the menu item File - Program Settings
The menu of the "Program settings" window is divided into the following categories:
General Settings (including starting and closing the program);
Script Optimization;
Appearance;
Chart;
Trading;
Script Editor;
Screenshot Upload;
Keyboard.
The TSLab program provides the ability to upload screenshots of sheets to data storage. Screenshot broadcast activation sliders are located on the main menu bar of the program
Setting up the broadcast, as well as its activation, is carried out using the "Screenshot Upload" tab. To add sliders to the Main Menu panel, you need to set the Activate flag in the settings of the "Screenshots Upload" tab. When another sheet is activated, the broadcast will automatically switch to this sheet.
You can add your own hotkey options both in addition to and instead of the preset ones. To assign a hot key in the corresponding line, enter the desired key or their combination and click the "Apply" button. If this key or key combination is already in use, the program will inform you about it. You can remove a hotkey by selecting the command to which the hotkey is assigned from the list and then clicking the "Delete" button.
Create workspace backup
Backups are created when a configuration is saved, provided that such a file already exists on the hard drive. If the main configuration file is corrupted, the TSLab program will ask you to load a backup copy.
Proxy
Opens the proxy server settings window. This setting applies only to program updates. It is impossible to connect the program to the broker's servers through a proxy server.
Scheduled restart
Opens the window for setting the program restart schedule. Features of this functionality:
If there is at least one active connection, the restart will not occur. The logs will show the message: "Scheduled restart of the program was canceled due to the presence of at least one active connection"
If the option "Save workspace on exit" is set to "By request", then the reboot will be delayed until you indicate your decision. If "Always" or "Never" is selected, the reboot will occur automatically.
Attention! Chart settings use local time! 10 seconds before the reboot, a dialog box with "Reboot" and "Cancel" buttons is displayed.
Monitoring interval
Informs about the active status of the program within a specified interval using informational messages. The program will "ping" the TSLab server.
Password
Creates a screen lock password. After creating a password, a padlock icon appears on the Main Menu bar. In order to lock the TSLab program window, click on the "Lock" button located to the right of the main menu of the program. Enter your password to unlock the home screen
Show splash screen
Shows a splash screen when the program starts.
Load recent workspace
Loading the last used workspace configuration immediately after starting the program.
Close button
Two modes are available:
"Close TSLab";
"Minimize to notification area".
Save workspace on exit
Three modes are available:
"By request" - if changes are made to the configuration in the course of work, then when you exit the program, a standard dialog box asking you to save the configuration will be displayed;
"Always";
"Never".
Attention! Using the "By request" mode cancels the "Scheduled Reboot" action if you did not save the changes while working with the program.
Script debugging
Ability to debug scripts in an external debugger (leads to a slowdown in the program).
Script execution timeout, sec
The maximum time the script will run before it is timed out. The minimum value is 5 sec., the maximum value is 216000 sec. (=60 hours).
Script cache size, Mb.
In the script optimization mode, the program determines the maximum amount of memory allocated for data caching. This setting allows you to limit memory allocation for systems with a small amount of physical memory (2 GB or less). Recommended values for different system configurations:
32-bit OS, more than 2 GB of RAM - 640 MB;
32-bit OS, less than 2 GB of RAM - 256 MB;
64-bit OS, 4 GB of RAM - 1 GB;
64-bit OS, more than 4 GB of RAM - from 2 to 4 GB.
Optimization threads number
In the script optimization mode, the program determines the required number of script execution threads on its own:
the default setting "0" means using the number of threads equal to the number of processor cores + 1 and is used to maximize the processor load and speed up calculations;
in case of a lack of computing resources, it is recommended to limit the number of threads, which reduces the performance of the program, but increases the stability of calculations.
Attention! It is recommended to choose the number of optimization threads equal to the number of processor cores + 1 or +2, for i7 processors and other hyper-threading processors - equal to the number of cores multiplied by two plus 1 (either 2 or 3).
Calculate Sharpe / Sortino ratios
If the option is selected, adds the Sharpe Ratio calculated monthly to the Optimization Results table and to the Result table. If selected, adds the Sortino Coefficient to the Optimization Results table and to the Result table.
Stop opt. if RAM is not enough
Stop optimization when there is not enough memory.
Interface language
Selecting the interface language. Changing the language requires restarting the program.
Theme
Topic selection. Available options:
Light;
Dark.
Font
Select font type and size. The selected font can be reset to default using the "Select Default Settings" button to the right of the property's drop-down menu. The application of custom settings is indicated by a red indicator on the "Select Default Settings" button.
Log lines per each message type
Select the number of lines displayed in the message log.
Disable tabs preview
Enabling/disabling preview of the contents of the workspace when hovering the mouse pointer over the workspace tab at the bottom of the main program window
Crosshair delay in chart, ms
0 - crosshair is not displayed;
1 - crosshair is always displayed;
Other values - output delay in milliseconds
Turn off crosshair in chart
Disables chart crosshairs.
Crosshair delay in canvas panel, ms
0 - crosshair is not displayed;
1 - crosshair is always displayed;
Other values - output delay in milliseconds
Turn off crosshair in canvas panel
Disables the crosshair in the canvas panel.
Trade marker size
Selecting the size of the deal marker on the chart of laboratory scripts and agents.
Little;
Normal;
Large.
Order timeout, sec
Time to wait for a response from the server that the request has been accepted. After the time has elapsed, the program considers that the request has not passed.
Options board interval, sec
Options board recalculation interval.
Minimum script recalculation interval, ms
Set in milliseconds. The value of the minimum recalculation period. If there is a Metronome with a value of 10ms, and the value 50ms is selected in this setting, then the script will be counted every 50ms, it also applies to all settings of the recalculation interval in the script properties.
Detail logging order / trade cache actions
Enables detailed program logging mode. Enable this option only if requested by TSLab Support
Activate
Activates/Ends broadcasting screenshots of the active sheet. Changing the active sheet leads to the start of translation of the newly selected sheet. Adds a broadcast start button to the main menu bar of the program
If there's active connection
Activates saving screenshots only when there is an active connection.
Folder name
Folder name
File name
File name
Send every, seconds
Screenshot upload frequency.
Client ID
User ID. Obtaining a Client ID. Activate Google Drive API:
Use the helper https://console.developers.google.com/flows/enableapi?apiid=drive to create a project or select a project in the Google Developers Console which will automatically enable the API. Click Continue, then go to credentials.
Select the OAuth consent screen tab at the top of the page. Select an Email address, enter a Product name if it is not already set, and click Save.
Select the Credentials tab, click the Add credentials button, and select the OAuth 2.0 client ID.
Select the Other application type, enter Drive API Quickstart, and click the Create button.
Click OK to close the dialog box.
Click the Download JSON button to the right of the Client ID.
Open the downloaded file and find two options: "client_id":"YourClientId", "client_secret":"YourSecret".
Use YourClientId and YourSecret in TSLab (File - Settings - Screenshot Upload).
Client Secret
Client Secret
Test
Run a connection test.
Activate
Activates/Ends broadcasting screenshots of the active sheet. Changing the active sheet leads to the start of translation of the newly selected sheet. Adds a broadcast start button to the main menu bar of the program
If there's active connection
Activates saving screenshots only when there is an active connection.
Folder name
Folder name
File name
File name
Send every, seconds
Screenshot upload frequency.
Token
Authorization token.
To receive an authorization token, register at www.dropbox.com.
Follow the link https://www.dropbox.com/developers/apps under your login.
Click Create App.
Next select Choose an API -> Dropbox API.
Then Choose the type of access you need -> Full Dropbox– Access to all files and folders in a user's Dropbox.
Select Name your app.
The application has been created.
On the Settings tab of the created application, click Generate in Generated access token to get an authorization token.
Use Token in TSLab settings (File - Settings - Screenshot Upload)
Test
Run a connection test.
Activate
Activates/Ends broadcasting screenshots of the active sheet. Changing the active sheet leads to the start of translation of the newly selected sheet. Adds a broadcast start button to the main menu bar of the program
If there's active connection
Activates saving screenshots only when there is an active connection.
Folder path
Folder path
File name
File name
Add automatic index
Activates the automatic addition of a set of characters that make the file name unique.
Send every, seconds
Screenshot upload frequency.
Test
Run a connection test.
Activate
Activates/Ends broadcasting screenshots of the active sheet. Changing the active sheet leads to the start of translation of the newly selected sheet. Adds a broadcast start button to the main menu bar of the program
If there's active connection
Activates saving screenshots only when there is an active connection.
URL
Remote server address
API key
API key
File name
File name
Add automatic index
Activates the automatic addition of a set of characters that make the file name unique.
Send every, seconds
Screenshot upload frequency.
Test
Run a connection test.
Chart. Switch to chart
Alt + G
Chart. Switch to editor
Alt + E
Chart. ToBegin(scrolling the chart to the first bar)
Ctrl + Left
Chart. ToEnd (scrolling the chart to the last bar)
Ctrl + Right
Edit.Copy
Ctrl + C
Edit.Cut
Ctrl + X
Edit.Delete
Edit.Paste
Ctrl + V
Edit.Paste with links
Ctrl + Shift + V
Edit.Restore
Ctrl + Y
Edit. Window properties
F4
Edit. Undo
Ctrl + Z
Editor. Run
Ctrl + F5
Editor. Save
F6
Editor. Save and run
F5
File. Save workspace
Ctrl + S
File. Depth of market
Alt + O
File. Load workspace
Ctrl + L
File. New workspace
File. Program settings
Ctrl - O
Lock Screen
Alt+B
Orders manager. Best buy
Orders manager. Best buy with price offset
Orders manager. Best sell
Orders manager. Best sell with price offset
Orders manager. Buy
Orders manager. Buy by market
Orders manager. Buy spread
Orders manager. Cancel all conditional orders
Orders manager. Cancel all orders
Orders manager. Close position
Orders manager. Flip position
Orders manager. Sell
Orders manager. Sell by market
Orders manager. Sell spread
Script Manager.Rename Script
F2
Script. Build
Ctrl + F5
Trading. Autotrading control center
F7
Trading. Commands manager
F8
View.Chart
Alt+C
View.My trades
Alt+Q
View.Quotes
Alt+K
Connector path type
Possible options for displaying the path of connectors:
Straight;
Orthogonal;
Escaping blocks.
Connector curve type
Possible options for displaying connector lines:
Straight;
Circumflex.
Show parameters in block
Enabling the display of parameters inside the block by default when creating a block.
Block entry size
Sets the input size in editor blocks:
Medium;
Big.
In the picture below, Big is selected:
Show grid
Enables displaying the grid in the script editor window
Grid step
Sets the grid spacing in pixels (min. value 5)
Snap to grid
When moving blocks in the script editor, snaps them to the grid