I wonder if/how it is possible to run the same strategy in parallel with 2 ZorroS instances on the same VPS and 2 different MT4 brokers? I believe I understand how to set up Accounts.csv and multiple AssetsXX.csv files and having multiple ZorroS instances running in parallel with different strategies. But I wonder how e. g. the .trd .fac and .par files are managed if 2 ZorroS are running the SAME strategy as they are all named after the strategy name?
Re: Run the same strategy simultaneously with 2 different brokers?
[Re: mhdus]
#461671 08/16/1623:0908/16/1623:09
The Zorro EA is successfully loaded ("Controlled by Zorro Bridge 1.9" and the Smiley).
The other Zorro instance is connected to the other MT4 instance without problems. The 2 MT4 terminals are installed in different folders. So far I have only one ZorroS installation (installing in multiple folders might be an idea but more complex to manage ...)
How does Zorro actually "find" the MT4 instance(s) and the bridge(s)?
Re: Run the same strategy simultaneously with 2 different brokers?
[Re: mhdus]
#461676 08/17/1608:0008/17/1608:00
You did not mentioned you wanted to run wit the MT4 bridge. I tried once months ago and I was not able to achieve it. You can do it (confidence at 99%), if you trade it at least one broker through the API interface. Ciao
Re: Run the same strategy simultaneously with 2 different brokers?
[Re: MatPed]
#461684 08/17/1611:4108/17/1611:41
Within the remarks near the bottom of the MT4 section the manual reads "[...] For running several MT4 instances simultaneously for special purposes - for instance, signal providing - install several MT4 clients in separate folders." and "[...] you should normally not run more than one MT4 client on a low-performance VPS (such as the free Amazon VPS), and not more than 3 clients on a high-performance VPS". This somehow implies that it should be possible to control more than one MT4 terminal. But no details how to configure this with Zorro, unfortunately. So there are (at least) 2 questions now: 1) How to attach 2 ZorroS instances to 2 MT4 terminals on the same PC/VPS? 2) How to trade the very same strategy with these 2 MT4 terminals on the same PC/VPS? Maybe the answer is "not possible" - but I'd like to be sure...
Re: Run the same strategy simultaneously with 2 different brokers?
[Re: mhdus]
#461691 08/17/1615:0408/17/1615:04
It's just the other way around: You need not Zorro in different folders, you need the MT4 terminals in different folders. And they must be connected to different accounts.
Re: Run the same strategy simultaneously with 2 different brokers?
[Re: jcl]
#461698 08/17/1616:1408/17/1616:14
That's the answer to question 1) above, correct? Unfortunately it does not work for me, error as described above ("!Can't initialize MT4 bridge!"), no entries in both MT4 EA logs. MT4s are in different folders (2 different brokers, so different installation folders by default). It even fails if I close the other MT4 instance and the other Zorro instance completely. So there seems to be an issue connecting to the MT4 instance which I installed 2nd. No problems connecting to the 1st... Assuming we can somehow fix problem 1) - What about question 2), same strategy with 2 MT4 instances and 2 accounts?
Re: Run the same strategy simultaneously with 2 different brokers?
[Re: mhdus]
#461706 08/17/1621:5708/17/1621:57
While troubleshooting I realized that I'm often getting an access violation error in the MT4 EA log when enabling the Zorro EA on a chart. The smiley is then a sad one :-( and AutoTrading is disabled (although I ticked "Allow live trading" and "Allow DLL imports"). I can then enable AutoTrading via the button in the Standard toolbar, the smiley changes to :-) and everything looks fine. I did this a few times and like magic a can suddenly connect Zorro to both MT4 instances! Ok, question/problem 1) is fixed. Question 2 (the initial question of this thread) left open... Any comments?
Re: Run the same strategy simultaneously with 2 different brokers?
[Re: mhdus]
#461711 08/18/1609:1308/18/1609:13
Autotrading must be enabled or else some MT4 function will crash at EA start. You must then remove the EA, enable autotrading, and put it on the chart again. - For letting two Zorros run the same strategy, give the "Script" string two different names. You can do that with a define from the command line without changing the script. But with the Z strategies this is not possible - you must then really have two Zorro folders.
Re: Run the same strategy simultaneously with 2 different brokers?
[Re: jcl]
#461714 08/18/1609:2908/18/1609:29