How to stop loss at 1min OHLC?
I tried this but it is still losing backtesting every tick
and profiting backtesting 1min ohlc
void StopLoss2() { double Incre_SL = NormalizeDouble( AccountInfoDouble(ACCOUNT_EQUITY)/AccountInfoDouble(ACCOUNT_BALANCE), 3); if ((Incre_SL <= Stop_Loss_Level2) && (IsNewBar() == true) ) { { Ordering=false; CloseAll3(); } } } bool IsNewBar() { if(BARS!=Bars(Symbol_1,PERIOD_M1)) { BARS=Bars(Symbol_1,PERIOD_M1); return(true); } return(false); }
Backtesting using Every Tick and 1 min OHLC yield very different result.
Would it be possible to perform the StopLoss() function at 1 min OHLC intervals
even when Backtesting Every Tick?