The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Finance::GeniusTrader::Indicators::ZigZag

DESCRIPTION

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.

Parameters

Percentage change (10%)

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.

Creation

 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}"])