OPEN-SOURCE SCRIPT
Updated

Divergences + Alerts (ANY Indicator)

134
📊 Divergences + Alerts (ANY Indicator)
This versatile indicator detects four types of divergences between price action and an oscillator:

Buyer Exhaustion

Buyer Absorption

Seller Exhaustion

Seller Absorption

Each divergence type is automatically identified and visually marked on the chart with colored lines. The indicator also includes built-in alert conditions for all four divergence types, allowing traders to receive real-time notifications when potential reversal signals occur.

By default, the oscillator is a candle-style visualization of the Money Flow Index (MFI), enhanced with volatility filtering via a VWMA-based ATR. However, users can replace the default MFI oscillator with any external source using the “Plug External Source” input, enabling full customization and compatibility with other indicators.

Key features:

🔍 Detects both exhaustion and absorption divergences

🔔 Alerts for each divergence type

🕯️ Candle-style oscillator visualization

🔌 Optional input for external indicator sources

⚙️ ATR-based filtering for precision

Ideal for traders seeking to spot early signs of trend reversals or momentum shifts with customizable flexibility.
Release Notes
V2
Release Notes
V3
Release Notes
V4
Release Notes
V5
Release Notes
V6

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.