Never heard about a way to fix a return code. Probably something to confirm with the Service Desk.
I will choose another way to get the parameters.
Hi!
if ..
C:\\Program Files\\MetaTrader 5
is your installation, I think you have to create oder modify a .set file in this foler:
C:\\Program Files\\MetaTrader 5\MQL5\Profiles\Tester
You can create a set file which you have to select in your ini or you can modify the (mostly) existing set-file of your EA.
![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
Question:
Does terminal.exe return an exit code other than 0?
Description:
I'm using python to automate optimizations. An optimization will fail, for example, when none of the parameters are selected for optimization. The journal gives this message:
And it appears that terminal.exe returns a 0.
If the optimization runs, terminal.exe likewise returns a 0.
I searched for documentation on terminal.exe command line parameters, but the only reference that I have found is here, and it does not describe terminal.exe exit codes:
https://www.metatrader5.com/en/terminal/help/start_advanced/start#command_line
Is this the expected behavior?
Oh, my python code in case I made some sort of mistake . . . .