CFDs and forex are complex instruments and come with a high risk of losing money rapidly due to leverage. Risk disclosure

MACD Indicator Explained

This page explains how MACD is built, how to set it up in MetaTrader, how to read its lines and histogram, and where it tends to mislead.

Extrade Pakistan editorial team ·

On this page
  1. What is MACD
  2. The formula
  3. MACD settings
  4. How to add MACD in MT4 and MT5
  5. How to read MACD: a drawn example
  6. Typical uses in a MACD strategy
  7. Where MACD misleads
  8. Frequent questions

What is MACD

MACD stands for Moving Average Convergence Divergence. It is a momentum indicator drawn in a separate window below the price chart. It compares a fast exponential moving average (EMA) with a slow EMA and shows how far apart they are.

An EMA is an average of recent prices that gives more weight to the latest candles. For the basics, see the EMA indicator page.

MACD is built from moving averages, so it is a lagging indicator. It describes what price has already done. It does not predict what price will do. See leading vs lagging indicators.

0MACD 12, 26, 9
MACD: the MACD line, its signal line and the histogram (their difference). Circles mark crossovers. Illustrative example: made-up numbers for learning, not real prices or a broker's conditions.

The formula

MACD has three parts:

Component Calculation What it shows
MACD line Fast EMA of price minus slow EMA of price Distance between short-term and longer-term average
Signal line Average of the MACD line over the signal period A smoothed version of the MACD line
Histogram MACD line minus signal line Whether the MACD line is speeding up or slowing down relative to its own average

The centre line is where the fast and slow EMAs are equal. Above it, the fast EMA is higher than the slow EMA. Below it, the fast EMA is lower.

MACD values are in price units, not a fixed scale. A reading on a currency pair cannot be compared directly with a reading on gold or an index. This is one reason MACD has no universal "overbought" or "oversold" level, unlike the RSI indicator.

MACD settings

MACD has three inputs: a fast EMA period, a slow EMA period and a signal period. Every platform loads a standard default set that comes from the indicator's original design. You can see these values in the settings window when you add MACD to a chart.

How changing them affects the indicator:

Changing the settings does not make MACD more accurate. It only trades speed against noise. If you fit the periods so they look perfect on past charts, they will usually perform worse on new data. Keeping the defaults has one practical benefit: your readings match what most other chart users see.

How to add MACD in MT4 and MT5

In both MetaTrader 4 and MetaTrader 5:

  1. Open a chart.
  2. Go to Insert → Indicators → Oscillators → MACD, or find it in the Navigator window and drag it onto the chart.
  3. In the settings window, check the Fast EMA, Slow EMA and signal (MACD SMA) fields, and choose which price to apply it to.
  4. Click OK. MACD appears in a sub-window below the chart.

Two details are specific to MetaTrader's built-in version:

If you want the classic three-part layout, it is available as a custom indicator. Only install custom indicators from sources you trust. The MetaTrader platforms page covers how the platforms work in general.

How to read MACD: a drawn example

The sketch below is a made-up example. It is not a real market.

Here is what each part shows:

Typical uses in a MACD strategy

Traders usually treat MACD as one input among several:

None of these is a complete system. Test any idea on a demo account and against your own risk management rules first.

Where MACD misleads

Leveraged forex and CFD trading can lose money fast. No indicator setting removes that risk.

Frequent questions

What is MACD in simple words?

It shows the gap between a fast and a slow moving average of price. The gap tells you whether recent momentum is rising or falling.

What are the best MACD settings?

No setting is best. The defaults are the most widely used. Shorter periods react faster but give more noise, and longer periods are smoother but slower.

Why does MACD look different in MetaTrader?

MetaTrader draws the MACD line as bars and uses a simple moving average for the signal line. Many other tools draw a line plus a separate histogram and use an exponential signal.

Is MACD a leading indicator?

No. It is built from moving averages, so it lags price.

Can MACD be used alone?

It is usually combined with price structure, levels and risk rules. On its own, it gives frequent misleading readings in sideways markets.

Related pages