However, we are finding that sometimes this will still happen:
A "Close position" is fired off from a reversal, (IE: we were long, then a EnterShort fires off) and stop fills just as this order is fired. This is happening on realtime data, with the NT simulator.
Description of the problem (see screen shot)
In (line 2) a reversal is ordered (EnterShort), so NT attempts to close the open Long position (line 1). Profit target and stop loss are working.
The Stop fills (lines 4) the net position is now flat (lines 7), but the Close Position order gets accepted and is eventually filled (lines 8-10).
The net position is now Short 1, when it should be flat at this point (lines 12).
The "Bar Direction Short" order now executes (lines 13-15), and the result is a net short position of 2 (lines 17).
Is there a way to fix this? (ie: using OCO on the Close Position?)
Comment