Program Settings

Program Settings window

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.

General Settings

General Settings

Menu ItemDescription

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:

  1. 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"

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

Lock Screen

Menu ItemDescription

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

Program Start

Menu ItemDescription

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.

Program Exit

Menu ItemDescription

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 Optimization

Menu ItemDescription

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.

Appearance

Menu ItemDescription

Interface language

Selecting the interface language. Changing the language requires restarting the program.

Theme

Topic selection. Available options:

  • Light;

  • Dark.

Font

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

Chart

Menu ItemDescription

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.

Trading

Menu ItemDescription

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

Script Editor

Menu ItemDescription

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

Screenshot Upload

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.

Google Drive

Menu ItemDescription

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:

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

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

  3. Select the Credentials tab, click the Add credentials button, and select the OAuth 2.0 client ID.

  4. Select the Other application type, enter Drive API Quickstart, and click the Create button.

  5. Click OK to close the dialog box.

  6. Click the Download JSON button to the right of the Client ID.

  7. Open the downloaded file and find two options: "client_id":"YourClientId", "client_secret":"YourSecret".

  8. Use YourClientId and YourSecret in TSLab (File - Settings - Screenshot Upload).

Client Secret

Client Secret

Test

Run a connection test.

Dropbox

Menu ItemDescription

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.

  1. To receive an authorization token, register at www.dropbox.com.

  2. Follow the link https://www.dropbox.com/developers/apps under your login.

  3. Click Create App.

  4. Next select Choose an API -> Dropbox API.

  5. Then Choose the type of access you need -> Full Dropbox– Access to all files and folders in a user's Dropbox.

  6. Select Name your app.

  7. The application has been created.

  8. On the Settings tab of the created application, click Generate in Generated access token to get an authorization token.

  9. Use Token in TSLab settings (File - Settings - Screenshot Upload)

Test

Run a connection test.

Local Hard Drive

Menu ItemDescription

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.

Remote Server

Menu ItemDescription

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.

Keyboard

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.

CommandsHotkeys

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

Last updated