Backtesting EA - looking for the cause of repaint
tradermurrel:
Hello,
I am currently looking for the reason of a repaint issue that only occurs in the MT5 backtest. The following question:
I do a backtest in the M5 period, modeling "Every tick based on real ticks". My EA fetches the data of the last D1 candle for every new M5 candle. Does this D1-data correspond to the current M5 time (i.e. the not yet finished D1 candle is fetched) or to the time of the finished D1 candle? In the latter case it would contain data from the future.
I would be very grateful for your help
Best regards
murrel
Hello,
I am currently looking for the reason of a repaint issue that only occurs in the MT5 backtest. The following question:
I do a backtest in the M5 period, modeling "Every tick based on real ticks". My EA fetches the data of the last D1 candle for every new M5 candle. Does this D1-data correspond to the current M5 time (i.e. the not yet finished D1 candle is fetched) or to the time of the finished D1 candle? In the latter case it would contain data from the future.
I would be very grateful for your help
Best regards
murrel
you cannot "read the future" in backtesting (-only in indicators) so the D1 value is the last bar value (changing) so it's actually the same value as the last bar from other Timeframes (actual close value)

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
I am currently looking for the reason of a repaint issue that only occurs in the MT5 backtest. The following question:
I do a backtest in the M5 period, modeling "Every tick based on real ticks". My EA fetches the data of the last D1 candle for every new M5 candle. Does this D1-data correspond to the current M5 time (i.e. the not yet finished D1 candle is fetched) or to the time of the finished D1 candle? In the latter case it would contain data from the future.
I would be very grateful for your help
Best regards
murrel