Besides the main functions of the program TSLab, you can use Pretrade Filters and Risk Management Module as well. You can acquire a key to activate this module in your personal account at https://my.tslab.ru/login/.

 

Pretrade Filters and Risk Management Module verifies if the created orders match the activated filters and blocks or cancels these orders if they contradict the conditions set in the filters.

The notifications about canceled or blocked orders can be delivered via the notification system.

 

Module Activation

 

You can open the window Risk Manager in Main Menu | View | Risk Manager. If the module has not been activated or the activation key has expired, you will be informed about it as it is shown in the picture below.

 

en_pretrade_key

 

 

The button Enter Key opens the tab Enter Key.

 

en_pretrade_enter key

 

 

The valid key activates the button OK.

 

With the Pretrade Filters and Risk Management Module activated, the tab Tools opens. With no active connections and after the first launch the tab should look as it is seen in the picture below.

 

The Window Risk Manager. The First Launch

The Window Risk Manager. The First Launch

 

Attention! You can set up Pretrade Filters and Risk Management Module only when the linked account is active.

 

en_pretrade_account activated

 

Attention! The button in the column State can enable/disable the filters completely in the corresponding account.

 

 

Command

Description

Add Instrument

Adds an instrument.

Add Group

Adds a group of instruments.

Delete

Deletes the selected element.

Change Filters

Edits the combination of the applied filters.

Apply New Settings

Applies the proper combination of filters.

Save Current Settings

Saves the combination of filters to a file.

Load from File

Loads your combinations of filters created before.

Manual order in bypass risk management filters

If this box is checked the orders can be placed in manual mode ignoring the pretrade filters.

 

To create a group of instruments you should create an empty group first, then add instruments, after that you can move the necessary instruments to the group.

 

Limits can be applied not only to an instrument or a group of instruments, but to an account as well.

 

Attention! The instruments not included to a group are excluded of trading and any orders involving these instruments will be blocked by the program. To work with the instrument you should include it to a group.

 

The Pretrade Filters and Risk Management Module works with every account  separately, parameters and results of every account are processed independently and cannot influence each other.

 

The filters can be applied both to new orders and to the orders created before. The Pretrade Filters and Risk Management Module cannot place orders.

 

Filtering Orders

Comments

The order is blocked when it is being placed

If the order contradicts at least one activated filter, it gets blocked and, so, it is not placed at all. The program informs the trader or the administrator (depending on the settings) about the order blocked and the account it belongs to.

The order is canceled if it contradicts the filters

If the order cannot be canceled because of such reasons as connection failure or refuse received from the broker or exchange, the program will try to cancel the order as many times as it is set by the Administrator in the corresponding filter with 1-second step. After that  the program will stop all trading operations and will inform the trader or the administrator according to the settings.

 

 

Filter Settings

 

 

Filters Settings. Orders

Filters Settings. Orders

 

Filters Settings. Positions

Filters Settings. Positions

 

Filters Settings. Price

Filters Settings. Price

 

Filters Settings. Volume

Filters Settings. Volume

 

Selecting Instruments

Selecting Instruments

 

If the step size of the instrument is set in USD and you need to have the results in Rubles, take the current result in the currency of the instrument calculated on the incoming positions + trades closed during the day session + reestimated open positions and multiply it by the next futures and  by the USD-RUB rate. The futures are set up by the administrator.

 

The filters are applied in the program as the logical sum. First the program checks the instrument, then the group of instruments and, at last, the account. If the order does not match at least one filter, it will be blocked or canceled. The program will inform you about the canceled or blocked orders according to the notification settings.

Attention! In the filters, using the P/L intraday values, P/L is calculated on the basis of the trading session opening price (The intersession gap is not considered).

 

Filter

The Way The Filter is Applied

Comments

 

Applied to the Account

Applied to the Group

Applied to the Instrument

 

Absolute volume in contracts per order

yes

yes

yes

 

Limit of intraday cumulative long position, contracts

yes

yes

yes

The cumulative is the incoming position at the beginning of the trading session + the sum of all the purchases for the long position or the sum of all sales for the short position involving each instrument.

Limit of intraday cumulative short position, contracts

yes

yes

yes

The cumulative is the incoming position at the beginning of the trading session + the sum of all the purchases for the long position or the sum of all sales for the short position involving each instrument.

Limit of intraday current long position, contracts

yes

yes

yes

 

Limit of intraday current short position, contracts

yes

yes

yes

 

Maximum price deviation, price steps (ticks)

no

no

yes

The price is set by the administrator.

Deviations are set for every instrument, every group of instruments and the account.

Price deviation from defined %

no

no

yes

The price is set by the administrator.

Deviations are set for every instrument, every group of instruments and the account.

Maximum volume of orders per timeframe

yes

yes

yes

The time frame is set in seconds. The minimum step is 1 second. Inaccuracy in stable environment should not exceed 0.5 second. Low power of your CPU and connection failures may increase the time frame in applying filters and even cause to failure in applying filters at all.

Maximum number of orders per timeframe

yes

yes

yes

The time frame is set in seconds. The minimum step is 1 second. Inaccuracy in stable environment should not exceed 0.5 second. Low power of your CPU and connection failures may increase the time frame in applying filters and even cause to failure in applying filters at all.

Limit of Summary buy, contracts

yes

yes

yes

 

Limit of Summary sell, contracts

yes

yes

yes

 

Limit total net volume

yes

yes

yes

 

Limit of Summary volume, money

yes

yes

yes

 

Limit of cumulative short position, money

yes

yes

yes

 

Limit of cumulative long position, money

yes

yes

yes

 

Allowed order types

yes

yes

yes

Available types of orders:

by market;
limit;
conditional order buy/sell if greater;
conditional order buy/sell if lower.

Order is valid during

yes

yes

yes

The time frame is set in seconds. The minimum step is 1 second. Inaccuracy in stable environment should not exceed 0.5 second. Low power of your CPU and connection failures may increase the time frame in applying filters and even cause to failure in applying filters at all.

Sell orders restriction

yes

yes

yes

 

Buy orders restriction

yes

yes

yes

 

Block order if gross loss is above

yes

no

no

 

Block order if gross loss is above %

yes

no

no

 

 

Time Frames and Applying Filters

 

The speed of The Pretrade Filters and Risk Management Module is defined by many inner and outer reasons. The program is ____ to watch the orders every 0.5 second, the filters are ____ to be applied every 1 second.  Inaccuracy in stable environment does not exceed  0.5 seconds.

 

Attention! Low power of your CPU and connection failures may increase the time frame in applying filters and even cause to failure in applying filters at all.

 

Notifications

 

The Pretrade Filters and Risk Management Module is enhanced by the tab Notifications.You can set up an e-mail account in the program to receive notifications about all the events happening in the Pretrade Filters and Risk Management Module.

 

The Tab Notifications

The Tab Notifications

 

To start receiving notifications you should check the box Enable Notifications in the tab Notifications.

 

 

E-mail Server Settings

E-mail Server Settings

 

 

Parameter

Description

From

The reporter's e-mail address.

Send Message in Header

Includes the text of the message into the caption of the message.

User's Name

The login identifying you at the e-mail server.

Port

The port number of the outgoing e-mail messages.

Password

Your password.

SMTP Server

The e-mail server address

SSL

Use/Do not use the protected connection.

 

Attention! The window Notification Manager and Notifications have identical functions.