
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 have created a batch file for auto startup MT5 and perform a backtest with the following:
"C:\\Program Files\\MetaTrader 5\\terminal64.exe" /portable /config:"C:\\Program Files\\MetaTrader 5\\config.ini"
and the following for the .ini file:
When I double-click on the start.bat file MT5 starts normally and performs backtest, saves the results as expected.
but when I try to run it by shell cmd, the MT5 starts in the background (only noticeable on Task-manager) and at this stage I'm not exactly sure if it performs any backtest or not, and then shutdowns the terminal as we have said so in the ini file. otherwise it will be running at background without noticing. and the report file is not saved.
again, when I double-click everything works fine.
my python code:
same results with then shell_exec() func.
so I thought it might be permission problem, but when I printed out 'whoami' I saw it's already Administrator .
I'd appreciate any helps.
Best,