Percentile rank

 

Hello,

Does anyone know how to achieve Percentile Rank value of the current bars close from lets say the last 100 bars?

Here is what I am refering to...

https://en.wikipedia.org/wiki/Percentile_rank

Thanks