Please use the CODE button (Alt-S) when inserting code and anything similar.
This topic has been moved to the section: Expert Advisors and Automated Trading
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I'm trying to replicate the Strategy Tester --> Inputs functionality without using the UI. I guess this is called "optimization" in MT5. Basically I want to do a grid search. I've figured out most of it, I have a batch file which calls an .ini which calls a set of parameters using the argument
ExpertParameters=Set1.ini
My Set1.ini file looks like this. Let's say I just wanted to look through different cases of RR for now. I picked up the "||" separation notation from looking at other system generated set files which existed there.
So the issue is that only one run is done, not multiple runs looping through all the defined values of RR. The one run is based on the first value of RR. The process seems to ignore everything else after that. It is reading the Set1.ini file correctly because if I change the first value, that new value is getting picked up. I'm not sure if it has to do with the Strategy Tester --> Inputs section being grayed out when I launch the MT5 UI (not sure how to fix this one as well).
I've looked at the following resources:
https://www.mql5.com/en/forum/372283 - this is another library, and it is about using multiple pairs. I want to avoid any UI interaction and just launch from a batch fie.
https://www.mql5.com/en/forum/14961
https://www.mql5.com/en/forum/156315
https://www.mql5.com/en/articles/1467