I am wanting to do some backtesting using data that is not from my broker and I want to start MT4 from a command line to do unattended runs. However, each time MT4 starts it asks for a log in. Normally I can cancel the login and run the backtesting as I like, but if I run MT4/backtesting from a command line it will ask me for a login and I have to attend MT4 start up so I can to hit the cancel button. Is there a way of logging in a "no connection" state to run the back test? Or is there a way that I can prevent over writing my already stored data?
For detail of running from a command line see the MT4 Help/Help Topics > Userguide. In the User guide look at: Tools/Configuration at startup
In the tab, one can see how to use the command line to start the MT4 with user login and how to run the EA.
I want to drive my back testing from a script (windows 7 Powershell).
thanks for any help.
However, each time MT4 starts it asks for a log in
auto login: options -> servers -> keep personal settings.
set a non-existent proxy
Wow thanks. I set up the non-existent proxy and copied the historical data from my other 'live' proxy files. I can now see the data.
Then I did start a live account from my broker. I then deselected the "keep personal settings" button. I then reset the server option (Tools> options> Server) to the non-existent folder.
Now it all works.
Thanks so much, I would have taken a long time to figure this out.