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); }
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?