Is there a way to restart the test with changed input programmatically?

 
The specific idea is as follows:

EA has inputs:

int countorders= 1
string timeclose = "5:00"
double lot = 0.04
...

After running, EA returns a result set of inputs in a file as follows:

countorders = 4
timeclose = "7:25"
lots = 0.04
...

Start testing again with that input and continue repeating X times or meet a stopping condition to find an optimized input set.

The problem is how to restart the testing process automatically. Maybe by Optimization test but currently I still have no idea about this

 
Look at this tool (only RU part is available, use autotranslation).
MultiTester
MultiTester
  • www.mql5.com
Множественные прогоны/оптимизации в Тестере.