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.**
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.