OPEN-SOURCE SCRIPT
Updated T

RSI Div+ combines RSI overbought/oversold context, regular + hidden divergence signals, and a trend “ribbon” filter into one clean overlay.
Divergences are drawn directly on price:
Bullish Divergence (price makes a lower low while RSI makes a higher low)
Bearish Divergence (price makes a higher high while RSI makes a lower high)
Hidden Bullish / Hidden Bearish divergences (trend-continuation variants)
Pivot dots help visualize the swing points used to confirm divergence.
Optional OB/OS bar tint highlights potential exhaustion zones.
The Ribbon Trend provides a quick visual read on market direction (up / down / neutral) and can be used as a confirmation filter.
Multiple themes let you quickly change the look of all plotted elements.
Note: This indicator is for educational and informational purposes only and does not constitute financial advice. Always manage risk.
4 Ways to Use It for Trading
Bullish #1 | Bullish Divergence + Ribbon Flip (Reversal Entry)
Setup
Price prints a lower low
RSI prints a higher low → Bull Div prints
Ribbon transitions to Up (or at least neutral)
Trade idea
Entry: On the next bullish candle close after the divergence prints, ideally as ribbon turns up.
Stop: Below the divergence swing low.
Target: Prior swing high / resistance or trail as ribbon stays up.
Bullish #2 | Hidden Bullish Divergence (Trend Continuation)
Setup
Ribbon is Up
Price makes a higher low
RSI makes a lower low → Hid Bull prints
Trade idea
Entry: On a break above the candle that forms after the hidden divergence.
Stop: Below the higher-low pivot.
Target: New high extension, or scale out at prior highs while ribbon remains up.
Bearish #1 | Bearish Divergence + Ribbon Down (Reversal Entry)
Setup
Price prints a higher high
RSI prints a lower high → Bear Div prints
Ribbon transitions to Down (or at least neutral → down)
Trade idea
Entry: On the next bearish candle close after divergence, ideally with ribbon turning down.
Stop: Above the divergence swing high.
Target: Prior swing low / support or trail as ribbon stays down.
Bearish #2 | Hidden Bearish Divergence (Trend Continuation)
Setup
Ribbon is Down
Price makes a lower high
RSI makes a higher high → Hid Bear prints
Trade idea
Divergences are drawn directly on price:
Bullish Divergence (price makes a lower low while RSI makes a higher low)
Bearish Divergence (price makes a higher high while RSI makes a lower high)
Hidden Bullish / Hidden Bearish divergences (trend-continuation variants)
Pivot dots help visualize the swing points used to confirm divergence.
Optional OB/OS bar tint highlights potential exhaustion zones.
The Ribbon Trend provides a quick visual read on market direction (up / down / neutral) and can be used as a confirmation filter.
Multiple themes let you quickly change the look of all plotted elements.
Note: This indicator is for educational and informational purposes only and does not constitute financial advice. Always manage risk.
4 Ways to Use It for Trading
Bullish #1 | Bullish Divergence + Ribbon Flip (Reversal Entry)
Setup
Price prints a lower low
RSI prints a higher low → Bull Div prints
Ribbon transitions to Up (or at least neutral)
Trade idea
Entry: On the next bullish candle close after the divergence prints, ideally as ribbon turns up.
Stop: Below the divergence swing low.
Target: Prior swing high / resistance or trail as ribbon stays up.
Bullish #2 | Hidden Bullish Divergence (Trend Continuation)
Setup
Ribbon is Up
Price makes a higher low
RSI makes a lower low → Hid Bull prints
Trade idea
Entry: On a break above the candle that forms after the hidden divergence.
Stop: Below the higher-low pivot.
Target: New high extension, or scale out at prior highs while ribbon remains up.
Bearish #1 | Bearish Divergence + Ribbon Down (Reversal Entry)
Setup
Price prints a higher high
RSI prints a lower high → Bear Div prints
Ribbon transitions to Down (or at least neutral → down)
Trade idea
Entry: On the next bearish candle close after divergence, ideally with ribbon turning down.
Stop: Above the divergence swing high.
Target: Prior swing low / support or trail as ribbon stays down.
Bearish #2 | Hidden Bearish Divergence (Trend Continuation)
Setup
Ribbon is Down
Price makes a lower high
RSI makes a higher high → Hid Bear prints
Trade idea
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.
