SetDiscretion (Reserved Word)
Enables or disables the ”Discretionary” advanced order setting.
No validation of orders will be done. Any incorrect combination will result in the trade server rejecting the order.
Usage
SetDiscretion(DiscretionValue)
Return
None
Inputs
DiscretionValue is a double value. If greater than zero the ”Discretionary” advanced setting is enabled using the value entered as the discretion to be added to the limit price. If zero the ”Discretionary” advanced setting is disabled.
Example
A limit order to buy that reflects in the market at .05 below the current inside bid, but will execute up to .05 cents above the current inside bid.
if lastbaronchart then begin
SetDiscretion(.10);
Buy next bar at InsideBid -.05 Limit; ;
end;