HHVBars
- bars since highest high

Lowest/Highest


SYNTAX HHVBars( ARRAY, periods )
RETURNS ARRAY
FUNCTION Calculates the number of periods that have passed since the ARRAY reached its periods period peak. HHVBars accepts periods parameter that can be constant as well as time-variant (array).
EXAMPLE The formula "hhvbars( close, 30 )" returns the number of periods that have passed since the closing price reached its 30-period peak.
SEE ALSO  

References:

The HHVBars function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.