Strategy Tester, Error when testing EA

 

Dear Forum, I am experiencing an error when testing an EA in the Strategy Tester. The EA does not trade and the graph results in a flat line. I tested the same EA (with the exact same settings and data) two months ago, and it ran without errors. I do not understand why MT5 has so many bugs and changes from one day to the next. Can you please suggest some steps to remedy the situation? Do I need to uninstall and reinstall MT5 every few weeks, or clear the history of the MT5 Strategy Tester?

A polite response would be appreciated. Not everyone is an expert in MT5, which would seem to be the reason for the existence of this forum. As a human being, I am more than capable of admitting fault if I have made a mistake somewhere along the way, but a friendly response would be appropriate, especially considering the glitchy nature of MT5 and the fact that things stop working from one week to the next, for no apparent reason.

Thank you. 

The Fundamentals of Testing in MetaTrader 5
The Fundamentals of Testing in MetaTrader 5
  • www.mql5.com
What are the differences between the three modes of testing in MetaTrader 5, and what should be particularly looked for? How does the testing of an EA, trading simultaneously on multiple instruments, take place? When and how are the indicator values calculated during testing, and how are the events handled? How to synchronize the bars from different instruments during testing in an "open prices only" mode? This article aims to provide answers to these and many other questions.
 
Nico170:

Dear Forum, I am experiencing an error when testing an EA in the Strategy Tester. The EA does not trade and the graph results in a flat line. I tested the same EA (with the exact same settings and data) two months ago, and it ran without errors. I do not understand why MT5 has so many bugs and changes from one day to the next. Can you please suggest some steps to remedy the situation? Do I need to uninstall and reinstall MT5 every few weeks, or clear the history of the MT5 Strategy Tester?

A polite response would be appreciated. Not everyone is an expert in MT5, which would seem to be the reason for the existence of this forum. As a human being, I am more than capable of admitting fault if I have made a mistake somewhere along the way, but a friendly response would be appropriate, especially considering the glitchy nature of MT5 and the fact that things stop working from one week to the next, for no apparent reason.

Thank you. 

Hard to tell with the details given.

What do the logs say? Journal tab and expert tab?

Also what about the results from the backtest?

You need to provide more details. If it is a bought product from market place, you might be better off consulting with the author of the product.


 
Nico170:

Dear Forum, I am experiencing an error when testing an EA in the Strategy Tester. The EA does not trade and the graph results in a flat line. I tested the same EA (with the exact same settings and data) two months ago, and it ran without errors. I do not understand why MT5 has so many bugs and changes from one day to the next. Can you please suggest some steps to remedy the situation? Do I need to uninstall and reinstall MT5 every few weeks, or clear the history of the MT5 Strategy Tester?

A polite response would be appreciated. Not everyone is an expert in MT5, which would seem to be the reason for the existence of this forum. As a human being, I am more than capable of admitting fault if I have made a mistake somewhere along the way, but a friendly response would be appropriate, especially considering the glitchy nature of MT5 and the fact that things stop working from one week to the next, for no apparent reason.

Thank you. 

Check your code by using the debugger. See here how to use it:

Code debugging:  https://www.metatrader5.com/en/metaeditor/help/development/debug
Error Handling and Logging in MQL5:  https://www.mql5.com/en/articles/2041
Tracing, Debugging and Structural Analysis of Source Code, scroll down to: "Launching and Debuggin": https://www.mql5.com/en/articles/272

Code debugging - Developing programs - MetaEditor Help
  • www.metatrader5.com
MetaEditor has a built-in debugger allowing you to check a program execution step by step (by individual functions). Place breakpoints in the code...
 
hi i a, using mt5 on demo with multiple demo accounts when i switch between accounts the ea & chart i set follows to the next accounts, im trying to run tests on different eas on on different accounts but they just seem to copy when i switch accounts. can anyone help with this, thanks