#twitter-follow { border: 0;position: fixed; top: 240px; left:0;} #live-support { border: 0;position: fixed; top: 370px; left:0;} #knowledge-base { border: 0;position: fixed; top: 170px; left:0;}

## Percentile - Percent Rank of a Trading Indicator

 by QuantShare, 2762 days ago

The Percentile or Percent Rank function calculates the percentage of observations or values, within a lookback period, that are below the current value of a given function. It is the percentage of values in the provided time series frequency distribution that are lower than the value of any given bar.

As an example, using the close price and making the calculation for the previous 50 bars; the percentile value of the close price for the bar number 1000 is the percentage of close values, in the range of bar n 950 to 1000, that are below the close price for the bar number 1000.
The percentile is equal to 100%, when the current bar close price is higher that all values of the previous 50 bars.
The percentile is equal to 0% when the current bar close price is lower than all values of the previous 50 bars

Here is another example:

Bar 10: 12.5
Bar 11: 13.2
Bar 12: 16.1
Bar 13: 15.6
Bar 14: 13.8
Bar 15: 16.9

Bar 16 (Current bar): 15.2

When applied to the above time series, the percent rank function, with a lookback period of seven bars, will return a value 50% on bar number 16. This is because three bars' values are above 15.2 and three other bars' values are below 15.2

The function (PercentRank) accepts any kind of time series; you can for example calculate the percentile rank of a technical analysis indicator such as the RSI or relative strength index or the percentile rank of the Relative Strength (RS) of a stock compared to its index (S&P 500 for example).

What is this?

 Type: Trading Indicator Object ID: 549 Country: All Market: All Style: Technical Analysis

 Related objects Empty
Number of reviews
Average rate
Click to rate this item
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object

 Random Blog Posts How to create your own technical analysis indicators Create a stock index or a trading indicator using the composite tools Create a trading strategy using the money management tool - Part 2 Create a trading strategy using the money management tool - Part 1 How to create a market timing system - Part 3 Correlation of market indicators How to create a market timing system Backtesting Process Show All

Number of reviews
Average rate
Click to rate this item
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object