|SYNTAX||hhv( ARRAY, periods )|
|FUNCTION||Calculates the highest value in the ARRAY over the preceding periods (periods includes the current day). HHV accepts periods parameter that can be constant as well as time-variant (array).|
|EXAMPLE||The formula "hhv( close, 4)" returns the highest closing price over the preceding four periods; "hhv( high, 8)" returns the highest high price over the preceding eight periods.|
The HHV function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.