Glossary term

MACD (moving average convergence divergence)

An indicator built from the gap between a faster and a slower moving average of price, commonly 12 and 26 periods, plus a smoothed signal line. Traders read the gap and its crossovers as a gauge of whether momentum is building or fading.

7 min read

What MACD means

MACD stands for moving average convergence divergence. It is a momentum indicator that measures the distance between two exponential moving averages of price and shows how that distance changes over time. It was developed by Gerald Appel in the late 1970s and is now a standard tool on nearly every charting platform.

The indicator is made of three parts, usually drawn in a separate panel below the price chart. The MACD line is the difference between a faster and a slower exponential moving average. The signal line is a smoothed average of the MACD line. The histogram shows the gap between the MACD line and the signal line as bars. Together they describe whether recent price changes are speeding up, slowing down or reversing in direction relative to the longer trend.

MACD is used by swing traders, position traders and some day traders in forex, shares, indices and crypto. It is descriptive: it summarises what price has already done. It is not a forecast and not a trading signal on its own.

How it works

The standard settings are 12, 26 and 9. The calculation, in words:

  1. Calculate a 12-period exponential moving average (EMA) of the closing price. This is the fast line, which reacts quickly.
  2. Calculate a 26-period EMA of the closing price. This is the slow line, which reacts more gradually.
  3. Subtract the slow EMA from the fast EMA. The result is the MACD line.
  4. Calculate a 9-period EMA of the MACD line. This is the signal line.
  5. Subtract the signal line from the MACD line. The result is the histogram.

An exponential moving average weights recent prices more heavily than older ones, so it responds faster than a simple average. When the fast EMA is above the slow EMA, the MACD line is positive. When it is below, the line is negative. The zero line therefore marks the point where the two averages cross on the price chart.

The word convergence refers to the averages moving toward each other and the MACD line shrinking toward zero. Divergence refers to them moving apart and the line growing. The periods can be adjusted: shorter settings react faster but produce more false turns, while longer settings are smoother and slower.

A worked example

The numbers are illustrative only. Suppose on a daily chart of a stock, the closing-price EMAs on a given day are 52.40 for 12 periods and 51.90 for 26 periods.

  1. MACD line = 52.40 minus 51.90 = 0.50.
  2. Suppose the 9-period EMA of the MACD line, the signal line, is 0.35.
  3. Histogram = 0.50 minus 0.35 = 0.15, which is positive.

The next day the stock rises less. The fast EMA is now 52.55 and the slow EMA is 52.10.

  1. New MACD line = 52.55 minus 52.10 = 0.45. It has fallen from 0.50 even though price is higher.
  2. The signal line moves to about 0.37 (its smoothing makes it change slowly).
  3. New histogram = 0.45 minus 0.37 = 0.08, which is smaller.

The shrinking histogram says upward momentum is cooling, even though the price is still above the average. A crossover would happen if the MACD line drops below the signal line, making the histogram negative. A trader reading this would note that momentum is fading, and then look at other evidence such as price structure, volume and the broader trend, instead of acting on this alone.

Why it matters

MACD combines trend and momentum in one display, helping traders see whether a move has force behind it. It filters some noise compared with raw price, and the zero line and crossovers offer a consistent reference. Because the same formula is used by many participants, MACD levels are widely watched, although that does not give it predictive power.

For risk management, a clear view of momentum can help decide when to be cautious, for example when price makes a new high but the indicator does not. It also helps avoid trading against a strong move. As with every indicator, its usefulness depends on the market: it tends to work better in trending conditions than in sideways ranges.

How to use it in practice

  • Keep the default 12, 26, 9 settings unless you have tested alternatives on historical data.
  • Read the zero line for bias: above zero means the fast average is above the slow one, below zero means the opposite.
  • Watch crossovers of the MACD and signal lines as a sign of momentum change, not a command.
  • Watch the histogram: shrinking bars suggest fading momentum, growing bars suggest strengthening.
  • Compare price highs and lows with MACD highs and lows to spot divergence.
  • Check higher time frames to see whether the signal agrees with the larger trend.
  • Test any rule on a demo account first and include spread and slippage in your assessment.

Common mistakes and misconceptions

  • Treating a crossover as a buy or sell instruction. Crossovers often occur in sideways markets and give false turns.
  • Expecting MACD to lead price. It is built from moving averages, so it lags.
  • Using it in tight ranges, where lines cross repeatedly.
  • Ignoring the scale. MACD values depend on the instrument's price level, so levels cannot be compared across assets.
  • Optimising settings until they fit the past, which tends to fail in live markets.
  • Relying on divergence alone. Price can continue in the same direction for a long time.

Risks and limitations

MACD is a lagging indicator, so signals often arrive after a move has begun. It generates many false crossovers in choppy markets and can miss sudden reversals driven by news. It is calculated from closing prices and ignores volume and fundamentals. Results depend on time frame and settings. Leveraged trading on any indicator carries a high risk of loss, and nothing here is a recommendation.

How Brokeli looks at it

We do not rate brokers on whether they have MACD, since it is available almost everywhere. What we check is whether platforms offer editable parameters, multiple time frames and consistent data, as these affect how reliable indicator readings are. We note platform and charting features in published research snapshots and treat technical indicators as educational tools, not signals.

Frequently asked questions

What are the standard MACD settings?

The standard settings are 12, 26 and 9. The MACD line is the 12-period EMA minus the 26-period EMA of the close, and the signal line is a 9-period EMA of the MACD line. The histogram shows the difference between the two lines.

What does a MACD crossover mean?

A crossover occurs when the MACD line crosses the signal line. A cross upward suggests momentum is turning more positive, and a cross downward suggests the opposite. It is a description of recent momentum, not a prediction, and it often gives false turns in sideways markets.

What does the MACD histogram show?

The histogram is the gap between the MACD line and the signal line. Taller bars mean the gap is widening and momentum is strengthening in that direction. Shrinking bars show momentum fading, often before an actual crossover takes place.

Is MACD a leading or lagging indicator?

MACD is lagging because it is derived from moving averages of past prices. The histogram can turn slightly earlier than the lines, but it still reflects what price has already done. It should be combined with other analysis and risk controls.

What is MACD divergence?

Divergence happens when price makes a new high or low but MACD does not confirm it. It can suggest weakening momentum, but it is not a reliable timing tool because price can continue trending while the divergence persists for a long time.

MACD (moving average convergence divergence) — Brokeli glossary · Brokeli