Rather than making the Strategy Flat, this opened an unprotected position in the opposite direction, and the strategy stopped making any further executions.
This is basically what I'm doing:
if(entryConditionTrue) { EnterLong(1, "LONGSIGNAL"); SetStopLoss("LONGSIGNAL", CalculationMode.Price, stopPrice, false); }
then later....
if(exitConditionTrue) { ExitLong("LONGSIGNAL"); }
I saw this issue happen 3 times within the first 10 minutes of the session today. How can I ensure that exit Market orders have an OCO ID so they don't fill if the Stop has already filled?
Comment