Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, Aku_Aku, 1 invisible), 579 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
multiple brokers #470931
02/13/18 12:23
02/13/18 12:23
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
Hi,

is a possible this?

Code:
run(){
  [BROKER 1]
  calculate signal LONG/SHORT

  if is Signal -> open the order

  [BROKER 2]
   
  if is Signal -> open the order / only different Margin

  [BROKER 3]
   
  if is Signal -> open the order / only different Margin

  [BROKER 4]
   
  if is Signal -> open the order / only different Margin

}



4 broker -> max multiple brokers in ZORRO

Re: multiple brokers [Re: Grat] #479785
04/26/20 14:01
04/26/20 14:01
Joined: Jan 2020
Posts: 10
Haarlem
M
matchristrading Offline
Newbie
matchristrading  Offline
Newbie
M

Joined: Jan 2020
Posts: 10
Haarlem
Hi, I have a question on trading the same strategy on two different brokers. I made two entries in the accounts.csv file. The two accounts are with two different brokers. So I have two different MT4 instances running. I do have a Zorro S license. I started two Zorro instances, each trading the same strategy. One instance trades the strategy on account A with broker A. The other Zorro instance trades the same strategy on account B with broker B. Both accounts A and B use the same ZorroMT4.dll. I copied the same ZorroMT4.dll, ZorroMT4.exe and Zorro.mq4 to both the MT4 instances. Is that a correct way to do it? Or will there be a conflict?

Re: multiple brokers [Re: Grat] #479789
04/26/20 15:54
04/26/20 15:54
Joined: Apr 2008
Posts: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
Austria
You need 2 different ZorroMT4 dlls in the plugin folder for this.

Re: multiple brokers [Re: Petra] #479797
04/26/20 20:40
04/26/20 20:40
Joined: Jan 2020
Posts: 10
Haarlem
M
matchristrading Offline
Newbie
matchristrading  Offline
Newbie
M

Joined: Jan 2020
Posts: 10
Haarlem
I do not know how to fix it then.
I renamed one plugin in the MT4 to ZorroMT42.dll. And I also did the same in the Zorro Plugin Folder.
So now one MT4 has ZorroMT4.dll and the other MT4 has ZorroMT42.dll. And in the Zorro Plugin Folder are to dll's: ZorroMT4.dll and ZorroMT42.dll.
But now I get an error message when I load the ZorroMT42.dll on the chart of MT4.
See the attachment foor the error messages.
This is the error message when I try to load the Zorro EA on a chart in the MT4 in which I renamed the dll to ZorroMT42.dll

Attached Files Schermafbeelding 2020-04-26 om 22.32.16.png
Last edited by matchristrading; 04/26/20 20:43.
Re: multiple brokers [Re: Grat] #479799
04/26/20 22:13
04/26/20 22:13
Joined: Mar 2019
Posts: 357
D
danatrader Offline
Senior Member
danatrader  Offline
Senior Member
D

Joined: Mar 2019
Posts: 357
Did you point in your Zorro accounts csv to the two different dlls?

"But now I get an error message when I load the ZorroMT42.dll on the chart of MT4." -->> What do you mean here? You would use the EA, not the dll in MT4.


The EA has the ZorroMT4.dll as a dependency, but as far I understand, you need to rename that dll in your Zorro plugin folder.
Then point within the accounts.csv to the repsective dlls.

Now I am not 100% sure, but either you need to copy both then to your MT4 folders and compile the EA and maybe then point to the "missing dll" or something similar.

Best guess, make sure your accounts.csv is set up properly with two differnet dll names.

Then clean up your MT4 install, and do it again.

Last edited by danatrader; 04/26/20 22:23.
Re: multiple brokers [Re: danatrader] #479806
04/27/20 10:48
04/27/20 10:48
Joined: Jan 2020
Posts: 10
Haarlem
M
matchristrading Offline
Newbie
matchristrading  Offline
Newbie
M

Joined: Jan 2020
Posts: 10
Haarlem
Hi, I made a mistake in my post. When I try to load the Zorro EA (not the ZorroMT42.dll) on the MT4 chart I get this error message.
Now I think I maybe only should change things on the Zorro side: setup the two different accounts with two different dll names in the accounts.csv (which I already did) and make two entries in the Zorro plugin Folder for the two dll's.
What I now did was also change the dll name in the MT4 library and that gives the error that the Zorro EA can't find the dll anymore.

So I wil now try to only have two dll's in the Zorro Plugin Folder and in the accounts.csv and on the MT4 side I will not rename anything. Hope that works.
Thanks for your reply.

Re: multiple brokers [Re: matchristrading] #479811
04/27/20 16:58
04/27/20 16:58
Joined: Jan 2020
Posts: 10
Haarlem
M
matchristrading Offline
Newbie
matchristrading  Offline
Newbie
M

Joined: Jan 2020
Posts: 10
Haarlem
That doesn't work because using the same strategy twice it gave an error as it read the .trd file and then Zorro could not find the already opened trades in the other MT4. So I guess you have to do three things.
The purpose was the following. I trade a strategy in MT4 with a broker. I want to trade the same strategy in another MT4 account with another broker.

1. copy and rename the dll in the Zorro Plugin Folder
2. in the accounts.csv associate the new account with the renamed dll plugin
3. copy and rename the strategy and trade the renamed strategy with the second account.

In the two MT4 don't change any names of dll's or Zorro EA's. The two MT4 instances use the same filenames for the dll's and the EA's.

Any comments from support whether this is the correct way to do this?

Last edited by matchristrading; 04/27/20 16:59.
Re: multiple brokers [Re: Grat] #479815
04/27/20 19:03
04/27/20 19:03
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
To trade two brokers with one Zorro instance, do this (per Petra's recommendation):
https://zorro-project.com/manual/en/brokerarb.htm

To trade two brokers with two independent Zorro instances, no need to duplicate dlls. Just set up different account numbers info in the user field:
https://zorro-project.com/manual/en/mt4plugin.htm

This is also required reading.
https://manual.zorro-project.com/asset.htm

Re: multiple brokers [Re: AndrewAMD] #479816
04/27/20 20:45
04/27/20 20:45
Joined: Jan 2020
Posts: 10
Haarlem
M
matchristrading Offline
Newbie
matchristrading  Offline
Newbie
M

Joined: Jan 2020
Posts: 10
Haarlem
Thanks. The best solution might be to install another independent Zorro instance. Because I noticed that trading the same strategy twice from one instance will be a problem with the .trd file where Zorro stores the open trades.
For now I am using a trade copier from fxblue.com which also works fine


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1