Gamestudio Links
Zorro Links
Newest Posts
FXCM demo test failed
by qin. 01/13/26 13:53
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (Quad, TipmyPip), 6,316 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Black Book - Chapter 4 - Optimizing the BandPass TimePeriod #483378
05/26/21 11:51
05/26/21 11:51
Joined: May 2021
Posts: 2
X
x34v Offline OP
Guest
x34v  Offline OP
Guest
X

Joined: May 2021
Posts: 2
Hi everyone,
I am a Zorro newbie and currently going through the all the scripts in the Black Book.
In chapter 4 - "Against the trend", the author uses a band pass filter with a period of 30 bars and delta of 2 bars.
The book does not explain what's the reasoning behind the choice of these two values; for this reason, I tried to experiment how the strategy would perform by optimizing the TimePeriod parameter.

In Alice2d.c, I replaced:
Code
vars Cycles = series(BandPass(Prices, 30, 2));


For:
Code
vars Cycles = series(BandPass(Prices, optimize(30, 5, 50, 5), 2));


To my suprise, all the metrics in the performance report after the train + test phases on the modified version of the script are way worse than the ones I get when testing with the hardcoded value '30'.
I probably fail to understand correctly how Zorro works, but since 30 is included in the optimization interval above, I would expect a performance report at least as good as the one I get when using the hardcoded value 30 for the bandpass filter period.

Could anyone please shed some light on this?

Thanks in advance

Re: Black Book - Chapter 4 - Optimizing the BandPass TimePeriod [Re: x34v] #483381
05/26/21 17:42
05/26/21 17:42
Joined: Jul 2017
Posts: 787
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 787
This is because ASCENT type of optimization does not necessarily select the "best"/ "peak" parameter value, but the "robust' one, in the middle of a plateau;
and so it must have have selected a parameter different from 30.


Moderated by  Petra 

Gamestudio download | 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