OPEN-SOURCE SCRIPT
Relative Strength Index

Relative Strength Index (RSI) — Enhanced Edition
The classic RSI indicator rebuilt with extra tools for cleaner analysis and better trade timing.
Features:
Standard RSI (default 14 length) with overbought/oversold gradient fills at 70/30
Smoothing MA overlay — choose from SMA, EMA, RMA, WMA, VWMA, or SMA + Bollinger Bands
Cross candle colouring — price candles colour on RSI/MA crossovers so you spot momentum shifts instantly on the main chart
Divergence detection — optional regular bullish and bearish divergence labels plotted directly on the RSI pane
Built-in alerts for RSI/MA crosses and divergence signals
Settings:
RSI length and source fully configurable
MA type and length adjustable, with BB standard deviation control
Cross colours customisable
Divergence calculation toggleable (off by default for performance)
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.