Is there a way to make sure that a stop that gets triggered on the same bar as an additional strategy does not run both simultaneous, ending up with a net short position (on a long only strategy)?
I think this happened to me today when live testing.
I am wondering if the following if-then logic in the OnBarUpdate() exits would work in front of the alternative exit strategies to prevent double exitting (ending up with a net reverse position w/ no exits).
if (condition 1 &&
Position.MarketPosition != MarketPosition.Flat)
{ ExitLong...
Comment