HighestBars

Lowest/Highest 
SYNTAX  HighestBars( ARRAY ) 
RETURNS  ARRAY 
FUNCTION  Calculates the number of periods that have passed since the ARRAY’s highest value. 
EXAMPLE  The formula "highestbars( close )" returns the number of periods that have passed since the closing price reached its highest peak. 
SEE ALSO 
The HighestBars function is used in the following formulas in AFL online library:
See updated/extended version online.