Based on the documentation which lists a Login and a Password entries, I thought creating my custom config file that would allow me to run EAs programatically from a Windows command line should be a relatively straightforward task.
I created the following very basic .ini file, almost identical to the one provided in the link above:
And then ran the following command from the command line (note: I had previously added the directory in which terminal64.exe is located, to my Windows path):
This does launch the MetaTrader platform in case it had been closed, but once the platform loads, a popup asks for my login details (which are even remembered/autofilled, so I don't have to do anything else besides just clicking "OK"). I doubt the system would require a manual approval of login details every time. I don't understand though, how this happens, since I specified the correct login and password info in my .ini file, it is in the correct location, and as far as I'm concerned, the command line call is also in the correct format according to the documentation.
Could someone please help as to what I am missing?
Edit: I use Meta Trader 5 and Windows 10.
![Platform Start - For Advanced Users - MetaTrader 5 Help Platform Start - For Advanced Users - MetaTrader 5 Help](https://c.mql5.com/36/47/platform-start-for-advanced-users.png)
- www.metatrader5.com
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Based on the documentation which lists a Login and a Password entries, I thought creating my custom config file that would allow me to run EAs programatically from a Windows command line should be a relatively straightforward task.
I created the following very basic .ini file, almost identical to the one provided in the link above:
And then ran the following command from the command line (note: I had previously added the directory in which terminal64.exe is located, to my Windows path):
terminal64.exe /config:"C:\Users\myname\AppData\Roaming\MetaQuotes\Terminal\my_unique_accountID\config\my_custom_config.ini"
This does launch the MetaTrader platform in case it had been closed, but once the platform loads, a popup asks for my login details (which are even remembered/autofilled, so I don't have to do anything else besides just clicking "OK"). I doubt the system would require a manual approval of login details every time. I don't understand though, how this happens, since I specified the correct login and password info in my .ini file, it is in the correct location, and as far as I'm concerned, the command line call is also in the correct format according to the documentation.
Could someone please help as to what I am missing?
Edit: I use Meta Trader 5 and Windows 10.