OPEN-SOURCE SCRIPT
Oscillator Confluence Tracker [JOAT]

Oscillator Confluence Tracker [JOAT]
Introduction
The Oscillator Confluence Tracker is an advanced open-source multi-oscillator divergence detection indicator that combines RSI divergence analysis, MACD momentum tracking, Stochastic extreme identification, volume divergence detection, and pattern recognition into a unified smart money divergence system. This indicator helps traders identify when price and momentum are moving in opposite directions - a powerful signal that the current trend is losing strength and a reversal may be imminent.
Unlike basic oscillator indicators that simply show overbought/oversold levels, this system detects divergences across multiple oscillators simultaneously and quantifies confluence. Regular divergences signal potential reversals, hidden divergences signal trend continuation, and multi-oscillator confluence provides the highest probability setups. The indicator is designed for traders who understand that divergences reveal institutional positioning changes before they're visible in price action.
Why This Indicator Exists
This indicator addresses a critical challenge in divergence trading: single oscillator divergences produce many false signals. By combining multiple oscillators and requiring confluence, this indicator reveals:
Each component provides a different lens on momentum. RSI shows relative strength, MACD shows trend momentum, Stochastic shows extremes, volume shows participation, and confluence shows conviction. Together, they create a comprehensive view of smart money divergence.

Core Components Explained
1. Regular Bearish Divergence (Price HH, RSI LH)
Regular bearish divergence occurs when price makes a higher high but RSI makes a lower high - signals uptrend exhaustion:
Pine Script®
The indicator identifies bearish divergence by:
Bearish divergence is most powerful when:
2. Regular Bullish Divergence (Price LL, RSI HL)
Regular bullish divergence occurs when price makes a lower low but RSI makes a higher low - signals downtrend exhaustion:
Pine Script®
The indicator identifies bullish divergence by:
Bullish divergence is most powerful when:
3. Hidden Bullish Divergence (Price HL, MACD LL)
Hidden bullish divergence occurs when price makes a higher low but MACD makes a lower low - signals uptrend continuation:
Pine Script®
Hidden divergences are different from regular divergences:
Hidden divergences are powerful for:
4. Volume Divergence Detection
Volume divergence occurs when price makes new highs/lows but volume decreases - warns of weak moves:
Pine Script®
Volume divergence reveals:
Volume divergence combined with RSI/MACD divergence creates extremely high-probability reversal setups.
5. Momentum Divergence Analysis
Momentum divergence occurs when price momentum and oscillator momentum move in opposite directions:
Pine Script®
Momentum divergence shows:
The dashboard displays momentum divergence status (Active/Aligned) with color coding.
6. Multi-Oscillator Confluence Scoring
The indicator quantifies confluence by counting how many oscillators show divergence simultaneously:
Pine Script®
Confluence scoring reveals:
The dashboard displays confluence score and classification with color intensity.
7. Enhanced Candlestick Coloring
The indicator colors candles based on trend strength and momentum:
Pine Script®
Candlestick coloring shows:
This provides instant visual feedback on trend and momentum strength.

