GT::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

GT::Indicators::VHF->new() GT::Indicators::VHF->new([50])

Links

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

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