Divergence IndicatorPro

Divergence Indicator Pro

Divergence Indicator Pro is a professional divergence indicator for MetaTrader 5 that automatically detects divergences between price and oscillator right on the chart.

No more manual pivot hunting or checking whether price direction matches RSI or MACD. The indicator does it for you — on every new bar, accurately and without repaint.

🎯 What the indicator shows

1. Regular Divergence — classic reversal signal:

  • 🟢 Bullish regular — price makes Lower Low, oscillator — Higher Low. Possible reversal up.

  • 🔴 Bearish regular — price makes Higher High, oscillator — Lower High. Possible reversal down.

2. Hidden Divergence — trend continuation signal:

  • 🟢 Bullish hidden — price makes Higher Low, oscillator — Lower Low. Uptrend continues.

  • 🔴 Bearish hidden — price makes Lower High, oscillator — Higher High. Downtrend continues.

Lines connect price pivots, arrows mark the signal direction. Regular uses a solid line, hidden uses dashed.

📊 Supported Oscillators

One parameter — four oscillators:

Oscillator Settings
RSI Period (14 default)
MACD Fast (12), Slow (26), Signal (9)
Stochastic %K (5), %D (3), Slowing (3)
CCI Period (14)

Switching — one input field. Works equally well on each.

✨ Key features

🔍 Automatic Pivot Detection
Scans last N bars (300 by default) and finds local price highs/lows with configurable confirmation window (5 bars left/right by default).

📐 Four Divergence Types
Both directions and both types are checked:

  • Regular (reversal) — both directions

  • Hidden (continuation) — both directions

Each type can be disabled separately.

🎨 Chart Visualization

  • Colored lines between pivots

  • Arrows at signal points

  • Solid for regular, dotted for hidden

  • Configurable colors, widths, arrow sizes, price offset

🔔 Smart Alerts

  • Push notifications to phone

  • Sound alert

  • Journal logging

  • 60-min cooldown — alert doesn't repeat across multiple charts

⚡ New-bar processing
Recalculates layout only on new bar formation. Saves resources and guarantees stability after bar close.

🛠 Installation — MetaTrader 5

  1. Copy DivergenceIndicatorPro.mq5 to MQL5/Indicators/ folder

  2. Open MetaEditor (F4), compile (F7) — must be 0 errors, 0 warnings

  3. Restart MT5 or refresh Navigator

  4. Drag the indicator from Navigator onto chart

  5. Configure oscillator, pivot window, and alerts

Typical file path:

text

C:\Users\{User}\AppData\Roaming\MetaQuotes\Terminal\{ID}\MQL5\Indicators\

📌 Recommended Settings

Instrument Timeframe Oscillator Pivot Lookback Scan Bars
EURUSD, GBPUSD H1 RSI(14) 5 300
XAUUSD H4 MACD(12,26,9) 5 200
BTCUSD H4 RSI(14) 5 200
US500 M15 Stochastic(5,3,3) 3 500

Timeframes:

  • M5–M15 — scalping, fast signals (Pivot Lookback = 3)

  • H1–H4 — swing trading, balanced signals (Pivot Lookback = 5)

  • D1 — medium-term, strong signals (Pivot Lookback = 8)

📌 Trading scenarios

1. Reversal trading (regular divergence)

  • Bullish regular signal + confirmation (engulfing candle, level bounce) → BUY

  • Bearish regular signal + confirmation → SELL

2. Trend continuation (hidden divergence)

  • In uptrend: bullish hidden on pullback → trend-following entry

  • In downtrend: bearish hidden on pullback → trend-following entry

3. Combined with levels

  • Divergence near Pivot Point / Daily Range — stronger signal

  • Divergence on strong support/resistance — higher probability

4. Multi-timeframe

  • Signal on H4 + confirmation on H1 — entry

  • Signal on H1 without higher TF confirmation — observe only

⚙️ Parameters

