Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (MadJack, AndrewAMD, Quad), 540 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 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,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
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,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
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,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
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