PureBytes Links
Trading Reference Links
|
Hello,
It plots the dominant cycle itself
- it plots ONE (co)sine wave with phase/frequency of selected bar (sbar).
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: Paul Ho
To: amibroker@xxxxxxxxxxxxxxx
Sent: Wednesday, November 01, 2006 5:31 AM
Subject: [amibroker] Help with Tomasz's Example on FFT
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
|