OPEN-SOURCE SCRIPT
Enhanced Momentum Divergence Radar+ [Alpha Extract]

Enhanced Momentum Divergence Radar+ [Alpha Extract]
The AE's Enhanced Momentum Divergence Radar+ is designed to detect momentum shifts and divergence patterns, helping traders identify potential trend reversals and continuation points. By normalizing momentum readings and applying divergence detection, it enhances market timing for entries and exits.
๐ถ CALCULATION
The indicator calculates normalized momentum using a combination of Detrended Price Oscillator (DPO) and volatility-adjusted smoothing techniques. It highlights overbought and oversold conditions while identifying bullish and bearish divergences.
Core Calculation:
ATR-based volatility adjustment ensures dynamic sensitivity.
DPO is derived from the price minus a simple moving average (SMA) to isolate cyclical movements.
Momentum score is normalized using historical max values for consistent scaling.
Thresholds are dynamically adjusted based on average absolute momentum.
Pine Scriptยฎ
The momentum score is plotted as a histogram, where:
Green bars indicate strong upward momentum.
Red bars indicate strong downward momentum.
Neutral values fade into gray.
๐ถ DETAILS
๐ Visual Features:
๐ How Divergences Work:
Bullish Divergence (๐๐ข): Price makes a lower low while momentum makes a higher low.
Bearish Divergence (๐๐): Price makes a higher high while momentum makes a lower high.
Hidden Divergences confirm trend continuations rather than reversals.
๐ Example of Divergence Logic:
Pine Scriptยฎ
๐ถ EXAMPLES
๐ The chart below illustrates price reacting to momentum divergences, identifying potential tops and bottoms before major price moves.
๐ Example snapshots:
A bullish divergence leading to a reversal in price.
A bearish divergence marking the beginning of a downtrend.

๐ถ SETTINGS
๐น Customization Options:
The AE's Enhanced Momentum Divergence Radar+ is designed to detect momentum shifts and divergence patterns, helping traders identify potential trend reversals and continuation points. By normalizing momentum readings and applying divergence detection, it enhances market timing for entries and exits.
๐ถ CALCULATION
The indicator calculates normalized momentum using a combination of Detrended Price Oscillator (DPO) and volatility-adjusted smoothing techniques. It highlights overbought and oversold conditions while identifying bullish and bearish divergences.
Core Calculation:
ATR-based volatility adjustment ensures dynamic sensitivity.
DPO is derived from the price minus a simple moving average (SMA) to isolate cyclical movements.
Momentum score is normalized using historical max values for consistent scaling.
Thresholds are dynamically adjusted based on average absolute momentum.
dpo = close - ma[barsback]
sd = (dpo / volatility) * 100
normalizedSD = sd / maxAbsSD
The momentum score is plotted as a histogram, where:
Green bars indicate strong upward momentum.
Red bars indicate strong downward momentum.
Neutral values fade into gray.
๐ถ DETAILS
๐ Visual Features:
- Histogram bars dynamically color-coded based on momentum strength.
- Threshold bands provide reference points for overbought and oversold levels.
- Divergence markers (Bullish/Bearish & Hidden Bullish/Bearish) highlight key reversal signals.
๐ How Divergences Work:
Bullish Divergence (๐๐ข): Price makes a lower low while momentum makes a higher low.
Bearish Divergence (๐๐): Price makes a higher high while momentum makes a lower high.
Hidden Divergences confirm trend continuations rather than reversals.
๐ Example of Divergence Logic:
bullishDiv = (low[0] == priceLow) and (sd[0] > momentumLow)
bearishDiv = (high[0] == priceHigh) and (sd[0] < momentumHigh)
๐ถ EXAMPLES
๐ The chart below illustrates price reacting to momentum divergences, identifying potential tops and bottoms before major price moves.
๐ Example snapshots:
A bullish divergence leading to a reversal in price.
A bearish divergence marking the beginning of a downtrend.
๐ถ SETTINGS
๐น Customization Options:
- Lookback Period: Adjusts sensitivity to market cycles.
- Smoothing Period: Controls signal clarity.
- Color Options: Enables bar coloring based on momentum strength.
- Divergence Sensitivity: Choose to display hidden divergences.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Access more of our systems and insights at alphaextract.xyz
All analysis provided by Alpha Extract is for educational and informational purposes only.
All analysis provided by Alpha Extract is for educational and informational purposes only.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Access more of our systems and insights at alphaextract.xyz
All analysis provided by Alpha Extract is for educational and informational purposes only.
All analysis provided by Alpha Extract is for educational and informational purposes only.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.