Does ChangeOrder() always triggers OnOrderUpdate() ?
Or does it triggers only if something really changed in orders parameters?
Or it depends of something else?
I am using a flag variable Is_Change_Submitted that set to TRUE when order changes submitted.
And I am going to set flag to FALSE in OnOrderUpdate(), but it is not triggered and the flag remains TRUE forever.
So, what it correct way to handle orders changes?
Do I need Is_Change_Submitted flag at all?
Are there any scenarios where it can be useful?
For example, can I change again or cancel order while it already submitted to change?
Or what if strategy submit price change and, before order state changed to ChangeSubmitted, strategy will submit quantity change?
Or I shouldn't care about it in Umnanaged approach?
Thank you.
Comment