When a native order is placed by an ADL algo, it is routed to the TT risk system. If it passes the necessary risk checks, it is then routed to a TT component called the Order Connector which then routes it to the exchange. If it does not pass the risk checks done by the TT risk system, it is rejected and the algo is stopped.
ADL developers can use the Position Risk block to have an additional risk check done before the native order is sent to the TT risk system. This is generally done to ensure that an ADL algo instance is stopped if it attempts to go beyond certain limits. You would commonly set the values of limits to be checked by the Position Risk block to be less than a user’s actual risk limits. If you set the values of these limits to be above a user’s actual risk limits, the order will be rejected by the TT risk system.
Example: This algo uses two Position Risk blocks to set different maximum long and short limits for the attached instrument.
If you enable the Flip for Sell Order property, the limit will apply to the side chosen by the user when the algo is launched.
The behavior of the risk check done by your ADL algo varies depending upon whether it has only a buy Position Risk block, only a sell Position Risk block, or both buy and sell Position Risk blocks for a given instrument / account. Specifically:
Buy Position Risk block only:
Sell Position Risk block only:
ADL developers can gain a significant performance boost by enabling the “Enable Position Reserve” option when using the Position Risk block.
When enabled, the ADL algo, upon being launched, will send a separate Position Reserve order to the TT risk system for each Position Risk block to reserve a specified amount of position risk. Any subsequent native orders that are sent by the ADL algo will undergo a risk check by the Position Risk block to confirm that they do not exceed the limits specified. If this check succeeds, the native order is then routed directly to the TT Order Connector bypassing the TT risk system.
Note: Attempts to reserve risk from the TT risk system that is greater than a user’s available risk will be rejected and the algo will be stopped.
Note: Use of Position Reserve orders is restricted to dedicated Algo Servers. Their use is not available on gen-pool Algo Servers.
To customize the block, update the Block Properties.
|Name||Name to display beneath the block on the ADL canvas|
|Side||Whether the block represents a limit for a long or short position.|
Whether to use the same limit for buy and sell orders.
See Flip For Sell Orders Functionality for more information.