DYO: Vertical Horizontal Filter study example


Q:  Can the above referenced indicator be plotted in your program?  Please see the formula below to calculate the Vertical Horizontal Filter:   Select the number of periods (n) to include in the indicator.  This should be based on the length of the cycle that you are analyzing.  The most popular is 28 days (for intermediate cycles).

Determine the highest closing price (HCP) in n periods.
Determine the lowest closing price (LCP) in n periods.
Calculate the range of closing prices in n periods:  HCP - LCP
Next, calculate the movement in closing price for each period:  Closing price [today] - Closing price [yesterday]
Add up all price movements for n periods, disregarding whether they are up or down:
Sum of absolute values of ( Close [today] - Close [yesterday] ) for n periods
Divide Step 4 by Step 6:  VHF = (HCP - LCP) / (Sum of absolute values for n periods)

A:  Here is the solution to your request.  This is also being released as a template on my web site. Download the VertHorzFilter template using the Internet Services form, 1st tab.

Template:  1354-VertHorzFilter

Template:  1354-VertHorzFilter

Last modified 8/8/08 1:58 PM