multiple brokers

Posted By: Grat

multiple brokers - 02/13/18 12:23

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
Posted By: matchristrading

Re: multiple brokers - 04/26/20 14:01

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?
Posted By: Petra

Re: multiple brokers - 04/26/20 15:54

You need 2 different ZorroMT4 dlls in the plugin folder for this.
Posted By: matchristrading

Re: multiple brokers - 04/26/20 20:40

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 picture Schermafbeelding 2020-04-26 om 22.32.16.png
Posted By: danatrader

Re: multiple brokers - 04/26/20 22:13

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.
Posted By: matchristrading

Re: multiple brokers - 04/27/20 10:48

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.
Posted By: matchristrading

Re: multiple brokers - 04/27/20 16:58

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?
Posted By: AndrewAMD

Re: multiple brokers - 04/27/20 19:03

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
Posted By: matchristrading

Re: multiple brokers - 04/27/20 20:45

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
© 2024 lite-C Forums