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:

Click to Enlarge; Click to Reduce.

Percent Rank of Each Bar as Prices Change.

 

Links:

 

 

See Also:

 

 


Edit Time: 9/26/2020 1:27:54 PM


Topic ID#: 461

 

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