|SYNTAX||HHVBars( ARRAY, periods )|
|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.|
The HHVBars function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.