OPEN-SOURCE SCRIPT

Relative Strength Index with Percentile

351
๐Ÿ“ˆ Relative Strength Index with Percentile Rank (RSI + Percentile)
This advanced RSI indicator adds a powerful percentile ranking system to the classic Relative Strength Index, providing deeper insight into current RSI values relative to recent history.

๐Ÿ” Key Features:
Standard RSI Calculation: Identifies overbought/oversold levels using a customizable period.

RSI Percentile (0โ€“100%): Calculates where the current RSI value stands within a user-defined lookback period.

Dynamic Background Coloring:

๐ŸŸฉ Green when RSI percentile is above 80% (strong relative strength)

๐ŸŸฅ Red when RSI percentile is below 20% (strong relative weakness)

Optional Divergence Detection: Spot classic bullish and bearish divergences between price and RSI.

Smoothing Options: Apply various moving averages (SMA, EMA, RMA, etc.) to the RSI, with optional Bollinger Bands.

Flexible Settings: Full control over lookback periods, smoothing type, and band sensitivity.

๐Ÿง  Why Use RSI Percentile?
Traditional RSI values can become less informative during trending markets. By ranking the RSI as a percentile, you gain contextual insight into whether the current strength is unusually high or low compared to recent history, rather than just a fixed 70/30 threshold.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.