Bar Sampling with NumTotalCycles

Posted By: Zheka

Bar Sampling with NumTotalCycles - 05/27/21 12:40

Wanting to use a rolling 3-year period for collecting some stats, I tried the following construct:
Code
NumTotalCycles = 4;

StartDate = 2013+(TotalCycles-1)*2;
EndDate = 2015 + (TotalCycles-1)*2;
However, even though StartDate and EndDate DO change from cycle to cycle, the actual data period sampled does not, it remains 2013-2015 throughout.

Can this behavior be modified to work as expected?

Would greatly appreciate.
Posted By: jcl

Re: Bar Sampling with NumTotalCycles - 05/27/21 13:16

Changed dates require resampling. So you need the PRELOAD flag.
Posted By: Zheka

Re: Bar Sampling with NumTotalCycles - 05/27/21 15:15

Yes, it works with PRELOAD.

A suggestion: can LookBack period be added prior to the StartDate, rather than taken from the StartDate onwards?

With StartDate=2013 and Lookback=70 (BarPeriod=1440), the StartBar will be in mid-April...Can RECALCULATE flag be extended to also work in Test mode?
Posted By: jcl

Re: Bar Sampling with NumTotalCycles - 05/28/21 07:11

StartDate = 2013 just means you want the start in 2013. You didn't tell which month.
Posted By: Zheka

Re: Bar Sampling with NumTotalCycles - 05/28/21 08:28

Regardless. It will be quite useful if RECALCULATE would also work in Test.
© 2024 lite-C Forums