Search code examples
mql5metatrader5

OnTesterInit works too long


When running an optimization on Metrader 5 I get the following error message :

OnTesterInit works too long...

This error occurs 5 times and is then followed the following :

OnTesterInit works too long. Tester cannot be initialized.

There are only 9 steps in the optimization and date range is only a few days. Furthermore the server on which it is run is powerful and uses almost no resources for this process so what is working too long?

The only related link that mentions this error message does not offer a solution.

Any help will be appreciated.


Solution

  • Removing all auto-generated methods that contain "test" solved the issue. All of those methods were empty so one would expect them to not work long.