OPEN-SOURCE SCRIPT
MACD-RSI Divergence Oscillator

MACD-RSI Divergence Oscillator: Dual Confirmation with Momentum + Divergence Signals
This powerful oscillator combines MACD and RSI into a single normalized visual tool, enriched with automatic divergence detection and smart signal alerts. It’s designed to give traders advanced insights into momentum shifts and trend reversals.
Key Features:
• MACD + RSI Combo: Both indicators are scaled and merged into one oscillator for clearer interpretation.
• Automatic Divergence Detection:
• Bullish & Bearish divergences on both MACD and RSI
• Highlights strong divergences when both confirm
• Trading Signals:
• Detects MACD crossovers and RSI reversals
• Smart buy/sell signals based on momentum + divergence
• Custom Oscillator View:
• Plots MACD and RSI on the same scale
• Visual zero-line, overbought/oversold levels, and customizable colors
• Optional Dashboard Table:
• Displays live indicator values, signal states, and divergence status
Ideal For:
• Spotting early trend reversals
• Confirming trade entries/exits
• Avoiding false signals using dual indicator logic
Highly customizable and suitable for all timeframes and asset types.
This powerful oscillator combines MACD and RSI into a single normalized visual tool, enriched with automatic divergence detection and smart signal alerts. It’s designed to give traders advanced insights into momentum shifts and trend reversals.
Key Features:
• MACD + RSI Combo: Both indicators are scaled and merged into one oscillator for clearer interpretation.
• Automatic Divergence Detection:
• Bullish & Bearish divergences on both MACD and RSI
• Highlights strong divergences when both confirm
• Trading Signals:
• Detects MACD crossovers and RSI reversals
• Smart buy/sell signals based on momentum + divergence
• Custom Oscillator View:
• Plots MACD and RSI on the same scale
• Visual zero-line, overbought/oversold levels, and customizable colors
• Optional Dashboard Table:
• Displays live indicator values, signal states, and divergence status
Ideal For:
• Spotting early trend reversals
• Confirming trade entries/exits
• Avoiding false signals using dual indicator logic
Highly customizable and suitable for all timeframes and asset types.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.