Visual Elements
The dashboard displays 9 key metrics:
1. RSI State (value and Overbought/Oversold/Neutral)
2. MACD Flow (Bullish/Bearish and Strong/Weak)
3. Stochastic (value and Extreme/Normal)
4. Momentum Div (Active/Aligned)
5. Volume Profile (ratio and Spike/Elevated/Low)
6. Trend Strength (Bullish/Bearish and Strong/Weak)
7. Confluence (Extreme/Strong/Moderate/None)
8. Signal Quality (Elite Setup/Strong Setup/Moderate/Weak)
Input Parameters
Oscillator Settings:
Divergence Detection:
Volume Analysis:
How to Use This Indicator
Step 1: Monitor RSI State
Check dashboard for RSI level. Divergences in extreme zones (>70 or <30) are most powerful. Wait for extremes for best setups.
Step 2: Watch for Divergence Labels
When "BULL DIV" or "BEAR DIV" labels appear, divergence is detected. "EXTREME" suffix means it's in overbought/oversold - highest probability.
Step 3: Check Confluence Score
Dashboard shows confluence level. "EXTREME" or "STRONG" = multiple oscillators confirming. Only trade 3+ confluence setups.
Step 4: Confirm with Volume
Look for "VOL DIV" labels. Volume divergence + oscillator divergence = very high probability. Volume confirms the divergence.
Step 5: Assess Signal Quality[/b>
Dashboard shows "ELITE SETUP" when momentum divergence + extreme RSI/Stochastic + high confluence. "STRONG SETUP" for good setups. Only trade Elite and Strong.
Step 6: Use Hidden Divergence for Continuation
"H-BULL" or "H-BEAR" labels signal trend continuation. Enter pullbacks in strong trends when hidden divergence appears.
Step 7: Monitor Trend Strength[/b>
Dashboard shows trend and momentum. Strong trend + divergence = potential reversal. Weak trend + divergence = likely reversal.
Best Practices
Indicator Limitations
Technical Implementation
Built with Pine Script v6 using:
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its comprehensive divergence integration approach. While individual components (RSI, MACD, Stochastic, volume) are established concepts, this indicator is justified because:
Each component contributes unique information: RSI shows relative strength, MACD shows momentum, Stochastic shows extremes, volume shows participation, momentum shows acceleration, confluence shows conviction, and quality shows probability. The indicator's value lies in presenting these complementary perspectives simultaneously with unified classification and actionable trade signals.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Divergence analysis is a tool for identifying potential reversals and continuations, not a crystal ball for predicting future price movement. Divergences do not guarantee reversals. Confluence does not guarantee success. Past divergence patterns do not guarantee future divergence patterns. Market conditions change, and strategies that worked historically may not work in the future.
The divergences displayed are analytical constructs based on current market data, not predictions of future price movement. High confluence scores do not guarantee profitable trades. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades
Introduction
The Oscillator Confluence Tracker is an advanced open-source multi-oscillator divergence detection indicator that combines RSI divergence analysis, MACD momentum tracking, Stochastic extreme identification, volume divergence detection, and pattern recognition into a unified smart money divergence system. This indicator helps traders identify when price and momentum are moving in opposite directions - a powerful signal that the current trend is losing strength and a reversal may be imminent.
Unlike basic oscillator indicators that simply show overbought/oversold levels, this system detects divergences across multiple oscillators simultaneously and quantifies confluence. Regular divergences signal potential reversals, hidden divergences signal trend continuation, and multi-oscillator confluence provides the highest probability setups. The indicator is designed for traders who understand that divergences reveal institutional positioning changes before they're visible in price action.
Why This Indicator Exists
This indicator addresses a critical challenge in divergence trading: single oscillator divergences produce many false signals. By combining multiple oscillators and requiring confluence, this indicator reveals:
- RSI Divergence Detection: Identifies when price makes new highs/lows but RSI doesn't - signals momentum exhaustion
- MACD Momentum Analysis: Tracks MACD line and histogram for momentum shifts and crossovers
- Stochastic Extreme Zones: Identifies overbought (>80) and oversold (<20) conditions for context
- Hidden Divergence Patterns: Detects hidden divergences that signal trend continuation rather than reversal
- Volume Divergence: Identifies when price makes new highs/lows on decreasing volume - warns of weak moves
- Multi-Oscillator Confluence: Quantifies how many oscillators show divergence simultaneously
- Momentum Divergence: Detects when price momentum and oscillator momentum conflict
Each component provides a different lens on momentum. RSI shows relative strength, MACD shows trend momentum, Stochastic shows extremes, volume shows participation, and confluence shows conviction. Together, they create a comprehensive view of smart money divergence.
Core Components Explained
1. Regular Bearish Divergence (Price HH, RSI LH)
Regular bearish divergence occurs when price makes a higher high but RSI makes a lower high - signals uptrend exhaustion:
The indicator identifies bearish divergence by:
- Tracking swing highs in both price and RSI using pivot detection
- Comparing current swing high to previous swing high
- Confirming price made higher high while RSI made lower high
- Drawing solid line on price chart and dashed line on RSI
- Creating "BEAR DIV" label at the divergence point
Bearish divergence is most powerful when:
- RSI is in overbought zone (>70) - "BEAR DIV EXTREME" label
- Multiple oscillators show divergence simultaneously
- Volume is decreasing on the higher high
- Occurs at resistance or Fibonacci level
2. Regular Bullish Divergence (Price LL, RSI HL)
Regular bullish divergence occurs when price makes a lower low but RSI makes a higher low - signals downtrend exhaustion:
The indicator identifies bullish divergence by:
- Tracking swing lows in both price and RSI
- Comparing current swing low to previous swing low
- Confirming price made lower low while RSI made higher low
- Drawing solid line on price chart and dashed line on RSI
- Creating "BULL DIV" label at the divergence point
Bullish divergence is most powerful when:
- RSI is in oversold zone (<30) - "BULL DIV EXTREME" label
- Multiple oscillators show divergence simultaneously
- Volume is decreasing on the lower low
- Occurs at support or Fibonacci level
3. Hidden Bullish Divergence (Price HL, MACD LL)
Hidden bullish divergence occurs when price makes a higher low but MACD makes a lower low - signals uptrend continuation:
Hidden divergences are different from regular divergences:
- Signal trend continuation, not reversal
- Occur during pullbacks in established trends
- Show that momentum is building despite price correction
- Drawn with dotted lines to distinguish from regular divergence
- Labeled "H-BULL" or "H-BEAR" for clarity
Hidden divergences are powerful for:
- Entering pullbacks in strong trends
- Adding to winning positions
- Confirming trend strength
- Identifying optimal re-entry points
4. Volume Divergence Detection
Volume divergence occurs when price makes new highs/lows but volume decreases - warns of weak moves:
Volume divergence reveals:
- Decreasing participation in the move
- Lack of institutional conviction
- Potential exhaustion or trap
- Warning that trend may not continue
Volume divergence combined with RSI/MACD divergence creates extremely high-probability reversal setups.
5. Momentum Divergence Analysis
Momentum divergence occurs when price momentum and oscillator momentum move in opposite directions:
Momentum divergence shows:
- Acceleration/deceleration conflicts
- Early warning of trend changes
- Momentum exhaustion before price exhaustion
- Institutional positioning shifts
The dashboard displays momentum divergence status (Active/Aligned) with color coding.
6. Multi-Oscillator Confluence Scoring
The indicator quantifies confluence by counting how many oscillators show divergence simultaneously:
Confluence scoring reveals:
- Setup quality (higher score = higher probability)
- How many independent signals confirm the divergence
- Whether to take the trade (3+ recommended)
- Position sizing guidance (higher score = larger size)
The dashboard displays confluence score and classification with color intensity.
7. Enhanced Candlestick Coloring
The indicator colors candles based on trend strength and momentum:
Candlestick coloring shows:
- Bright green: Strong bullish momentum
- Light green: Weak bullish momentum
- Bright red: Strong bearish momentum
- Light red: Weak bearish momentum
This provides instant visual feedback on trend and momentum strength.
Visual Elements
- Divergence Lines: Solid lines on price, dashed lines on oscillator connecting pivot points
- Divergence Labels: "BULL DIV", "BEAR DIV", "H-BULL", "H-BEAR" at divergence points
- Extreme Labels: "BULL DIV EXTREME" or "BEAR DIV EXTREME" in overbought/oversold zones
- Volume Labels: "VOL DIV" markers when volume diverges
- Divergence Zones: Semi-transparent boxes highlighting divergence areas
- Enhanced Candles: Color-coded by trend and momentum strength
- Volume Spike Boxes: Gold boxes around high-volume candles
- Extreme Zone Backgrounds: Red tint when RSI >70 and Stochastic >80, green tint when RSI <30 and Stochastic <20
- Dashboard: Real-time oscillator states and confluence metrics
The dashboard displays 9 key metrics:
1. RSI State (value and Overbought/Oversold/Neutral)
2. MACD Flow (Bullish/Bearish and Strong/Weak)
3. Stochastic (value and Extreme/Normal)
4. Momentum Div (Active/Aligned)
5. Volume Profile (ratio and Spike/Elevated/Low)
6. Trend Strength (Bullish/Bearish and Strong/Weak)
7. Confluence (Extreme/Strong/Moderate/None)
8. Signal Quality (Elite Setup/Strong Setup/Moderate/Weak)
Input Parameters
Oscillator Settings:
- RSI Period: Length for RSI calculation (default: 14)
- MACD Fast: Fast EMA for MACD (default: 12)
- MACD Slow: Slow EMA for MACD (default: 26)
- MACD Signal: Signal line period (default: 9)
- Stochastic Period: Length for Stochastic calculation (default: 14)
Divergence Detection:
- Pivot Detection: Lookback for swing detection (default: 5)
- Regular Divergence: Enable/disable regular divergence detection
- Hidden Divergence: Enable/disable hidden divergence detection
- Multi-Oscillator Confluence: Require multiple oscillators
- Extreme Zones Only: Only detect divergences in overbought/oversold
Volume Analysis:
- Volume Analysis Period: Length for volume average (default: 20)
- Volume Divergence: Enable/disable volume divergence detection
- Volume Spike Threshold: Multiplier for spike detection (default: 1.5x)
How to Use This Indicator
Step 1: Monitor RSI State
Check dashboard for RSI level. Divergences in extreme zones (>70 or <30) are most powerful. Wait for extremes for best setups.
Step 2: Watch for Divergence Labels
When "BULL DIV" or "BEAR DIV" labels appear, divergence is detected. "EXTREME" suffix means it's in overbought/oversold - highest probability.
Step 3: Check Confluence Score
Dashboard shows confluence level. "EXTREME" or "STRONG" = multiple oscillators confirming. Only trade 3+ confluence setups.
Step 4: Confirm with Volume
Look for "VOL DIV" labels. Volume divergence + oscillator divergence = very high probability. Volume confirms the divergence.
Step 5: Assess Signal Quality[/b>
Dashboard shows "ELITE SETUP" when momentum divergence + extreme RSI/Stochastic + high confluence. "STRONG SETUP" for good setups. Only trade Elite and Strong.
Step 6: Use Hidden Divergence for Continuation
"H-BULL" or "H-BEAR" labels signal trend continuation. Enter pullbacks in strong trends when hidden divergence appears.
Step 7: Monitor Trend Strength[/b>
Dashboard shows trend and momentum. Strong trend + divergence = potential reversal. Weak trend + divergence = likely reversal.
Best Practices
- Divergences in extreme zones (RSI >70 or <30) are most reliable
- Multi-oscillator confluence (3+) significantly increases win rate
- Volume divergence adds powerful confirmation
- Hidden divergences are for trend continuation, not reversal
- Regular divergences are for reversal, not continuation
- Momentum divergence provides early warning before price divergence
- Extreme zone backgrounds (red/green tint) show best divergence areas
- Enhanced candle colors show when momentum is weakening
- Confluence score guides position sizing (higher = larger)
- Signal quality in dashboard filters low-probability setups
Indicator Limitations
- Divergences can persist for extended periods before reversing
- Not all divergences result in reversals - some fail
- Strong trends can produce multiple divergences before reversing
- Hidden divergences require established trend context
- Volume divergence less reliable on low-volume instruments
- Pivot detection requires sufficient volatility
- Multiple divergences in short period may signal consolidation
- The indicator shows momentum conflicts, not guaranteed reversals
- Extreme zones can remain extreme longer than expected
Technical Implementation
Built with Pine Script v6 using:
- RSI divergence detection with pivot comparison
- MACD momentum analysis with histogram tracking
- Stochastic extreme zone identification
- Volume divergence detection with pivot tracking
- Momentum divergence calculations (rate-of-change)
- Multi-oscillator confluence scoring system
- Enhanced candlestick coloring based on trend and momentum
- Volume spike detection with box visualization
- Extreme zone background gradients
- Real-time dashboard with 9 divergence metrics
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its comprehensive divergence integration approach. While individual components (RSI, MACD, Stochastic, volume) are established concepts, this indicator is justified because:
- It synthesizes multiple oscillator divergence detection into unified confluence scoring
- The multi-oscillator confluence system quantifies setup quality across independent signals
- Hidden divergence detection distinguishes continuation from reversal patterns
- Volume divergence integration adds participation confirmation layer
- Momentum divergence analysis provides early warning system
- Enhanced candlestick coloring shows trend and momentum strength visually
- Signal quality classification (Elite/Strong/Moderate/Weak) filters setups
- Extreme zone backgrounds highlight optimal divergence areas
- Real-time dashboard presents 9 metrics simultaneously for holistic divergence analysis
Each component contributes unique information: RSI shows relative strength, MACD shows momentum, Stochastic shows extremes, volume shows participation, momentum shows acceleration, confluence shows conviction, and quality shows probability. The indicator's value lies in presenting these complementary perspectives simultaneously with unified classification and actionable trade signals.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Divergence analysis is a tool for identifying potential reversals and continuations, not a crystal ball for predicting future price movement. Divergences do not guarantee reversals. Confluence does not guarantee success. Past divergence patterns do not guarantee future divergence patterns. Market conditions change, and strategies that worked historically may not work in the future.
The divergences displayed are analytical constructs based on current market data, not predictions of future price movement. High confluence scores do not guarantee profitable trades. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
The Institutional Grade Trading Ecosystem, Built to win trades 📈
Get Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
The Institutional Grade Trading Ecosystem, Built to win trades 📈
Get Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.