GT::Indicators::TMA

Overview

Triangular Moving Averages (TMA) place the majority of the weight on the middle portion of the price series.

Calculation

TMA(5) = (1/9) * (1 * Close(i) + 2 * Close(i - 1) + 3 * Close(i - 2) + 2 * Close(i - 3) + 1 * Close(i - 4))

Examples

GT::Indicators::TMA->new() GT::Indicators::TMA->new([50]) GT::Indicators::TMA->new([30], {I:Prices OPEN})

Links

http://www.equis.com/free/taaz/movingaverages.html http://www.ivorix.com/en/products/tech/smooth/tma.html

GT::Indicators::TMA::calculate($calc, $day)