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
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。