|
|
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: 69 Hamburg, Germany
Martin_HH
OP
Junior Member
|
OP
Junior Member
Joined: May 2023
Posts: 69
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]
#489436
05/22/26 13:31
05/22/26 13:31
|
Joined: May 2023
Posts: 69 Hamburg, Germany
Martin_HH
OP
Junior Member
|
OP
Junior Member
Joined: May 2023
Posts: 69
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; 05/22/26 13:37.
|
|
|
|