Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 13,353 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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