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

Finance::GeniusTrader::Indicators::VHF

Overview

The Vertical Horizontal Filter (VHF) can tell you whether a market is going through a trending or congestion phase, and whether you should use trend-following indicators if the markets are trending or congestion-phase indicators if markets are in a trading range.

Calculation

VHF = (Highest Close (n) - Lowest Close (n)) / (Sum of absolute value of the one-day price change for the range (n))

Parameters

The standard VHF works with a 28-days parameter : n = 28

Example

Finance::GeniusTrader::Indicators::VHF->new() Finance::GeniusTrader::Indicators::VHF->new([50])

http://www.equis.com/free/taaz/verthorizfilter.html http://www.finance-net.com/apprendre/techniques/vhf.phtml

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