Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by Grant. 05/23/26 20:53
Issues resuming trades on Demo account
by Martin_HH. 05/22/26 13:31
XTB
by pr0logic. 05/18/26 12:27
Purchase A8 full licence version
by NeoDumont. 05/13/26 20:17
Black Book, 4th edition
by TipmyPip. 05/11/26 08:40
No errors in the command line
by jcl. 05/08/26 10:59
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Quad, Grant), 19,251 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
jayden, liu, Koti, curry, DeepxKalsi
19220 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Issues resuming trades on Demo account #489421
05/21/26 16:00
05/21/26 16:00
Joined: May 2023
Posts: 54
Hamburg, Germany
M
Martin_HH Offline OP
Junior Member
Martin_HH  Offline OP
Junior Member
M

Joined: May 2023
Posts: 54
Hamburg, Germany
I am running several quite complex strategies under Zorro64 with FXCM Demo accounts. Since a couple of weeks, I am having an issue of resuming open trades. Zorro has the .trd files, but after restart (e.g. crash or stop trading without closing trades) the open trades are ignored?
Any advice from the community?
Martin

Re: Issues resuming trades on Demo account [Re: Martin_HH] #489422
05/21/26 17:12
05/21/26 17:12
Joined: Mar 2022
Posts: 22
Frankfurt am Main
B
BrainSailor Offline
Newbie
BrainSailor  Offline
Newbie
B

Joined: Mar 2022
Posts: 22
Frankfurt am Main
Hi Martin,
hard to tell with the information provided. I am running Zorro with FXCM for quite a long time and all is going well. I am not using the 64bit version but the normal one and I am using the FXCM interface.
I think Zorro does not write into the *.trd when it crashes (unless you have it programmed otherwise). Therefore it is not able to recover the trades.
But of course it should work when you stop trading Zorro manually.
Hope that helps

Re: Issues resuming trades on Demo account [Re: Martin_HH] #489423
05/21/26 17:41
05/21/26 17:41
Joined: May 2023
Posts: 54
Hamburg, Germany
M
Martin_HH Offline OP
Junior Member
Martin_HH  Offline OP
Junior Member
M

Joined: May 2023
Posts: 54
Hamburg, Germany
Hi thanks for the feedback.

Actually Zorro writes regularly to the .trd file :

"Stopping and resuming a live trading system
While trading, Zorro stores the currently open trades, the status of the sliders, and component specific variables (AlgoVar) in a .trd file in the Data folder. This way trading can be stopped and resumed without losing track of open trades. The name of the file is composed from the script name plus the selected asset plus a "_d" in case of a demo account. If a trade can not be resumed - for instance when it was externally closed - an error message will be printed at restarting the trading session, and Zorro will resume the other trades. Because any new trade overwrites the .trd file, its previous content is stored in a .bak file at session start. Trades are not resumed when the session has no lookback period and opens trades already in the first run."

This prevents the loss of data, even when you have a crash. This was working for me for years. I switched a while a go to Zorro64. I guess it was working as well, but now I have a modular set-up with several include files and therefore it hits all strategies and I have difficulties to find out the core issue.
Also the back up of the .trd file does not work anymore.

my version Zorro 2.70

Last edited by Martin_HH; 05/21/26 17:41.
Re: Issues resuming trades on Demo account [Re: Martin_HH] #489424
05/21/26 21:21
05/21/26 21:21
Joined: May 2023
Posts: 54
Hamburg, Germany
M
Martin_HH Offline OP
Junior Member
Martin_HH  Offline OP
Junior Member
M

Joined: May 2023
Posts: 54
Hamburg, Germany
I even tried this . Save manually the actual .trd file. Stopped Zorro, copied it back, but Zorro did not recognise it?

"! The .trd file can be simply copied over to the Data folder of a different Zorro installation for continuing the session from there. When stopping a trade session and starting a new session with the same script on a different broker or account, make sure to delete the .trd file so that open trades from the last session are not resumed with the new account or broker. This is especially important with an NFA account, since there is no way to automatically determine if trades were opened or closed on such an account"

Re: Issues resuming trades on Demo account [Re: Martin_HH] #489436
Yesterday at 13:31
Yesterday at 13:31
Joined: May 2023
Posts: 54
Hamburg, Germany
M
Martin_HH Offline OP
Junior Member
Martin_HH  Offline OP
Junior Member
M

Joined: May 2023
Posts: 54
Hamburg, Germany
Finally, I found it.

I used the SaveMode flag variable and had set it to 4 for a dedicated reason. Now, I changed it back to SaveMode=791 and it should work.
I set this a while ago and the more complex the set-up gets ...

For Information from the manual:

These are the SaveMode Flags: (x) are bit code

SV_SLIDERS(2) save/load slider positions (default).
SV_ALGOVARS(4) - save/load all AlgoVars (default).
SV_ALGOVARS2 - save/load all AlgoVars2.
SV_TRADES(1) - save/load all open trades (default).
SV_STATS(16)- save/load statistics data, to be continued in the next session.
SV_BACKUP(256) - after loading, save a backup of the .trd file (default).
SV_HTML(512) - after loading trades in [Test] mode, generate a HTML file with the list of open trades.

Last edited by Martin_HH; Yesterday at 13:37.

Moderated by  Petra 

Gamestudio download | 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