All within 1 second, I had a "Buy to Cover" start and before it could be Status = Filled/change to flat, another "Buy to Cover" with the same signal name happened and I then was long 1 contract instead of being Flat.
I tried to use what was written in https://ninjatrader.com/support/help...rderupdate.htm but don't know if I have implemented it correctly.
I wasn't sure if something like this would work:
if(myOrder.OrderState == OrderState.Submitted && myOrder.OrderState != OrderState.Filled)
{
return;
}
Comment