Please tell me, is it possible to somehow run the strategy tester from the script code, or the command line with predefined parameters?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Our community is a completely independent place for communication between forex traders and software developers for trading platforms Metatrader 4 and Metatrader 5
Create A New Account
vponed0
The script can be done, but this is what a hassle. Moreover, you still need to select the right one from the list of Expert Advisors, right – click on it, then run testing, and then set the settings…the script will be problematic..
and if so: make a virtual machine, put mt5 on it, run testing of the Expert Advisor. take a snapshot of the machine, select the results folder as a shared folder. and the script will already run snapshots of the virtual machine, wait until the result appears in the folder, cover the snapshot, run a new one. integrate the testing procedure into the code of the Expert Advisor under test.
This is if saving the state will not cut off testing…
also dancing with a tambourine
sanalex
here is an example of how to combine keys in a script-opens the calculator and pressing the keys
igann
there is such a possibility, I did not delve into it myself, but it was discussed on the forum running through the command line with preloads of presets
the help has the following commands
sanalex
how to do this with a batnik I can not imagine
– just run the program with a batnik, then you can do it like this
echo off
cd %ProgramFiles%MetaTrader 5
"metaeditor64.exe" /start
pause
vponed0
thank you very much, this is exactly what you need
askr
You can also run a batnik strategy tester with certain parameters this is indicated in the mql5 documentation ? you can search in Google immediately in which section it is.
greshnik1
You can take a look here, although I have my own solution: