I'm doing some position quantity calculation in OnExecutionUpdate.
Now I'm trying to identify, why in some scenarios masterStrategy.Position.Quantity is different from my calculation that is basically doing the following:
CurrentPositionSize= volume + CurrentPositionSize;
or
CurrentPositionSize= volume - CurrentPositionSize;
I found some : Ignored SubmitOrderManaged() .
Think OnExecutionUpdate is entered before Ignored SubmitOrderManaged() is raised?
Can I catch these Ignored SubmitOrderManaged() on any way?
(Of course I'll try to identify also, why these Ignored SubmitOrderManaged() are raised but here I only want to prevent, that my calculation is getting wrong.
Thanks in advance.
Comment