RSI Divergence By HaykTrading (Chart + RSI)

This indicator detects classic and hidden RSI divergences while applying a strict filter: divergences are only shown when the starting (older) pivot on the RSI is in an extreme zone — below the lower limit (default 30, oversold) for bullish divergences, or above the upper limit (default 70, overbought) for bearish ones.
This filtering focuses on higher-probability setups that originate from truly overbought/oversold conditions, reducing noise from mid-range divergences.
Key Features:
• Regular and hidden bullish/bearish divergences
• Customizable RSI length, source, and moving average overlay
• Adjustable extreme zone limits (default 30/70)
• Colored circle markers on RSI pivot points
• Divergence lines drawn simultaneously:
- On the RSI pane (solid for regular, dashed for hidden)
- On the main price chart (overlaid using force_overlay=true) connecting the price pivots
• Gradient fills for overbought/oversold zones
• Built-in alert conditions for all four divergence types
How It Works:
The script identifies pivot highs/lows on the RSI, checks for price vs. oscillator disagreement within a recent range (5-60 bars), and only validates the divergence if the previous RSI pivot was in the user-defined extreme zone.
Usage Tips:
• Enable/disable regular and hidden divergences via inputs
• Adjust the Bull Start Limit (<) and Bear Start Limit (>) to suit different assets or timeframes (e.g., 20/80 for more extreme filtering)
• Lines on the price chart make it easy to see the exact price pivots without switching panes
• Best used on higher timeframes for cleaner signals
No repainting | Works on all markets and timeframes
Enjoy responsible trading — this is a tool for analysis, not financial advice.
Yalnızca davetli komut dosyası
Bu komut dosyasına yalnızca yazar tarafından onaylanan kullanıcılar erişebilir. Kullanmak için izin istemeniz ve almanız gerekir. Bu genellikle ödeme yapıldıktan sonra verilir. Daha fazla ayrıntı için aşağıdaki yazarın talimatlarını izleyin veya doğrudan HaykTrading ile iletişime geçin.
TradingView, yazarına tamamen güvenmediğiniz ve nasıl çalıştığını anlamadığınız sürece bir komut dosyası için ödeme yapmanızı veya kullanmanızı TAVSİYE ETMEZ. Ayrıca topluluk komut dosyalarımızda ücretsiz, açık kaynaklı alternatifler bulabilirsiniz.
Yazarın talimatları
Feragatname
Yalnızca davetli komut dosyası
Bu komut dosyasına yalnızca yazar tarafından onaylanan kullanıcılar erişebilir. Kullanmak için izin istemeniz ve almanız gerekir. Bu genellikle ödeme yapıldıktan sonra verilir. Daha fazla ayrıntı için aşağıdaki yazarın talimatlarını izleyin veya doğrudan HaykTrading ile iletişime geçin.
TradingView, yazarına tamamen güvenmediğiniz ve nasıl çalıştığını anlamadığınız sürece bir komut dosyası için ödeme yapmanızı veya kullanmanızı TAVSİYE ETMEZ. Ayrıca topluluk komut dosyalarımızda ücretsiz, açık kaynaklı alternatifler bulabilirsiniz.