Parameter Description Default
InpOscillator Oscillator type (RSI/MACD/Stoch/CCI) OSC_RSI
InpRSIPeriod RSI period 14
InpMACDFast / Slow / Signal MACD parameters 12 / 26 / 9
InpStochK / D / Slowing Stochastic parameters 5 / 3 / 3
InpCCIPeriod CCI period 14
InpPivotLookback Bars left/right to confirm pivot 5
InpScanBars How many last bars to scan 300
InpMaxPivots Max pivots to compare 5
InpShowRegular Show regular divergences true
InpShowHidden Show hidden divergences true
InpShowLines Draw lines true
InpShowArrows Draw arrows true
InpBullColor / BearColor Bullish/bearish colors Lime / Red
InpLineWidth Line width 2
InpArrowSize Arrow size 2
InpAlert Enable alerts true
InpAlertPush Push notifications true
InpAlertSound Sound alert true
InpAlertCooldownMin Cooldown between alerts (min) 60
InpSoundFile Sound file name alert.wav

📋 Implementation notes (MT5)

  • Pure MQL5 — no DLLs, no external dependencies

  • Uses indicator handles ( iRSI , iMACD , iStochastic , iCCI ) + CopyBuffer — efficient data access

  • No repaint — signals stable after bar close

  • Works on any instrument: Forex, metals, indices, crypto

  • All timeframes: M1 — MN1

  • Correct behavior on timeframe switch

  • Operation logging to terminal journal

⚠️ Important warning

Divergence Indicator Pro is an analysis tool, not a trading system. The indicator shows divergences between price and oscillator, but does not generate ready-made entry signals. All trading decisions are made by the trader.

Using the indicator does not guarantee profit. Test on a demo account before live trading.

🏆 About the developer

Musa Khunarikov — trader with 12 years of live experience (Forex, stocks, MOEX, metals). 51 certifications from "Finam" training center in trading, algo trading, and MetaTrader.

Live trading:
👉 https://developer-mql4-mql5.netlify.app/

Services: EA development, indicators, panels, trading system audit.

📞 Support

30 days of free support after purchase. Bug fixes within 48 hours.


