I am using an unmanaged strategy. I am now ready to test live (but in a demo account). I have read about how to handle the transition from historical to live when the strategy is enabled on real-time data.
Here is my problem: when I call GetRealtimeOrder with a historical order reference, it returns a null value:
if (myorder != null)
myorder = GetRealtimeOrder(myorder);
// myorder is now NULL!!
No exception is thrown at the time I call GetRealtimeOrder. Then in subsequent code execution I am getting a null reference exception in referencing myorder.
Why is this happening? Under what circumstances does this function return a null reference? What can I do about this?
Thank you,
Charlie
Comment