|SYNTAX||PercentRank( array, range )|
Returns percent rank (0...100) of the current element of the array within all elements over the specified range.
A value of 100 indicates that the current element of the array is the highest for the given lookback range, while a value of 0 indicates that the current value is the lowest for the given lookback range.
It is equivalent (but 2x faster) to:
The PercentRank function is used in the following formulas in AFL on-line library:
Updated on-line reference