Running MT4 Terminal from Command Line

 

Hello All,

Has anyone had success opening terminal.exe from the commandline using switches to open a chart window and also specify an Expert Advisor to run in the chart window on opening?

Could you potentially point me to other posts/how to's pls..

Thanks,

Ian

 
IanTetlow:

Hello All,

Has anyone had success opening terminal.exe from the commandline using switches to open a chart window and also specify an Expert Advisor to run in the chart window on opening?

Could you potentially point me to other posts/how to's pls..

Thanks,

Ian

MT4 Command line .ini
https://www.mql5.com/en/forum/245432#comment_7486345
https://www.mql5.com/en/forum/240544#comment_7231719
https://www.mql5.com/en/forum/224813#comment_6345558
 

I've tried creating a simple ini file with nothing other than 

; open chart and run expert and/or script 

Symbol=EURUSD 

Period=H4 

then from commandline >terminal testfile.ini

and also >terminal /config:testfile.ini

it just opens the terminal but does not open a chart with EURUSD t/f H4

what am i doing wrong?

 

managed to get a chart window to open but the window stay blank with the message waiting for update.

when right clicking on the window aqnd going into properties the settings are blank.

Creating a new chart is fine ???

 
then from commandline >terminal testfile.ini

and also >terminal /config:testfile.ini

Make sure you specify full paths on the command line.

See this example (which is obviously for MT5, so translate accordingly):

https://www.mql5.com/en/forum/265448#comment_8075273

 

Figured it out - it was the Symbol was missing a dot

was 

Symbol=EURUSD

when it should have been 

Symbol=EURUSD.


Its a broker thing..

DOH!!

 
IanTetlow:

Figured it out - it was the Symbol was missing a dot

Glad you found it because I would have never seen that.

:-D

 
@Anthony Garot @IanTetlow I too was wondering about this and finally made it work, but couldn't find a way to generate reports in a format other than htm. Do you have any suggestions, or should I be starting to write a HTML parser instead? ;) Hope there's a better way! Thanks in advance.
Reason: