Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by M_D. 04/26/24 20:22
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (PeroPero), 788 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
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: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
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: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

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