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.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.