OPEN-SOURCE SCRIPT

[RESEARCH] Percentrank Bug

I found a bug with built-in percentrank function. Sometimes it gives unexpected and incorrect results. You can see a one of them on the chart.

ALL scripts which use percentrank function are affected. No matter which version they use, no matter who is their author - ALL scripts which use this built-in function can work incorrectly.

If you want to avoid this bug use _percentrank function (the "shim") - you can find it in the script.

NOTE: Don't push on TradingView Support or Pine Core Team because they already know about this issue and work on the fix. I publish it to warn you.
bugOscillatorspercentpercentagepercentrankresearch

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Freelance -> Telegram: @alex_everget

A list of FREE indicators:
bit.ly/2S7EPuN

A list of PAID indicators:
bit.ly/33MA81f

Earn $15:
tradingview.com/pricing/?share_your_love=everget
Also on:

Disclaimer