OPEN-SOURCE SCRIPT
Mis à jour RSI_RD

RSI_RD - RSI Divergence Detector (Ryan DeBraal)
This script plots a standard RSI along with advanced automatic divergence detection.
It identifies four types of divergences using pivot logic and configurable
lookback windows. Signals appear directly on the RSI line as plotted marks and labels.
FEATURES
- Standard RSI with user-defined length and source.
- Midline (50), overbought (70), and oversold (30) levels with shaded background.
- Automatic detection of:
• Regular Bullish Divergence
• Regular Bearish Divergence
• Hidden Bullish Divergence
• Hidden Bearish Divergence
- Each divergence type can be toggled on/off individually.
- Pivot-based detection using left/right lookback lengths.
- Range filter (bars since pivot) to avoid stale or invalid divergences.
- Colored markers and labels placed exactly on pivot points.
- Alerts for all four divergence conditions.
PURPOSE
This indicator makes RSI divergence trading systematic and visual.
It highlights when price action disagrees with RSI momentum — often signaling
exhaustion, reversal setups, or continuation opportunities depending on the divergence type.
Ideal for combining with trend filters, VWAP, or ORB structures.
This script plots a standard RSI along with advanced automatic divergence detection.
It identifies four types of divergences using pivot logic and configurable
lookback windows. Signals appear directly on the RSI line as plotted marks and labels.
FEATURES
- Standard RSI with user-defined length and source.
- Midline (50), overbought (70), and oversold (30) levels with shaded background.
- Automatic detection of:
• Regular Bullish Divergence
• Regular Bearish Divergence
• Hidden Bullish Divergence
• Hidden Bearish Divergence
- Each divergence type can be toggled on/off individually.
- Pivot-based detection using left/right lookback lengths.
- Range filter (bars since pivot) to avoid stale or invalid divergences.
- Colored markers and labels placed exactly on pivot points.
- Alerts for all four divergence conditions.
PURPOSE
This indicator makes RSI divergence trading systematic and visual.
It highlights when price action disagrees with RSI momentum — often signaling
exhaustion, reversal setups, or continuation opportunities depending on the divergence type.
Ideal for combining with trend filters, VWAP, or ORB structures.
Notes de version
// RSI_RD - RSI Divergence Detector (Ryan DeBraal)// This script plots a standard RSI along with advanced automatic divergence detection.
// It identifies four types of divergences using pivot logic and configurable
// lookback windows. Signals appear directly on the RSI line as plotted marks and labels.
//
// FEATURES
// - Standard RSI with user-defined length and source.
// - Midline (50), overbought (70), and oversold (30) levels with shaded background.
// - Automatic detection of:
// • Regular Bullish Divergence
// • Regular Bearish Divergence
// • Hidden Bullish Divergence
// • Hidden Bearish Divergence
// - Each divergence type can be toggled on/off individually.
// - Pivot-based detection using left/right lookback lengths.
// - Range filter (bars since pivot) to avoid stale or invalid divergences.
// - Colored markers and labels placed exactly on pivot points.
// - Alerts for all four divergence conditions.
//
// PURPOSE
// This indicator makes RSI divergence trading systematic and visual.
// It highlights when price action disagrees with RSI momentum — often signaling
// exhaustion, reversal setups, or continuation opportunities depending on the divergence type.
// Ideal for combining with trend filters, VWAP, or ORB structures.
Notes de version
// RSI_RD - RSI Divergence Detector (Ryan DeBraal)// This script plots a standard RSI along with advanced automatic divergence detection.
// It identifies four types of divergences using pivot logic and configurable
// lookback windows. Signals appear directly on the RSI line as plotted marks and labels.
//
// FEATURES
// - Standard RSI with user-defined length and source.
// - Midline (50), overbought (70), and oversold (30) levels with shaded background.
// - Automatic detection of:
// • Regular Bullish Divergence
// • Regular Bearish Divergence
// • Hidden Bullish Divergence
// • Hidden Bearish Divergence
// - Each divergence type can be toggled on/off individually.
// - Pivot-based detection using left/right lookback lengths.
// - Range filter (bars since pivot) to avoid stale or invalid divergences.
// - Colored markers and labels placed exactly on pivot points.
// - Alerts for all four divergence conditions.
//
// PURPOSE
// This indicator makes RSI divergence trading systematic and visual.
// It highlights when price action disagrees with RSI momentum — often signaling
// exhaustion, reversal setups, or continuation opportunities depending on the divergence type.
// Ideal for combining with trend filters, VWAP, or ORB structures.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.