How to fix backtest errors

 

Why does the EA work fine when running on a chart, but display this when backtested?

 

It looks like the symbol you are trying to test does not have enough data or it may be misaligned.

If your EA has settings for the symbol specifically as an input, make sure they are the same as the symbol you are trying to test.

 
Nguyen Cong Hoan:

Why does the EA work fine when running on a chart, but display this when backtested?

i think it is a bug that has already been reported to the dev team. i recommend that you downgrade to release version 5430

Forum on trading, automated trading systems and testing trading strategies

All about MT5 updates.

Alain Verleyen, 2025.12.16 22:54

In case you got an BETA update, for whatever reason, and you want to move to the last official release :

  • A Telegram channel has been created, you will always find there the last official release needed exe files.
  • MT5 Terminal is available in several versions according to your CPU capabilities. You can check which version you have to use in the Journal log, at the first entries after you started MT5.

Here my version is AVX2, an other possibility is X64

  • With this information you will know which zip file to download.


  • You then just have to replace your current exe files with the ones from the Zip. If you don't know how to do, then doing this operation is probably not a good idea.

After MT5 is restarted, you will have the last official release.

If you don't want to get beta-build updates again :

  • NEVER connect to MetaQuotes-Demo server.
  • NEVER use MT5 Terminal Help menu=>Check for Updates=>Last Beta Version.

 

Yes, Michael is right, another user has the same problem: https://www.mql5.com/en/forum/55430#comment_58980074

The latest stable MT5 build is 5430 and you can find it here: https://www.mql5.com/en/forum/502088#comment_58974203
All about MT5 updates.
All about MT5 updates.
  • 2025.12.16
  • www.mql5.com
This topic will be used to bring together all information about MT5 updates process. This is NOT for chitchat...
 
Michael Charles Schefe #:

Tôi nghĩ đây là một lỗi đã được báo cáo cho nhóm phát triển. Tôi khuyên bạn nên hạ cấp xuống phiên bản 5430.


Thank you very much. I succeeded.