The Sine-Weighted Moving Average (SWMA) is a moving average using a sine factor to take into account both time and price movements. Very good at catching tops and bottoms, while filtering out unnecessary noise.
SWMA = ( Sum of (sin(n*180/6*PI/180) * Close(i)) for i = 1 to i = period ) / (Sum of (sin(n*180/6*PI/180)) for i = 1 to i = period)
Finance::GeniusTrader::Indicators::SWMA->>new() Finance::GeniusTrader::Indicators::SWMA->new([30, {I:Prices OPEN}])
http://www.ivorix.com/en/products/tech/smooth/swma.html
To install Finance::GeniusTrader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::GeniusTrader
CPAN shell
perl -MCPAN -e shell install Finance::GeniusTrader
For more information on module installation, please visit the detailed CPAN module installation guide.