I'm putting an EnterLongStop at each bar within OnBarUpdate().
Same for a stop loss. (Backtest)
EnterLongStop(1, buystop2,"entry long");
SetStopLoss("entry long",CalculationMode.Ticks, Range()[0]*0.5/TickSize, false);
Whenever the order is filled, the stop loss occures at Open of the entry bar.
Exit woud normally take place at the following Open.
Why is that? Are there any pending stop loss orders due to orer submission at every bar that cause that behaviour. Do I have to use OnExecution() and OnOrderupdate() for proper working SLs?
Comment