OPEN-SOURCE SCRIPT
EMA Confluence Oscillator

📌 EMA Confluence Oscillator + Signal
This oscillator helps detect ranging vs trending conditions by measuring EMA alignment, slope, and choppiness. It’s designed for traders who want to avoid chop and trade in clean directional moves.
⸻
🔍 How It Works:
• Uses 3 EMAs (Fast, Medium, Slow) to assess market structure
• Measures how flat the slow EMA is (low slope = range)
• Detects short-term momentum flips in fast/medium EMAs
• Calculates EMA spread to find tight, choppy zones
• Combines all signals into a Range Score (0–1 scale)
⸻
🧠 How to Use:
• High Range Score (near 1): Market likely ranging
• Low Range Score (near 0): More directional/trending
• Watch for crosses below the range threshold to spot trend breakouts
• Optional Signal Line helps smooth decision points
⸻
⚙️ Features:
• Custom lengths for 3 EMAs
• Adjustable slope and convergence thresholds
• Toggle smoothing and signal line
• Background highlight when market is likely in a range
• Clean layout designed for fast intraday analysis
⸻
🛠️ Input Settings Explained:
• Fast/Medium/Slow EMA: Controls trend detection windows
• Slope Lookback: Period used to assess flatness of slow EMA
• Convergence Threshold: How close EMAs must be to count as “tight”
• Smooth Output: Reduces noise in final Range Score
• Signal Line: Smoothed version of the score for easier reading
• Range Threshold: Level where choppiness is likely
• Show Background: Highlights range zones visually
This oscillator helps detect ranging vs trending conditions by measuring EMA alignment, slope, and choppiness. It’s designed for traders who want to avoid chop and trade in clean directional moves.
⸻
🔍 How It Works:
• Uses 3 EMAs (Fast, Medium, Slow) to assess market structure
• Measures how flat the slow EMA is (low slope = range)
• Detects short-term momentum flips in fast/medium EMAs
• Calculates EMA spread to find tight, choppy zones
• Combines all signals into a Range Score (0–1 scale)
⸻
🧠 How to Use:
• High Range Score (near 1): Market likely ranging
• Low Range Score (near 0): More directional/trending
• Watch for crosses below the range threshold to spot trend breakouts
• Optional Signal Line helps smooth decision points
⸻
⚙️ Features:
• Custom lengths for 3 EMAs
• Adjustable slope and convergence thresholds
• Toggle smoothing and signal line
• Background highlight when market is likely in a range
• Clean layout designed for fast intraday analysis
⸻
🛠️ Input Settings Explained:
• Fast/Medium/Slow EMA: Controls trend detection windows
• Slope Lookback: Period used to assess flatness of slow EMA
• Convergence Threshold: How close EMAs must be to count as “tight”
• Smooth Output: Reduces noise in final Range Score
• Signal Line: Smoothed version of the score for easier reading
• Range Threshold: Level where choppiness is likely
• Show Background: Highlights range zones visually
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.