Gamestudio Links
Zorro Links
Newest Posts
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (7th_zorro), 429 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
bandpass parameters #479251
03/09/20 18:09
03/09/20 18:09
Joined: Mar 2020
Posts: 19
London
H
hola123 Offline OP
Newbie
hola123  Offline OP
Newbie
H

Joined: Mar 2020
Posts: 19
London
Hi,

I am looking at the bandpass function after reading the black book. I get the general idea of the function however am still confused by the parameters.

The paragraph below is copied from the book.


vars Cycles = series(BandPass(Prices,30,2));

The behavior of a bandpass filter can be seen in the second curve of Fig. 15 in the previous chapter. Its function is similar to a lowpass filter except that it dampens not only low but also high frequencies, i.e. short cycles. This bandpass filter has a center period of 30 bars and a width of 2 (the width determines the frequency range that can pass the filter). This way the trend (a cycle with a very long period) and the noise (short period cycles) are removed from the price curve. The result is a clean curve that consists mostly of the peaks and valleys of the 30-bars cycle,

If someone could give more information on the 30 parameter & the width of 2 parameter. As I don't understand what the two really means even though it mentions it determines the frequency range.

Thanks for any help!

Re: bandpass parameters [Re: hola123] #479261
03/11/20 12:27
03/11/20 12:27
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Look here: https://en.wikipedia.org/wiki/Band-pass_filter. In the image, the "B" is the width and "f0" is the center period.

Re: bandpass parameters [Re: hola123] #479269
03/12/20 20:59
03/12/20 20:59
Joined: Mar 2020
Posts: 19
London
H
hola123 Offline OP
Newbie
hola123  Offline OP
Newbie
H

Joined: Mar 2020
Posts: 19
London
Thanks very much for the link & apologise for being a bit slow. I am still struggling a bit with translating the articles I'm reading on band pass filters into trading terms.

In the examples I am reading a band pass filter normally takes two frequencies and basically any frequencies that are outside that range are removed. So with the band pass filter above are we saying that the centre frequency is 30 bars (so not looking at the shorter time bars as we want to filter out the noise & also not looking at the longer time bars so that the long term trend is removed) and the width of 2 means that the band pass will reject any bars outside the range of 28 to 32. Is that correct or completely wrong?

Thanks once more!

Last edited by hola123; 03/12/20 21:01.
Re: bandpass parameters [Re: hola123] #479275
03/13/20 08:36
03/13/20 08:36
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Basically correct, only the outer frequencies are not completely removed, but merely suppressed.

Re: bandpass parameters [Re: hola123] #479281
03/14/20 13:06
03/14/20 13:06
Joined: Mar 2020
Posts: 19
London
H
hola123 Offline OP
Newbie
hola123  Offline OP
Newbie
H

Joined: Mar 2020
Posts: 19
London
thanks very much your time!


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