Gamestudio Links
Zorro Links
Newest Posts
Conversion to Easylanguage, pls
by jcl
Today at 08:41
Error with data - EURUSD
by jcl
Today at 08:38
Game Maker Terrain editor 2 (GMTE2) to GST terrain (MED)
by NeoDumont
Today at 01:13
pp pixelation with proper blurring
by 3run
Yesterday at 21:08
extern static array of structs
by sdh309795gaas
Yesterday at 20:33
Cyrpto currency arbitrage
by Sphin
Yesterday at 19:22
Experienced 2D|3D Character artist|Concept Artist@ Indie Prices|
by DeathstalkerArs
Yesterday at 18:40
AUM Magazine
Latest Screens
Forgotten Tales - Demo version
RPG PARTY
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Who's Online
14 registered (20BN, Dico, 3run, Iglarion, Kartoffel, jyd, Dalla, Matt_Aufderheide, jenGs, 1 invisible), 135 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
lizmerrill, QuangDalat, davefollmers, abcdef656188, luisd
17871 Registered Users
Page 3 of 3 < 1 2 3
Topic Options
Rate This Topic
#470373 - 01/10/18 17:55 Re: Multiple broker connection - beta testers wanted! [Re: jcl]
Sphin Offline
Senior Member

Registered: 12/11/13
Posts: 439
Loc: Fuerth, DE
I use 1.74.3 - is it stil in beta? -> 'Zorro 1.74 (released December 2017)'. Update: I saw on download page that 1.74.3 is in RC.

Top
#470389 - 01/11/18 13:11 Re: Multiple broker connection - beta testers wanted! [Re: Sphin]
jcl Online

Chief Engineer

Registered: 07/22/00
Posts: 26129
Loc: Frankfurt
The latest version is 1.74.5 at http://opserver.de/down/Zorro_1744.exe. In this version the brokerarb problem is supposedly fixed.

Top
#470428 - 01/14/18 12:59 Re: Multiple broker connection - beta testers wanted! [Re: jcl]
Sphin Offline
Senior Member

Registered: 12/11/13
Posts: 439
Loc: Fuerth, DE
I fear it was not or not completely. But the differences have been moved to PriceA/Asset_A compared to the previous version and sometimes the values are equal.

Code:
V 1.745 on Sun 18-01-14 11:43:05
Test: BA_BTC_A_B  (TICKS) 2018
Assets AssetsArb.csv
PriceA: 13842.00000, PriceB: 14353.00000, Difference: -511.00000
[Asset_A::L0101] Long 10@13405.00000  at 00:00:01
[Asset_B::S0102] Short 1@14353.00000  at 00:00:01

[1: Tue 18-01-02 01:00:00] 0000 -93.73 1/1  (14353.00)
[2: Tue 18-01-02 02:00:00] 0000 +421 2/0  (13719.20)

PriceA: 13592.00000, PriceB: 13591.50000, Difference: 0.50000
[Asset_A::L0101] Sell 10@13592.00: +12.40 at 02:52:58
[Asset_B::S0102] Cover 1@13591.40: +509 at 02:52:58

[3: Tue 18-01-02 03:00:00] 522 0 2/0  (13605.60)
[4: Tue 18-01-02 04:00:00] 522 0 2/0  (13412.70)

PriceA: 13071.00000, PriceB: 13412.70020, Difference: -341.70020
[Asset_A::L0501] Long 10@13343.00000  at 04:00:01
[Asset_B::S0502] Short 1@13412.70020  at 04:00:01

[5: Tue 18-01-02 05:00:00] 522 +10.27 3/1  (13204.70)
[6: Tue 18-01-02 06:00:00] 522 -8.10 3/1  (13231.90)

PriceA: 13293.00000, PriceB: 13231.90039, Difference: 61.09961
[Asset_A::L0501] Sell 10@13116.00: -29.00 at 06:00:01
[Asset_B::S0502] Cover 1@13231.90: +20.90 at 06:00:01

[...]
[18: Tue 18-01-02 18:00:00] 514 0 3/1  (13964.50)

PriceA: 14648.00000, PriceB: 13964.40039, Difference: 683.59961
[Asset_A::S1901] Short 10@13914.00000  at 18:00:01
[Asset_B::L1902] Long 1@13964.40039  at 18:00:01

PriceA: 13914.00000, PriceB: 13964.50000, Difference: -50.50000
[Asset_A::S1901] Cover 10@13914.00: -6.30 at 18:00:01
[Asset_B::L1902] Sell 1@13964.90: -131 at 18:00:01

(Broker B has changed its minimum trade size to 0.1, so lot factor for Broker A is now 10)


Especially the last trade seemed very strange, Price_A had fallen from 14648 to 13914 within a second? So I asked ZHistoryEditor about Asset_A.t1 and found:

Code:
2018.01.02 18:00:09.000	13915
2018.01.02 18:00:01.000	13914
2018.01.02 18:00:00.000	13914
2018.01.02 17:59:58.000	13915
2018.01.02 17:59:57.000	13918


No idea where the value of 14648 came from. I compared randomly some further Price_A's from the log with the values of Asset_A.t1 and it was always like in the sample: the prices of Zorro's entries and exits are the ones that I also found in .t1. Anything seems sometimes to go wrong with setting PriceA = priceClose().

Top
#470430 - 01/14/18 15:30 Re: Multiple broker connection - beta testers wanted! [Re: Sphin]
jcl Online

Chief Engineer

Registered: 07/22/00
Posts: 26129
Loc: Frankfurt
Can you contact Support so that we can look into it? We'll need the script and the historical data of both assets.

Top
#470432 - 01/14/18 17:47 Re: Multiple broker connection - beta testers wanted! [Re: jcl]
Sphin Offline
Senior Member

Registered: 12/11/13
Posts: 439
Loc: Fuerth, DE
Done.

Top
#470547 - 01/19/18 21:56 Re: Multiple broker connection - beta testers wanted! [Re: Sphin]
kujo Offline
Newbie

Registered: 12/03/17
Posts: 48
Loc: Halifax, NS
Originally Posted By: Sphin
Done.


Hi Sphin, I wonder if you have any updates on your issue?

Top
#470549 - 01/20/18 00:15 Re: Multiple broker connection - beta testers wanted! [Re: kujo]
Sphin Offline
Senior Member

Registered: 12/11/13
Posts: 439
Loc: Fuerth, DE
Sorry - of course. The problem was related to the time order of ticks that was fixed in 1.74.6.

Top
#470550 - 01/20/18 01:17 Re: Multiple broker connection - beta testers wanted! [Re: Sphin]
Sphin Offline
Senior Member

Registered: 12/11/13
Posts: 439
Loc: Fuerth, DE
In all .t1 data I recorded meanwhile the seconds end with .000. Is it broker / asset dependant or might there be a problem in wdate() why there are no milliseconds?

Top
Page 3 of 3 < 1 2 3



Gamestudio download | chip programmers | Zorro platform | shop | resources | magazine | manual | support faq | bugs

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) 3dgamestudio.net