Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, AndrewAMD, TedMar), 837 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Bar Sampling with NumTotalCycles #483395
05/27/21 12:40
05/27/21 12:40
Joined: Jul 2017
Posts: 785
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 785
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.

Re: Bar Sampling with NumTotalCycles [Re: Zheka] #483398
05/27/21 13:16
05/27/21 13:16
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Changed dates require resampling. So you need the PRELOAD flag.

Re: Bar Sampling with NumTotalCycles [Re: Zheka] #483400
05/27/21 15:15
05/27/21 15:15
Joined: Jul 2017
Posts: 785
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 785
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?

Re: Bar Sampling with NumTotalCycles [Re: Zheka] #483411
05/28/21 07:11
05/28/21 07:11
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
StartDate = 2013 just means you want the start in 2013. You didn't tell which month.

Re: Bar Sampling with NumTotalCycles [Re: Zheka] #483414
05/28/21 08:28
05/28/21 08:28
Joined: Jul 2017
Posts: 785
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 785
Regardless. It will be quite useful if RECALCULATE would also work in Test.


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