Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, howardR), 472 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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: 784
Z
Zheka Offline
User
Zheka  Offline
User
Z

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