Then OnExecutionUpdate I look for myLongOrder and when found I set my profit target & stop loss orders.
This work ok but if I ChangeOrder price several times before execution then there is no execution.
Any ideas?
Each time I receive an OnOrderUpdate event I store the order in myLongOrder but if (order.OrderState == OrderState.Cancelled) then I set myLongOrder = null
Comment