Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Quad), 773 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: Corrupted Z12.trd? [Re: DdlV] #483675
07/07/21 13:38
07/07/21 13:38
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
@jcl: Would appreciate your thoughts before I try using the post-surgery trd. 116k went to 12k. Is this expected? 90% of a trd is the algovars?

Thanks.

Re: Corrupted Z12.trd? [Re: DdlV] #483682
07/08/21 11:11
07/08/21 11:11
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I estimate for algovars a size of about 1 kb multiplied with the numbers of algos and assets.

Re: Corrupted Z12.trd? [Re: DdlV] #483685
07/08/21 17:38
07/08/21 17:38
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks @jcl. That puts the size reduction is in the same ballpark, so I'll give the tiny trd a try.

FYI, I save a copy of the trd file most every weekend. I tested starting Zorro (in a test environment, not live) with these backups, and had to go back a number of weeks to find an un-corrupted trd. Zorro ran continuously over that period, and the weekly trd files have different sizes. Since Zorro was never stopped and restarted, the trd file was apparently never read - only written to. Unfortunately, especially given the passage of time, I have no hope of correlating the corruption to anything else. But from these circumstances a reasonable suspicion could be a rare pointer/buffer problem in Zorro?

HTH.

Re: Corrupted Z12.trd? [Re: DdlV] #483688
07/09/21 01:26
07/09/21 01:26
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
@jcl: The saga continues. The tiny trd allowed Z12 to start. But:

a) Intermingled with the "resumed" messages were a number of "closed" messages. The "closed" messages were all for real trades, and all exactly 1 lot. Is this expected?

b) After the "resumed" messages came a slew of Trails, Stops, and Longs. I assume this is normal as Z12 adjusts to the new market conditions it finds? (Although without the benefit of the missing AlgoVars...)

c) Lastly, the net result of the above seems to be that the account balance being reported by Zorro is accurate, the number of open trades matches the number of open positions in the broker's web interface, but Zorro's view of the value of these open positions, including which are winning vs. losing, is incorrect. Is anything to be done?

FYI, the trd file has grown from 12k to 57k.

Thanks.

Re: Corrupted Z12.trd? [Re: DdlV] #483691
07/10/21 15:20
07/10/21 15:20
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
Closed means that the trade was not open anymore. You probably closed it?

Open value includes swaps and commissions, so it can differ.

Re: Corrupted Z12.trd? [Re: DdlV] #483692
07/10/21 18:40
07/10/21 18:40
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks @Petra.

- No, I didn't close anything. Wanted to keep everything unchanged on the hope the trd could be fixed. Also very suspicious that in every case exactly 1 lot was closed - no trades of 1 lot were ever opened.

- Open value is ~1/2 what the broker shows, even though balance is the same. Swap & commission could account for that?

Re: Corrupted Z12.trd? [Re: DdlV] #483693
07/11/21 06:40
07/11/21 06:40
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
There can be 1000 reasons of differences, hard to tell with so vague information. Compare the different trade in the platform trade list with the same trade on the trade status page. There you can see all parameters of the trade and calculate the open value yourself.

Re: Corrupted Z12.trd? [Re: DdlV] #483694
07/11/21 12:58
07/11/21 12:58
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks @Petra. Yes, I am aware of that process, and a full investigation would also include the trades done when Zorro "reconciled" to the new world it found after being disconnected for many days...

Before embarking on that, I was hoping @jcl or someone who knows the internals of Zorro and trd processing could add insight into why _exactly_ 1 lot closes during resume, and why the open value might have gone off (while balance is correct).

Re: Corrupted Z12.trd? [Re: DdlV] #483705
07/14/21 07:57
07/14/21 07:57
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Hmm, how am I supposed to know your trade sizes and open values? If you want, you can get a support ticket and send them the log, trd file, and trade status page. They will look through all and explain the open value and why 1 lot was closed. I don't think Zorro internals are needed.

Re: Corrupted Z12.trd? [Re: DdlV] #483707
07/14/21 13:29
07/14/21 13:29
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks @jcl. Clearly you are not supposed to know what you can't. The question was explicitly if what you DO know (Zorro internals) could shed some light as to why on restart with AlgoVars removed:

- Zorro would at startup time of trades resume enter only multiple close orders across all Assets of exactly 1 lot - is 1 lot some sort of default or fall-back?

- Zorro would "lose its mind" and not know the correct values of open trades, while reporting correct account balance.

Thanks.

Page 2 of 3 1 2 3

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