Calculates the percentile ranking of a series value within the range of elements specified for the price series.

 

Syntax:

PercentRank ( series, bars )

 

Parameter:

Description:

series

Name of numeric series

bars

Count of the number of series elements over which to find the percentile.

 

Returns:

The percentile ranking.

 

Example:

'  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'  Update Indicators Script
'  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'  Bar_ Count = 21 - Parameter - Lookback enabled
'  Calculates percentile ranking of a value in a price series period
Percent_Rank_Close = PercentRank( instrument.close, Bar_Count)      
'  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

OR

 

Percent_Rank_S2_21-Bar_Dialog

Chart Display:

Percent_Rank_S2_21-Bar

 

Links:

 

 

See Also:

 

 


 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software