[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Help with Tomasz's Example on FFT



PureBytes Links

Trading Reference Links

Hello,

I've been going over Tomasz's example on FFT that he published on with the
release of 4.87 beta.

So far so good with the exception of the last plot statement

 

Plot( cos( phase[ sbar * 2 ] + (sbar) * x1 * 2 * 3.1415926 / Len ), 

" dominant cycle "+ Len/(sbar) + "(" + sbar + " bin) bars", colorBlue,
styleOwnScale ); 

 

It seems that this statement is plotting the weighting factor of the fourier
transform

 

Wk = cos(2ðk/N + ö)

Where ö is the phase angle and k is the no of harmonics in the series.

If this is the case, how is it related to the dominant cycle.

 

Any explanations will be greatly appreacriated.

 

Thanks

Paul.


Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.27/517 - Release Date: 11/3/2006