SaveMode=SV_STATS?

Posted By: Zheka

SaveMode=SV_STATS? - 06/14/21 12:14

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.
Posted By: jcl

Re: SaveMode=SV_STATS? - 06/15/21 07:13

SaveMode=SV_STATS is not the same as setf(SaveMode,SV_STATS).
Posted By: Zheka

Re: SaveMode=SV_STATS? - 06/15/21 08:41

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?)
Posted By: jcl

Re: SaveMode=SV_STATS? - 06/16/21 17:54

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.
Posted By: Zheka

Re: SaveMode=SV_STATS? - 06/16/21 21:25

With saveStatus(0) in the EXITRUN, SaveStatus=SV_TRADES+SV_STATS does not work either.

But setf(SV_STATS) does.
Posted By: jcl

Re: SaveMode=SV_STATS? - 06/17/21 07:06

Is it the global or the algo specific stats that you are missing? If algo stats, then try sv_algovars next.
Posted By: Zheka

Re: SaveMode=SV_STATS? - 06/17/21 22:54

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().
© 2024 lite-C Forums