INVITE-ONLY SCRIPT
RSI Divergence By HaykTrading (Chart + RSI)

RSI Divergence Detector with Extreme Zone Filter & Dual-Pane Lines
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.
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.
仅限邀请脚本
只有作者授权的用户才能访问此脚本。您需要申请并获得使用许可。通常情况下,付款后即可获得许可。更多详情,请按照下方作者的说明操作,或直接联系HaykTrading。
TradingView不建议您付费购买或使用任何脚本,除非您完全信任其作者并了解其工作原理。您也可以在我们的社区脚本找到免费的开源替代方案。
作者的说明
contact Hayk for access
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
仅限邀请脚本
只有作者授权的用户才能访问此脚本。您需要申请并获得使用许可。通常情况下,付款后即可获得许可。更多详情,请按照下方作者的说明操作,或直接联系HaykTrading。
TradingView不建议您付费购买或使用任何脚本,除非您完全信任其作者并了解其工作原理。您也可以在我们的社区脚本找到免费的开源替代方案。
作者的说明
contact Hayk for access
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。