Request A Free Quote
MetaTrader 4

MT4 MACD Divergence Indicator (Scanner)

MT4 MACD Divergence Indicator identifies discrepancies between price movement direction and MACD oscillator direction — a market condition where price and the indicator move in opposite directions. The indicator detects classic and hidden divergences across all specified assets and timeframes, with configurable alerts and a multi-asset dashboard.

MT4 MACD Divergence indicator scanner MT4 MACD Divergence indicator dashboard MT4 MACD Divergence Indicator (Scanner) MACD Divergence indicator input parametr
5-Day Free Trial Cancel Anytime Continuous Product Updates Mon-Fri Free Support
Lifetime License
€120one-time
This indicator only · 1 PC · No recurring payments · Free updates included
Start Free Trial — 5 Days Free
Try all indicators & trade copiers free. If you don’t cancel within 5 days, a €25/mo subscription starts automatically.

Already a subscriber or have purchased a product?

Overview

What the MACD Divergence Indicator (Scanner) Does

MT4 MACD Divergence Indicator (Scanner) is a technical analysis tool that automatically monitors all specified assets and timeframes to detect classic and hidden divergences between price and the MACD indicator.

Divergence is one of the most widely referenced concepts in technical analysis. It occurs when price movement and MACD movement diverge in direction — a condition that analysts use to evaluate potential shifts in trend momentum or structure.

We have designed this indicator as a dashboard so that you can view the most recent divergences across the assets and timeframes you want to monitor. This approach provides a structured overview of the market at a glance, identifying instruments and timeframes where divergence conditions have recently formed. Clicking on any cell in the dashboard updates the chart to the corresponding instrument and timeframe directly.

You can configure an alert that will notify you when a divergence condition is registered — without continuous manual monitoring.

How to Use

How to Interpret and Use the MACD Divergence Indicator

Divergence is a discrepancy between what the price chart shows and the direction of the MACD indicator line. The indicator evaluates these discrepancies to identify potential momentum shifts in trend structure.

Traders use divergence to evaluate potential price reversal conditions within a broader analytical framework.

Divergences are divided into two types — bullish and bearish.

Bearish Divergence

Bearish divergence is registered when price forms a sequence of higher highs in an uptrend, while the MACD does not follow that trend and forms a descending pattern.

When price rises and the MACD value falls, this registers a bearish divergence condition — reflecting a potential weakening of upward momentum. The indicator displays a red line connecting the relevant price and MACD peaks, and a red directional marker indicating the bearish context.

Bullish Divergence

Bullish divergence is registered when price forms a sequence of lower lows in a downtrend, while the MACD does not confirm this by forming an ascending pattern.

When price falls and the MACD rises, this registers a bullish divergence condition — reflecting a potential shift in downward momentum. The indicator displays a green line connecting the relevant price and MACD troughs, and a green directional marker indicating the bullish context.

Classic and Hidden Divergence

The indicator detects two types of divergences: classic and hidden. Classic divergence is displayed as a continuous line; hidden divergence is displayed as a dashed line.

Please note that since divergences are identified using formed indicator vertices, the directional marker will appear 2 bars back. A formed vertex is defined as follows:

  • A peak has 2 lower highs to the left and right of its value.
  • A trough has 2 higher lows to the left and right of its value.

Indicator Limitations — MACD divergence detection is based on historical price and oscillator data. Registered divergence conditions do not predict future price movement and do not guarantee that a trend reversal or continuation will follow. The presence of a divergence condition reflects a mathematical discrepancy between price and the MACD — it should be evaluated within a broader analytical framework that considers overall market structure and context.

Multi-Asset Monitoring with the Dashboard

The dashboard provides a structured overview of MACD divergence conditions identified across the selected assets and timeframes.

Each asset/timeframe cell displays the most recently detected divergence on that chart. The cell color indicates the directional context — bullish or bearish — with color saturation decreasing as the number of bars since the last detected condition increases. This allows you to prioritize charts where divergence conditions are most recent.

Clicking on any cell updates the chart to the asset and timeframe of the selected cell.

Settings

Indicator Settings & Parameters

The input parameters of the indicator are shown below.

ParameterDescription
Scanner & Divergence
Assets and timeframesSelect the instruments and timeframes to monitor.
max_barsLimits the number of bars included in calculations to improve indicator performance. Adjust this parameter if you do not require divergence detection far back in the historical data.
Classic / Hidden divergence displayConfigurable separately, allowing you to display one or both divergence types on the chart and dashboard.
Requirements & Installation

System Requirements & Installation

What you need to run the indicator, how to download and install it in MetaTrader 4, and how the license works.

System Requirements

Platform
MetaTrader 4 (Desktop)
Operating system
Windows 10 or Windows 11
Instruments
Forex pairs, metals, indices, CFDs and other symbols available from your broker in MetaTrader 4
Data
Your broker’s price feed in MetaTrader 4

Not available on MetaTrader 4 Web or Mobile. Custom indicators run in the MetaTrader 4 desktop terminal only.

License Terms

Lifetime License
This indicator only, 1 live and 1 demo account, one-time payment, free updates included.
All-Access Subscription
All indicators and trade copiers, billed monthly, cancel anytime, updates included while the subscription is active.
Free trial
5 days on the subscription plan. If not cancelled, the subscription starts automatically.
License binding
Linked to your email and to your MetaTrader 4 trading accounts: one live account and one demo account.
Computers
Not restricted. The license is linked to your trading accounts, not to a specific computer.

Installation

  1. Get access

    Start the free trial, subscribe, or buy a lifetime license on this page.

  2. Download

    The indicator is not sent by email. Open (top right of this page) and enter the email you used for your trial, subscription or purchase. The indicator file (.ex4) downloads to your computer.

  3. Copy to the MetaTrader 4 data folder

    In MetaTrader 4, go to File → Open Data Folder, open MQL4 → Indicators and copy the downloaded .ex4 file there.

  4. Add to a chart

    Restart MetaTrader 4 or right-click Indicators in the Navigator window and select Refresh. Then drag the indicator from the Navigator onto a chart.

  5. Activate the license

    In the indicator inputs, enter the same email. On first activation, the license is linked to that email and to the trading account the terminal is logged into.

    If MetaTrader 4 asks for additional permissions when the indicator is attached, such as DLL imports or WebRequest access, allow them in the indicator’s Common tab or under Tools → Options → Expert Advisors.

Updating: When a new version is released, download it again through and replace the existing .ex4 file in the same folder.

Installation questions? Contact support, Monday to Friday.

Developed by Nordman Algorithms

Developed, tested, documented, and maintained by our algorithmic trading software development team.

Meet the Team →
We Value Your Feedback Help us make it better

If you’ve spotted a bug, feel something essential is missing, or have ideas that could make this indicator better — we want to hear it.
Your feedback directly shapes future updates.

Send Feedback →
Custom Programming

Need a different setup?

We can customize this indicator to your requirements: add new features, change the calculation logic, or combine several tools into a single solution. We also build Expert Advisors on your own logic, with configurable modules such as dynamic risk parameters, multi-stage trailing stops and additional confirmation filters.

Every project is delivered with full source code and post-delivery support. Fixed-price quote before development begins.

Custom Logic Expert Advisor Development Risk & Trailing-Stop Modules Full Source Code