Automation of strategy tester

 

Is there any way to automate the process of strategy testing. l want to run multiple tests for various assets with different parameters of each and save the reports. Is there any native or third party api to write code and execute the tests automatically or can l write a script to do the whole process ?

 

thank you 

 
interesting. Same question
 

An old post but can't see any answers. The only way I found - suggested by someone on here.

Lets say I want to test an EA called "myea" on EURUSD and USDJPY. 

=========

Create a .bat file, and two .txt files, in the same directory as an MT4 demo account installation.

Obviously the parameters will mirror your own setup, directory, symbol name etc.

With MT4 closed, run (double click) the .bat file which will then run the .txt files.

You can set additional parameters in your EA.

[batchfile.bat]

start /wait terminal.exe "c:\program files (x86)\CMC Markets MetaTrader 4\testing_EURUSD.txt"
start /wait terminal.exe "c:\program files (x86)\CMC Markets MetaTrader 4\testing_USDJPY.txt"

[testing_EURUSD.txt]

AutoConfiguration=false
TestExpert=my_ea
TestSymbol=EURUSD.r
TestPeriod=5
TestModel=2
TestSpread=5
TestOptimization=FALSE
TestVisualEnable=false
TestDateEnable=false
TestReport=EURUSD_report.html
TestReplaceReport=true
TestShutdownTerminal=true

[testing_USDJPY.txt]

AutoConfiguration=false
TestExpert=my_ea
TestSymbol=USDJPY.r
TestPeriod=5
TestModel=2
TestSpread=5
TestOptimization=FALSE
TestVisualEnable=false
TestDateEnable=false
TestReport=EURUSD_report.html
TestReplaceReport=true
TestShutdownTerminal=false
Reason: