The DivAlgo identifies divergences between price action and momentum oscillators —a powerful signal that often precedes significant reversals. The algorithm supports multiple oscillators (RSI, MACD, Stochastic, CCI) and detects both regular and hidden divergences.

Quick Facts:
The DivAlgo identifies divergences between price action and momentum oscillators —a powerful signal that often precedes significant reversals. The algorithm supports multiple oscillators (RSI, MACD, Stochastic, CCI) and detects both regular and hidden divergences.
Divergence occurs when price makes a new high/low but the oscillator fails to confirm, indicating weakening momentum and potential reversal.
OSCILLATOR CALCULATION Choose from multiple oscillators:
PIVOT DETECTION Identify pivots on both price and oscillator:
DIVERGENCE DETECTION
REGULAR BULLISH DIVERGENCE:
REGULAR BEARISH DIVERGENCE:
HIDDEN BULLISH DIVERGENCE (Optional):
HIDDEN BEARISH DIVERGENCE (Optional):
CONFIRMATION Optional filters for divergence validity:
OSCILLATOR:
PIVOT DETECTION:
DIVERGENCE TYPES:
FILTERS:
✅ REVERSAL DETECTION at extended moves ✅ TREND EXHAUSTION identification ✅ MULTI-TIMEFRAME divergence confirmation ✅ CONFLUENCE with other reversal signals
Subscribe to Technical Indicator or higher to access
Own the complete Pine Script source code forever. Modify, customize, and use it on your own TradingView account.
What you get with source code:
We use cookies to enhance your browsing experience, analyze site traffic, and personalize content. By clicking "Accept All", you consent to our use of cookies. Read our Privacy Policy for more information.