I have forum-searched & Googled this but there is not much out there :(
Looking at this 'Ask'
we can have n copies of the application on each computer...
but how do we start them easily on reboot to connect and start operations?
Command lines in shortcuts or batch files in the Startup folder (of XP) would seem to be a simple method but what are the switches & their order?
I have read that account number &/or profile can be set in a command line but what exactly are all the options?
Broker Server IP?
Break Through The Strategy Tester Limit On Testing Hedge EA
An idea of testing the hedge Expert Advisors using the strategy tester.
Thanks very much ukt :)
Seems the context for this information is within the application construction rather than MQL programming.
I had noticed that after a crash, MT4 would not neccessarily restart on the same profile or chart/s as prior to the hang.
So I was keen to handle quick recovery as well as efficient initial setup - this system does both :)
To save people trawling through it, it appears you can start a specific instance of MT4 with a command line (in batch file or shortcut)
An example of start.ini would be:
; common settings
Proxy Server Settings
; experts settings
; open chart and run expert and/or script
Hi I am trying to do batch testing of EA's using a .INI file for each EA and then telling strategy tester to process them, as per the Help documetation. But Between each and every file The terminal shuts down and re-opens and re-logins.
This of course is very time consuming and probably very annoying to my broker's server when doing several dozen EA's.
Does anyone know of a way in the batch file to tell the terminal to start one instance and use it for the whole test. Or to use an already open instance if one is already open on that machine?
I use the simple method of making an icon for each different instance of MT4 then I just plonk the icons that I want to auto start in the startup menu.
how to set ftp setting in mt4 start up using command line.
extern int ftp = 5; //this way we have a ftp setting in the start up with a command line
The parameter names has actually changed. From "ExpertParameters" to "TestExpertParameters" for example.
I can't find the documentation anymore for MetaTrader 4.
This solution works.
On the command line I issue a bat-file with the following contents:
"C:\Program Files (x86)\MetaTraderl\terminal.exe" /wait "C:\Users\Username\AppData\Roaming\MetaQuotes\Terminal\Common\Files\kanalen GER30 H1 bull.txt
And the contents of the text file is:
; Generated [Sun 2014-04-27 08:01:57]
TestReport=kanalen H1 GER30 bear
Hope this will help someone. I surely would have benefitted myself if I've gotten this help.
I also have a script that generates all these command-files. It makes it possible to easily to test 15 strategies.
Then I do a portfolio analysis by reading from the generated htm-files which ends up in a .CSV-file for the Portfolio.
To add comments, please log in or register