Finance::GeniusTrader::Indicators::ZigZag
The Zig Zag indicator filters out changes in an underlying plot (e.g., a security's price or another indicator) that are less than a specified amount. The Zig Zag indicator only shows significant changes.
The first argument is the percentage change required to yield a line that only reverses after a change from high to low of 10% or greater.
Finance::GeniusTrader::Indicators::ZigZag->new() Finance::GeniusTrader::Indicators::ZigZag->new([5])
If you need an 8 % ZigZag indicator of the opening prices you can write one of those lines :
Finance::GeniusTrader::Indicators::SMA->new([8], "OPEN", $GET_OPEN) Finance::GeniusTrader::Indicators::SMA->new([8, "OPEN"])
A ZigZag indicator with a 20 % threshold of the Volume could be created with :
Finance::GeniusTrader::Indicators::ZigZag->new([20, "{I:Volume}"])
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.