Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, AndrewAMD, TedMar), 1,306 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Run the same strategy simultaneously with 2 different brokers? #461670
08/16/16 22:51
08/16/16 22:51
Joined: Jul 2016
Posts: 93
Düsseldorf, Germany
M
mhdus Offline OP
Junior Member
mhdus  Offline OP
Junior Member
M

Joined: Jul 2016
Posts: 93
Düsseldorf, Germany
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/16 23:09
08/16/16 23:09
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline
User
MatPed  Offline
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
I guess you can do it copying Zorro's files in 2 different directories. So you will have no conflict.

Ciao

Re: Run the same strategy simultaneously with 2 different brokers? [Re: MatPed] #461672
08/17/16 00:12
08/17/16 00:12
Joined: Jul 2016
Posts: 93
Düsseldorf, Germany
M
mhdus Offline OP
Junior Member
mhdus  Offline OP
Junior Member
M

Joined: Jul 2016
Posts: 93
Düsseldorf, Germany
The first problem is:

Z1 (oP group) ..
ZorroMT4.dll => MT4 plugin mounted
Login MT4..
!Can't initialize MT4 bridge!
Check account number xxxxx
Can't connect!

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/16 08:00
08/17/16 08:00
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline
User
MatPed  Offline
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
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/16 11:41
08/17/16 11:41
Joined: Jul 2016
Posts: 93
Düsseldorf, Germany
M
mhdus Offline OP
Junior Member
mhdus  Offline OP
Junior Member
M

Joined: Jul 2016
Posts: 93
Düsseldorf, Germany
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/16 15:04
08/17/16 15:04
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
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/16 16:14
08/17/16 16:14
Joined: Jul 2016
Posts: 93
Düsseldorf, Germany
M
mhdus Offline OP
Junior Member
mhdus  Offline OP
Junior Member
M

Joined: Jul 2016
Posts: 93
Düsseldorf, Germany
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/16 21:57
08/17/16 21:57
Joined: Jul 2016
Posts: 93
Düsseldorf, Germany
M
mhdus Offline OP
Junior Member
mhdus  Offline OP
Junior Member
M

Joined: Jul 2016
Posts: 93
Düsseldorf, Germany
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/16 09:13
08/18/16 09:13
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
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/16 09:29
08/18/16 09:29
Joined: Jul 2016
Posts: 93
Düsseldorf, Germany
M
mhdus Offline OP
Junior Member
mhdus  Offline OP
Junior Member
M

Joined: Jul 2016
Posts: 93
Düsseldorf, Germany
Understood - thanks!


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1