Profit target quantity distribution

Sum of Target1QtyPct, Target2QtyPct and Target3QtyPct shall be 1.0 or algo order will be rejected.

It is not required to specify all three profit targets parameters but target quantity percentage sum still shall be 1.0 so if only one profit target needs to be launched value of corresponding percentage parameter shall be 1.0.

Algo uses ‘greedy’ logic when allocating its quantity to profit targets: the target with higher quantity percent gets it first, then come targets with lower quantity percent. If there are two targets with equal quantity percent then quantity is allocated to profit targets in numeric order.

For example, if algo order quantity is 1 and there are two profit targets both having 0.5 as their corresponding quantity percent, then there will be a 1 lot Limit order sent to destination Exchange for first target, and no orders for second target.

Quantity allocated to targets is rounded to a closest integer value. For example, if order size is 9 and there are 2 targets with 0.5 quantity percent then first one will get 5 lots, second – 4 lots. If order size is 9 and there are three targets with 0.33, 0.33 and 0.34 quantity percent correspondingly, each one will result in a Limit order for 3 lots.

Currently it is not allowed to change quantity percent values for profit targets.

Update of algo quantity may result in cancellation of Limit orders corresponding to profit targets if newly allocated profit target quantity becomes equal to a quantity already filled for that target.