Gamestudio Links
Zorro Links
Newest Posts
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Quad), 509 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 6 1 2 3 4 5 6
Re: Multiple broker connection - beta testers wanted! [Re: Sphin] #470231
01/03/18 23:04
01/03/18 23:04
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline
Senior Member
Grat  Offline
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
Hi,

Is no possible this:

BrokerA: zorroMT4
BrokerB:zorroMT64

...............

Login MT4/5...
!FXOpen Investments Inc. connected
!MT4/5 time zone shift -2 at UTC 01-03 23:01
Error: Can't open ZorroMT64.dll!
---------------
Zorro S 1.74

Milan

Re: Multiple broker connection - beta testers wanted! [Re: Sphin] #470232
01/04/18 02:01
01/04/18 02:01
Joined: Dec 2016
Posts: 71
F
firecrest Offline
Junior Member
firecrest  Offline
Junior Member
F

Joined: Dec 2016
Posts: 71
Originally Posted By: Sphin
What do you mean with "not successful" - technically or financially? Didn't the script trade at all or weren't the trades profitable?
I use the 'Simple broker arbitrage example' actually only to record spread and price (there is no commission at the used brokers) to find out a practical threshold and to view the relations between these components in a real environment.


I mean financially. Technically Zorro works great. "not successful" means that the Demo accounts in both brokers are making a loss instead of gain. I use higher threshold and no trades are triggered. If I use lower threshold, trades are not profitable and losses are limited. The differences between prices of the same asset are too small (about 2- 3 pips) for profit. It can work if only one has almost zero commission and connection speed to capture this.

I think another way to work around this is to trade Indices instead of FX. I have not tried out indices yet but I think it maybe possible. I am sharing what I know to the community and hope this help.

Re: Multiple broker connection - beta testers wanted! [Re: firecrest] #470237
01/04/18 12:11
01/04/18 12:11
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
ZorroMT64 is no broker plugin, it belongs to the MT5 library folder only.
For connecting to a MT5 broker, use the normal ZorroMT4 plugin, and rename it as described for connecting to 2 different MT4/5 brokers.

Re: Multiple broker connection - beta testers wanted! [Re: jcl] #470241
01/04/18 14:53
01/04/18 14:53
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline
Senior Member
Grat  Offline
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
Thank's

now working a correct. I was thinking ZorroMT4 -> MT4 and ZorroMT64 -> MT5. This is a my fault.


Milan

Re: Multiple broker connection - beta testers wanted! [Re: Grat] #470289
01/07/18 12:53
01/07/18 12:53
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
There are some things I cannot comprehend. For searching reasons of lost trades I added this line to the simple broker arbitrage example before any enterX() or exitX() command:
Code:
print(TO_LOG, "\nPriceA: %.0f, PriceB: %.0f, Difference: %.0f", PriceA, PriceB, Difference);


Setting slippage = 0 I expected the logged prices to be the same as the traded ones but:
Code:
[4: Tue 18-01-02 04:00:00] 66.73 0 1/3  (13605.60)

PriceA: 13069, PriceB: 13412, Difference: -343
[Asset_A::L0501] Long 100@13069.00000  at 04:00:00
[Asset_B::S0502] Short 1@13204.59961  at 04:00:00

[5: Tue 18-01-02 05:00:00] 66.73 -155 1/5  (13412.70)
[6: Tue 18-01-02 06:00:00] 66.73 -131 1/5  (13197.10)

PriceA: 13294, PriceB: 13231, Difference: 62
[Asset_A::L0501] Sell 100@13294.00: +162 at 06:00:00
[Asset_B::S0502] Cover 1@13431.50: -283 at 06:00:00


While the logged PriceAs are the same at long entry and sell exit, the differences of logged PriceBs to its short entry is 208 and to its cover exit -200.
The deviation is so extreme that the exit condition is simply not met because PriceA (13294) minus 'traded' PriceB (13431) is -137 and therefore still lower than 0. So the negative result is no surprise.
Any hint where those deviations can result from?

Re: Multiple broker connection - beta testers wanted! [Re: Sphin] #470296
01/07/18 16:13
01/07/18 16:13
Joined: Dec 2016
Posts: 71
F
firecrest Offline
Junior Member
firecrest  Offline
Junior Member
F

Joined: Dec 2016
Posts: 71
Hi, can it be due to be bid and ask price?

Re: Multiple broker connection - beta testers wanted! [Re: firecrest] #470297
01/07/18 16:22
01/07/18 16:22
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
I supsected it but setting Spread = 1 (and threshold accordingly otherwise it was sensless) the differences kept their sizes like above, so I excluded this idea.

Re: Multiple broker connection - beta testers wanted! [Re: Sphin] #470308
01/08/18 08:15
01/08/18 08:15
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
The prices in the log are ask prices anyway. Have you set slippage to 0? Why is the number of lots different?

Re: Multiple broker connection - beta testers wanted! [Re: jcl] #470329
01/08/18 16:57
01/08/18 16:57
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Of course slippage is set to 0 already (PriceA is therefore the entry at Broker A, this works as expected). The different lot numbers egalize that Broker A has a minimum trade size of 0.01, Broker B 1.0.

Re: Multiple broker connection - beta testers wanted! [Re: Sphin] #470333
01/08/18 17:44
01/08/18 17:44
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Ok, then I also don't know the reason of the difference. We'll check that. - Update: it turned out that it was a bug of the beta version. This will be fixed in the release.

Page 2 of 6 1 2 3 4 5 6

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