I changed my code based on example you sent but unfortunately still doesn't work
But I noticed one thing:
I'm trying to make it work in playback but I saw in the example file some order parameters is made in Realtime state.
else if (State == State.Realtime) { // one time only, as we transition from historical // convert any old historical order object references // to the new live order submitted to the real-time account if (entryOrder != null) entryOrder = GetRealtimeOrder(entryOrder); if (mar****rder != null) mar****rder = GetRealtimeOrder(mar****rder); if (stopOrder != null) stopOrder = GetRealtimeOrder(stopOrder); if (targetOrder != null) targetOrder = GetRealtimeOrder(targetOrder); }
Because I cannot see any other thing wrong with my code.
I changed my code in OnOrderUpdate and OnExecutionUpdate with same idea from cancel example code but still doesn't work.
The code is generating a single entry order to guarantee no mismatch but still doesn't cancel the entry order.
Comment