Mais do autor
MACrossoverEA KH
Musa Khunarikov
MA Crossover EA - advisor at the intersection of moving averages The advisor opens trades when two moving averages (Fast and Slow) cross. Works on any symbol and timeframe. Features: Opening BUY when crossing the Fast MA from bottom to top Opening SELL when crossing the Fast MA from top to bottom Setting Stop Loss and Take Profit Only one position at a time Working only on a new bar (optional) Customizable parameters Parameters: Lot - lot size FastMAPeriod, SlowMAPeriod - periods of MA StopLoss,
FREE
VolumeAnalysis is a professional library designed to integrate advanced volume analysis into your MQL5 Expert Advisors and indicators. The library was created by an active trader and developer with 10 years of experience in financial markets and 51 MQL5 certifications. It encapsulates complex volume calculations into simple, intuitive functions, allowing you to focus on building trading logic rather than routine data gathering. Key library features: Average volume analysis. Rapid calculation of
FREE
VolumeMonitorUtility — professional real-time volume monitoring tool VolumeMonitorUtility is a service utility for the MetaTrader 5 terminal that displays key volume analysis metrics directly on the chart as a compact information panel. The utility was created by a practicing trader and developer with 10 years of experience in financial markets and 51 MQL5 certificates. The utility is built on top of the open-source VolumeAnalysis library and is designed for traders who make decisions based on
FREE
Relative Volume — Relative Volume Indicator This indicator displays current volume as a percentage of the average volume over N bars. It helps identify abnormal volume spikes that often precede significant price movements. Features: Relative volume line displayed in a separate pane Levels for 100% (average volume) and 200% (abnormal volume) Color coding: blue / orange / red Customizable averaging period Parameters: AvgPeriod — volume averaging period (default: 20) ColorNormal, ColorHig
FREE
SpreadMonitor SpreadMonitor is a professional MetaTrader 5 indicator that colorizes candles by spread level and displays an on-chart monitoring panel with current value, statistics, and history. Created by a practicing trader with 12 years of real-account experience. Helps you avoid entering the market when spreads are abnormally high and see the real cost of trading at every moment. What the indicator shows Candle coloring by spread level: Blue — normal spread Orange — elevated Gr
FREE
SpreadMonitor SpreadMonitor is a professional indicator for MetaTrader 4 that color-codes candlesticks based on spread levels and displays a monitoring panel on the chart showing the current value, statistics, and history. The indicator was created by an active trader with 12 years of experience. It helps you avoid entering the market when the spread is abnormally high and allows you to see actual trading costs at any given moment. ️ MetaTrader 4 Limitation: MT4 does not provide access t
FREE
Professional VolumeProfile Professional VolumeProfile is a professional indicator for MetaTrader 4 that builds a volume profile by price directly on the chart: it shows POC (Point of Control), VAH/VAL (boundaries of the value zone), and a histogram of volume distribution across price levels. The indicator was created by a practicing trader with 12 years of experience. It helps to see where the volume is actually concentrated, identify areas of interest for large capital, and determine the f
Liquidity + Volume Pro (MT4) Liquidity + Volume Pro is a professional MetaTrader 4 indicator that combines liquidity and volume analysis into one system. Detects level sweeps, filters by volume, scores signal strength, and builds Support/Resistance levels. Full MT5 functionality adapted for MT4. Identical signals, unified logic, same visualization. What the indicator shows Liquidity Sweeps: Green arrow — bullish sweep (Buy) Red arrow — bearish sweep (Sell) Signal Strength (0–100):
SM Structure PR SM Structure PR is a professional indicator for MetaTrader 4 that automatically identifies market structure using Smart Money Concepts (SMC) and ICT methodology. It detects BOS (Break of Structure), CHoCH (Change of Character), Order Blocks, Fair Value Gaps (FVG) and Premium/Discount zones — all in one tool. Built by a trader with 12 years of live experience. Helps see market structure the way institutional players see it, and find entries in the direction of "smart money". Wh
Retail Sentiment MT4 Retail Sentiment is a professional information indicator for MetaTrader 4 that displays retail trader sentiment based on MyFxBook Community Outlook. The panel shows the ratio of long vs short positions for the selected instrument in real time. Built by a trader with 12 years of live experience. Helps use a contrarian approach — when most retail traders are long, institutional players often go against them. What it shows Compact panel in chart corner: LONG XX% — blue bar w
FREE
Professional Delta Volume is a professional indicator for MetaTrader 4 and MetaTrader 5 that shows the difference between buy and sell volume (Delta Volume) and cumulative delta. Helps to see who dominates the market — buyers or sellers — and to find hidden divergences between price and volume. What the indicator shows Buy Volume (blue bars) — estimated buy volume per bar Sell Volume (orange bars) — estimated sell volume Delta (histogram) — Buy − Sell. Green = buyers dominate, red = sellers C
MTF DashboardX MTF DashboardX is a professional scanner panel for MetaTrader 5 that shows market structure state across multiple symbols and timeframes in one window. Automatically detects BOS (Break of Structure) and CHoCH (Change of Character) signals so you don't miss important events and don't waste time switching between charts. Built by a trader with 12 years of live experience. Helps see the whole market picture at a glance. What the indicator shows Table panel with rows (symbols) and
VolatilityProX for MetaTrader 4 VolatilityProX is a professional indicator for MetaTrader 4 that combines three tools in one: Adaptive Supertrend — adaptive trend line Daily Range — yesterday's High/Low Pivot Points — classic R1, R2, S1, S2 levels Built by a trader with 12 years of live experience. Helps identify trend, key levels, and entry points — all in one window. What the indicator shows 1. Adaptive Supertrend Green line in uptrend, red in downtrend. Key difference from standard Supertr
Risk Manager Panel for MetaTrader 4 Risk Manager Panel is a professional trading panel for MetaTrader 4 that automatically calculates lot size based on risk and manages trades in one click. No more manual lot calculation — the panel does it for you. What the panel does 1. Automatic lot calculation Set risk as % of balance (or fixed $) — panel calculates position size for specified SL. Accounts for tick value and broker lot step. 2. Editable fields On the panel you can change: Lot Stop Loss (p
Divergence Indicator Pro X Divergence Indicator Pro X is a professional divergence indicator for MetaTrader 4 that automatically detects divergences between price and oscillator right on the chart. Full MT5-version functionality, adapted for MQL4. Works on any instrument and timeframe, no repaint. What the indicator shows 1. Regular Divergence — classic reversal signal: Bullish regular — price makes Lower Low, oscillator — Higher Low. Possible reversal up. Bearish regular — price makes
Professional VolumeProfile v1.0 A professional Volume Profile indicator for MetaTrader 5. Builds a horizontal histogram of volume distribution by price levels and identifies key zones of institutional interest. Created by a practicing trader with 12 years of real-account experience . Understands trader's logic, not just programming. What the indicator shows Volume Histogram — trading volume distribution across price levels POC (Point of Control) — the price level with maximum volume VAH (V
Liquidity + Volume Pro (MT5) Liquidity + Volume Pro is a professional MetaTrader 5 indicator that combines liquidity analysis with volume filtering into a single trading system. It detects sweeps of key levels, filters them by volume, scores signal strength on a 100-point scale, and automatically builds Support/Resistance levels. Built by a trader with 12 years of live experience. Helps separate false breakouts from true ones, find Smart Money entry points, and see the real market picture wit
SM Structure
Musa Khunarikov
SM Structure SM Structure is a professional indicator for MetaTrader 5 that automatically identifies market structure using Smart Money Concepts (SMC) and ICT methodology. It detects BOS (Break of Structure), CHoCH (Change of Character), Order Blocks, Fair Value Gaps (FVG) and Premium/Discount zones — all in one tool. Built by a trader with 12 years of live experience. Helps see market structure the way institutional players see it, and find entries in the direction of "smart money". What the
Retail Sentiment MT5 Retail Sentiment is a professional information indicator for MetaTrader 5 that displays retail trader sentiment based on MyFxBook Community Outlook. The panel shows the ratio of long vs short positions for the selected instrument in real time. Built by a trader with 12 years of live experience. Helps use a contrarian approach — when most retail traders are long, institutional players often go against them. What it shows Compact panel in chart corner: LONG XX% — blue bar
FREE
Professional Delta Volume is a professional indicator MetaTrader 5 that shows the difference between buy and sell volume (Delta Volume) and cumulative delta. Helps to see who dominates the market — buyers or sellers — and to find hidden divergences between price and volume. What the indicator shows Buy Volume (blue bars) — estimated buy volume per bar Sell Volume (orange bars) — estimated sell volume Delta (histogram) — Buy − Sell. Green = buyers dominate, red = sellers Cumulative Delta (gold
MTFDashboard
Musa Khunarikov
MTF Dashboard is a professional scanner panel for MetaTrader 5 that shows market structure state across multiple symbols and timeframes in one window. Automatically detects BOS (Break of Structure) and CHoCH (Change of Character) signals so you don't miss important events and don't waste time switching between charts. Built by a trader with 12 years of live experience. Helps see the whole market picture at a glance. What the indicator shows Table panel with rows (symbols) and columns (timefra
VolatilityPro for MetaTrader 5 VolatilityPro is a professional indicator for MetaTrader 5 that combines three tools in one: Adaptive Supertrend — adaptive trend line Daily Range — yesterday's High/Low Pivot Points — classic R1, R2, S1, S2 levels Built by a trader with 12 years of live experience. Helps identify trend, key levels, and entry points — all in one window. What the indicator shows 1. Adaptive Supertrend Green line in uptrend, red in downtrend. Key difference from standard Supertren
Risk Manager PanelX for MetaTrader 5 Risk Manager PanelX is a professional trading panel for MetaTrader 5 that automatically calculates lot size based on risk and manages trades in one click. No more manual lot calculation or opening trades through the terminal menu. The panel does it for you — fast, accurate, and error-protected. What the panel does 1. Automatic lot calculation Set risk as % of balance (or a fixed $ amount) — the panel calculates position size for the specified Stop Loss. Ac
Filtro:
Sem comentários
Responder ao comentário