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

Finance::GeniusTrader::Indicators::ATR

Overview

The Average True Index (ATR) is a measure of volatility. High ATR values often occur at market bottom following a 'panic' sell-off. Low ATR values are often found during extended sideways periods, such as those found at tops and after consolidation periods.

Calculation

The Average True Index is a moving average of the True Ranges.

Parameters

The standard ATR works with a fourteen-day parameter : n = 14

Example

Finance::GeniusTrader::Indicators::ATR->new() Finance::GeniusTrader::Indicators::ATR->new([12])

Note

The Average True Range can be interpreted using the same techniques that are used with other volatility indicators.

Validation

This indicators is validated by the values from comdirect.de. The stock used was the DAX (data from yahoo) at the 04.06.2003:

ATR[14] [2003-06-04] = 79.2343 (comdirect=79.23)

http://www.equis.com/free/taaz/avertrurang.html http://stockcharts.com/education/What/IndicatorAnalysis/indic_ATR.html http://www.finance-net.com/apprendre/techniques/atr.phtml

Finance::GeniusTrader::Indicators::ATR::calculate($calc, $day)