Hello,
I have a problem with the order :ExitLongStopMarket (StopVol, "SL_ATR",""):
Log:"An order has been ignored since the stop price ‘5489.5’ near the bar stamped ‘06/10/2011 15:15:00’ is invalid based on the price range of the bar. This is an invalid order and subsequent orders may also be ignored."
I understand the case of this type of orders when its setup is produced in the 1 candle of the input, that's why I include a condition: if (Close[0] < StopVol) ExitLong("Stop_ATR level exceeded", "");
The problem is that Strategy analyzer, in the optimizations that occur in this case, slows down enormously, even blocking the NT...
I have tried to solve it with: if (BarsSinceEntryExecution() >= 1) ExitLongStopMarket (StopVol, "SL_ATR","");
But the problem I have again when in range of the glider exceeds the Stop_ATR
How can I solve it without going to "SetStopLoss"?
Optimizacion Backtest (TF 15_ FDAX)
Comment