Help Center
Our products knowledge base for customers
Strategies
General
Please note! To receive notifications for trades (of typeAlgo) generated using trading strategies, theDo not filter order notifications for source Algopermission must be enabled in the profile member's access set (see. Roles section).
Position manager type
The strategy is intended for automatic management of positions on instruments to maintain broker's risks within specified limits.
![]()
Overview
The block displays the current Status of the strategy and the Account for which it is configured.
Clicking the Positions button will open a sidepage that displays a table with information on the positions generated during the strategy's operation.
The following information is displayed in the sidepage:
| Name | Description |
|---|---|
| Instrument | The instrument for which the position is formed. |
| Position size | Current position size for the instrument. |
| Max position Size | The maximum position size set for the instrument in the strategy. |
| Utilization | Ratio of Position size to Max position size. |
| Status | Position Status. |
| Comment | Comment with an explanation for ERROR type statuses. |
The strategy starts working at the moment when the Enabled checkbox is active.
Strategy
In order for the strategy to work, the Account ID field must contain the account of the BBook executor to which the strategy will be applied.
Please note! For the strategy to work correctly, it is necessary to setData source type=ABookand enable theB-Book executoroption in the aggregator settings of the BBook executor account.
Position manager rules
Using the Add Rule button it is possible to form a set of parameters for interaction of a strategy with a group of instruments. Each rule in a strategy can contain only one instrument group.
The Max position size field defines the maximum position size for any instrument in the group. Any volume in excess of the set amount will be transferred to ABook execution.
Note! The position will be transferred to the ABook account only if the position volume for the instrument exceeds the maximum by Minimum order volume available for execution at the liquidity provider.
Interval between orders in milliseconds - frequency of repetition of attempts to transfer a position to an ABook account.
First order delay in milliseconds - if it is impossible to transfer a position to an ABook account at a particular moment, the system will repeat the attempt in a specified time interval (in milliseconds).
The Max retry count field allows you to specify the number of attempts to resubmit an order to the provider. The interval between attempts is defined in the Interval between orders in milliseconds field. If the order fails to be resubmitted, an event of the Error type, Strategy entity type, and a relevant description will be generated in the Event Log tab of the History section.
If the field is empty or contains 0, the system will not attempt to resubmit the order.
The Active checkbox allows to enable or disable the rule operation.
The Close to zero checkbox allows to switch the logic of the position manager between two management modes - the standard CBook mode and the full position closure mode.
Position manager operating modes
Standard mode
When the Close to zero checkbox is disabled, the strategy operates in standard CBook mode:
- The system leaves the maximum allowable position volume on the BBook account, set in the
Max position sizeparameter. - The remaining part of the position is calculated by subtracting the maximum size from the received volume.
- The obtained value is rounded down to the nearest whole number in accordance with the
Min order sizeof the liquidity instrument. - The rounded volume is sent to the liquidity provider for hedging.
Example:Max position sizeis set to 0.999. A client sends a buy order for 7.111 shares.
- Remaining on BBook: 0.999 shares (maximum allowable position size)
- Volume to send to provider: 7.111 - 0.999 = 6.112 shares
- After rounding: 6 shares are sent for execution
- Result: 1.111 shares remain on the BBook account
Close to zero Enabled
When the Close to zero checkbox is enabled, the strategy operates in full position closure mode. This mode is designed to minimize broker risks by maximizing position closure at the liquidity provider when the threshold position size is reached.
In this mode, the logic works as follows:
- Upon receiving an order, the system checks whether the new position exceeds the value set in the
Max position sizeparameter. - If the position volume reaches or exceeds the set threshold, the system initiates full position closure on the ABook account.
- The system sends the liquidity provider an order for the maximum possible volume, rounded to the
Min order size. - The fractional part of the position remains on the BBook account, which cannot be closed due to the minimum order size.
Example:Max position sizeis set to 0.999. A client sends a buy order for 7.111 shares.
- Check: 7.111 > 0.999 (position exceeds threshold, full closure is initiated)
- An order for 7 shares is sent to the provider
- 0.111 shares remain on the BBook account (fractional part) instead of 1.111 in standard mode.
Click the Create button (for a new setting) or Save button (for an existing setting) to apply and save your changes.
To change an existing setting, click the Edit button.
In edit mode, the setting can be deleted by clicking the Delete button.