RSI Divergence Alert MT5
- Utilities
- Version: 1.9
RSI Hidden Divergence Alert EA is a MetaTrader 5 tool that detects hidden RSI divergence between the latest closed candle and validated historical price extremes, then notifies you with a popup alert. It helps traders spot potential trend continuation setups without constantly scanning charts for divergence patterns.
Once attached to a chart, the EA compares the most recent closed candle against confirmed historical swing points and sends a popup alert when hidden divergence appears — bullish divergence when RSI is oversold while price makes a higher low, and bearish divergence when RSI is overbought while price makes a lower high. This enables you to quickly check the chart and assess potential continuation moves.
Features
-
Detects bullish hidden RSI divergence (oversold RSI with higher price low)
-
Detects bearish hidden RSI divergence (overbought RSI with lower price high)
-
Validates historical extremes with a local candle window to avoid unconfirmed swings
-
Draws divergence trendlines on both the price chart and the RSI indicator window
-
Popup alerts directly in MetaTrader 5
-
Works on any symbol and timeframe supported by your broker
-
Customizable RSI period, overbought and oversold levels, and target timeframe
-
One alert per candle per direction — no duplicate alerts
-
Lightweight and easy to use
How It Works
The EA tracks the RSI indicator on the selected timeframe. When the latest closed candle closes with RSI beyond your overbought or oversold threshold, the EA searches backwards through recent price history for a strictly validated price extreme — a true lowest low or highest high confirmed by the surrounding candles. If the current candle and the historical extreme form a hidden divergence (RSI moving against price), a popup alert appears in MetaTrader 5.
The RSI period (default 14), overbought level (default 70), and oversold level (default 30) can be adjusted in the settings to suit your trading style. Trendlines connecting the two divergence points are drawn on the price chart and the RSI window, so you can review the setup at a glance.
This EA is an alert tool only and does not open or manage trades. It simply notifies you when hidden RSI divergence forms so you can evaluate trend continuation opportunities yourself.
