Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, AndrewAMD), 898 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
SaveMode=SV_STATS? #483554
06/14/21 12:14
06/14/21 12:14
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
I just found out that SaveMode=SV_STATS does not work, but setf(SaveMode,SV_STATS) does.

This is when using saveStatus(), to roll over stats from Test to Live ( I did not test Live-to-Live).

If this is a permanent change, then this has to be reflected in the manual.

Last edited by Zheka; 06/14/21 12:31.
Re: SaveMode=SV_STATS? [Re: Zheka] #483556
06/15/21 07:13
06/15/21 07:13
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
SaveMode=SV_STATS is not the same as setf(SaveMode,SV_STATS).

Re: SaveMode=SV_STATS? [Re: Zheka] #483560
06/15/21 08:41
06/15/21 08:41
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
I understand that SaveMode=SV_STATS limits what's saved to ONLY Stats, while setf(SV_STATS) ADDs Stats to flags set by default.

But Stats saving is not performed in the former case.

If my understanding is not correct, then what does SaveMode=SV_STATS do (and where in the manual can I read about this nuance?)

Re: SaveMode=SV_STATS? [Re: Zheka] #483577
06/16/21 17:54
06/16/21 17:54
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Probably nothing until you call saveStatus/loadStatus. I think the automatic saving and loading is for resuming open trades, so you either need sv_trades also, or must load it by script.

Re: SaveMode=SV_STATS? [Re: Zheka] #483578
06/16/21 21:25
06/16/21 21:25
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
With saveStatus(0) in the EXITRUN, SaveStatus=SV_TRADES+SV_STATS does not work either.

But setf(SV_STATS) does.

Re: SaveMode=SV_STATS? [Re: Zheka] #483580
06/17/21 07:06
06/17/21 07:06
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Is it the global or the algo specific stats that you are missing? If algo stats, then try sv_algovars next.

Re: SaveMode=SV_STATS? [Re: Zheka] #483592
06/17/21 22:54
06/17/21 22:54
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
Algo-specific stats are the problem.

SaveStatus = SV_TRADES+SV_ALGOVARS+SV_STATS does not work either without loadStatus(0), but does work with loadStatus.


Without SV_ALGOVARS, it does not work even with loadStatus().


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