I am running a strategy with the following setup:
CalculateOnBarClose = false
manage approach order
liveUntilCancelled = false
By default, orders are kept alive provided that they are resubmitted
on each call of the OnBarUpdate() method. If the order is not re-submitted, the order is then cancelled.
The problem is if I have submitted an order (stop limit order) and the order state is pending
and I do not resubmit the order again in the next OnBarUpdate() the order is not cancelled immediately, it is cancelled only when bar closed.
Sincerely,Kobi

Comment