OPEN-SOURCE SCRIPT
Güncellendi RSI Extension + Divergence

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
Entry: On a break below the candle that forms after the hidden divergence.
Stop: Above the lower-high pivot.
Target: New low extension, or scale out at prior lows while ribbon remains down.
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
Entry: On a break below the candle that forms after the hidden divergence.
Stop: Above the lower-high pivot.
Target: New low extension, or scale out at prior lows while ribbon remains down.
Sürüm Notları
RSI Div+ is a non-repainting, pivot-confirmed RSI divergence indicator with a built-in trend ribbon and optional quality filters. It plots regular + hidden divergences directly on price, highlights RSI OB/OS context, and only triggers divergences when they align with ribbon direction (bulls above the ribbon, bears below).RSI Div+ combines RSI overbought/oversold context, regular + hidden divergence signals, and a trend “ribbon” filter into one clean overlay.
WHAT’S NEW IN THIS VERSION
• Faster pivot confirmation: Pivot lookback can be set as low as 2, making signals much closer to real-time while remaining non-repainting (pivots still require confirmation bars by design).
• Ribbon-gated triggers:
* Bullish triggers only print when the pivot candle closes above the ribbon.
* Bearish triggers only print when the pivot candle closes below the ribbon.
• Quality filters to reduce “misc” signals: Optional filters can require a minimum RSI separation, minimum price move (ATR-based), minimum pivot spacing, and a cooldown between signals to keep the faster lookback clean and high value.
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: 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 acts 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 (UPDATED)
Bullish #1 | Bullish Divergence + Above-Ribbon Confirmation (Reversal Entry)
Setup
• Price prints a lower low
• RSI prints a higher low → Bull Div prints
• Trigger only prints when the pivot candle is above the ribbon
Trade idea
• Entry: Next bullish candle close after the divergence prints (bonus if ribbon is turning up)
• Stop: Below the divergence swing low
• Target: Prior swing high / resistance, or trail while price remains above ribbon
Bullish #2 | Hidden Bullish Divergence + Above-Ribbon Continuation
Setup
• Ribbon is Up (or price is holding above ribbon)
• Price makes a higher low
• RSI makes a lower low → Hid Bull prints (only if above ribbon)
Trade idea
• Entry: Break above the candle that forms after the hidden divergence
• Stop: Below the higher-low pivot
• Target: Prior highs / extension, scale out while ribbon stays supportive
Bearish #1 | Bearish Divergence + Below-Ribbon Confirmation (Reversal Entry)
Setup
• Price prints a higher high
• RSI prints a lower high → Bear Div prints
• Trigger only prints when the pivot candle is below the ribbon
Trade idea
• Entry: Next bearish candle close after divergence prints (bonus if ribbon is turning down)
• Stop: Above the divergence swing high
• Target: Prior swing low / support, or trail while price remains below ribbon
Bearish #2 | Hidden Bearish Divergence + Below-Ribbon Continuation
Setup
• Ribbon is Down (or price is holding below ribbon)
• Price makes a lower high
• RSI makes a higher high → Hid Bear prints (only if below ribbon)
Trade idea
• Entry: Break below the candle that forms after the hidden divergence
• Stop: Above the lower-high pivot
• Target: Prior lows / extension, scale out while ribbon remains bearish
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.