Running MT4 Terminal from Command Line

To add comments, please log in or register
IanTetlow
17
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

Anthony Garot
3272
Anthony Garot  
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
IanTetlow
17
IanTetlow  

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?

IanTetlow
17
IanTetlow  

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 ???

Anthony Garot
3272
Anthony Garot  
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

IanTetlow
17
IanTetlow  

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!!

Anthony Garot
3272
Anthony Garot  
IanTetlow:

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

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

:-D

To add comments, please log in or register