Is it possible to run multiple tests by script without opening and closing the Terminal multiple times?

 

Hi,

I'd like to perform a series of tests, +30 presets, with an EA across multiple symbols, 20+. I could do that manually, opening the .set file in the Tester, runnnig, waiting, and then doing it again, but of course that would be a hell of a work, so a script-based automated mode would be preferable.

Doing some research in the Forum, I found out that it seems the standard way of doing this is by creating a .bat file that calls for the terminal with a custom .ini configuration file that would include the test parameters. This help file coupled with this page and this one and a detail from this one provided the information with which I was able to make this work for my case.

But I found a little headache in this process: it seems that normally the way of configurating the .ini file is by setting the parameter "ShutdownTerminal=1", which would imply a "process path" of opening the terminal, test execution, closing it, opening it again, test, closing, etc.. And, well, that seems pretty inefficient :| In the manual way, I'd open and close the terminal only once of each and all the rest would be just the loading of the .set file and press Run. But in this way, almost 2/3 of the whole process is an useless reopening and reclosing the terminal, operations that take some extra time and computer resources.

The way I see it, a more appropriate way would be to give to an already open terminal the instruction to run a new test. I tried to do this by simple giving the same command line to test calling an already open terminal, but no test was started; only the Windows' system screen made the Terminal's screen selected. In the pages mentioned, no other way of doing this is mentioned, only something about having multiple instances of the Terminal installed and loaded, what is not exactly what I have in mind (the mentioned method would still open and close the multiple terminals time and time again). Asking IA for help, it mentioned about the use of the function "TerminalSendMessage", but considering the usage example, it seems it doesn't really work the way needed/I have in mind.

So, is it possible to run these tests sequences without having to open and close the terminal unnacessary multiple times?

Platform Start - For Advanced Users - Getting Started - MetaTrader 5 Help
  • www.metatrader5.com
After installation, a group of programs of the trading platform is added to the Start menu, and the program shortcut is created on the desktop. Use...
 

Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893

⚠️ You have been advised of this multiple times. Please pay attention!

 
Martin Bittencourt:

I'd like to perform a series of tests, +30 presets, with an EA across multiple symbols, 20+. I could do that manually, opening the .set file in the Tester, runnnig, waiting, and then doing it again, but of course that would be a hell of a work, so a script-based automated mode would be preferable.

...

So, is it possible to run these tests sequences without having to open and close the terminal unnacessary multiple times?

It looks like you need the MultiTester. It's published in Russian only, but there is an automatic translation button (EN) in the upper right corner of the text.

MultiTester
MultiTester
  • www.mql5.com
Множественные прогоны/оптимизации в Тестере.