OPEN-SOURCE SCRIPT
MACD & RSI Divergence (ON-CHART)

*MACD & RSI Divergence (On-Chart Overlay) — Pro Signal Visualization Layer**
This is a companion overlay designed for the **MACD & RSI Divergence Pro system**, built to project divergence signals directly onto the price chart for cleaner execution and faster decision-making.
It does not calculate indicators independently—instead, it acts as a **visual mapping layer**, synchronising with the main divergence engine.
---
### 🔍 Core Purpose
This script enhances trade clarity by displaying:
* MACD divergence signals on price action
* RSI divergence signals on price action
* Swing structure counts for momentum tracking
* Visual divergence confirmation lines
It transforms oscillator-based signals into **actionable chart-level events**.
---
### 📊 Key Features
• **On-Chart Divergence Mapping**
* MACD bullish & bearish divergences
* RSI bullish & bearish divergences
* Regular and hidden structure signals
• **Multi-Signal Integration**
* Combines MACD + RSI logic into one visual layer
* Separates momentum vs structure divergence
* Highlights high-confidence confluence zones
• **Swing Count Tracking**
* MACD swing progression counter
* StochRSI momentum swing tracking
* Helps identify trend exhaustion phases
• **Divergence Line Visualization**
* Connects pivot highs and lows
* Shows structural divergence clearly on price
* Enhances pattern recognition and confirmation
• **Execution-Focused Design**
* No oscillator clutter
* Clean price-based signal presentation
* Built for fast decision-making environments
---
### 📊 How to Use
**Bullish Divergence**
* Price forms lower low
* RSI / MACD forms higher low
→ Potential reversal or continuation upward
**Bearish Divergence**
* Price forms higher high
* RSI / MACD forms lower high
→ Potential reversal or continuation downward
**Confluence Zones**
* When MACD + RSI divergences align
→ Higher probability setup
---
### ⚠️ Important Notes
* This is a **companion overlay**, not a standalone system
* Best used alongside the main “MACD & RSI Divergence Pro” indicator
* Signals gain strength when multiple divergences align
---
### 🚀 Ideal For
* Advanced divergence traders
* Smart money / structure-based trading
* Scalpers and intraday traders
* Traders who need visual confirmation on price
---
### 🧠 Trading Philosophy
**Oscillators generate signals.
Price confirms intent.
This tool bridges the two.**
---
**See divergence where it actually matters — on price.**
This is a companion overlay designed for the **MACD & RSI Divergence Pro system**, built to project divergence signals directly onto the price chart for cleaner execution and faster decision-making.
It does not calculate indicators independently—instead, it acts as a **visual mapping layer**, synchronising with the main divergence engine.
---
### 🔍 Core Purpose
This script enhances trade clarity by displaying:
* MACD divergence signals on price action
* RSI divergence signals on price action
* Swing structure counts for momentum tracking
* Visual divergence confirmation lines
It transforms oscillator-based signals into **actionable chart-level events**.
---
### 📊 Key Features
• **On-Chart Divergence Mapping**
* MACD bullish & bearish divergences
* RSI bullish & bearish divergences
* Regular and hidden structure signals
• **Multi-Signal Integration**
* Combines MACD + RSI logic into one visual layer
* Separates momentum vs structure divergence
* Highlights high-confidence confluence zones
• **Swing Count Tracking**
* MACD swing progression counter
* StochRSI momentum swing tracking
* Helps identify trend exhaustion phases
• **Divergence Line Visualization**
* Connects pivot highs and lows
* Shows structural divergence clearly on price
* Enhances pattern recognition and confirmation
• **Execution-Focused Design**
* No oscillator clutter
* Clean price-based signal presentation
* Built for fast decision-making environments
---
### 📊 How to Use
**Bullish Divergence**
* Price forms lower low
* RSI / MACD forms higher low
→ Potential reversal or continuation upward
**Bearish Divergence**
* Price forms higher high
* RSI / MACD forms lower high
→ Potential reversal or continuation downward
**Confluence Zones**
* When MACD + RSI divergences align
→ Higher probability setup
---
### ⚠️ Important Notes
* This is a **companion overlay**, not a standalone system
* Best used alongside the main “MACD & RSI Divergence Pro” indicator
* Signals gain strength when multiple divergences align
---
### 🚀 Ideal For
* Advanced divergence traders
* Smart money / structure-based trading
* Scalpers and intraday traders
* Traders who need visual confirmation on price
---
### 🧠 Trading Philosophy
**Oscillators generate signals.
Price confirms intent.
This tool bridges the two.**
---
**See divergence where it actually matters — on price.**
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.