i Short answer

MACD, short for Moving Average Convergence Divergence, is a momentum indicator built from two exponential moving averages. The MACD line is the 12-period EMA minus the 26-period EMA, the signal line is a 9-period EMA of the MACD line, and the histogram is the gap between them. When the MACD line crosses above the signal line, momentum is turning up; when it crosses below, it is turning down. Because it is built from averages, MACD confirms a move after it has started rather than predicting it. A more complex all-in-one indicator is covered in the Ichimoku cloud. Volume-weighted price is a different reference, calculated with the VWAP calculator.

The risk-reward ratio calculator checks whether a MACD trade’s stop and target make sense before you enter.

1. What are the three parts of MACD?

The MACD line measures how far the faster average has moved from the slower one. The signal line smooths the MACD line. The histogram shows the difference between the two, growing as momentum builds and shrinking as it fades. Exponential averages give more weight to recent prices, as explained in leading versus lagging indicators.

Assumptions (hypothetical example): daily USD/ZAR chart; values read from the chart at one close.

Reading MACD values at one close
PartWorkingValue
12-day EMAFrom the chart16.6200
26-day EMAFrom the chart16.5500
MACD line16.6200 − 16.55000.0700
Signal line (9-day EMA of MACD)From the chart0.0500
Histogram0.0700 − 0.0500+0.0200

A positive MACD line means the short-term average is above the long-term one; a positive histogram means that gap is widening.

2. What does a MACD crossover signal?

A cross of the MACD line above the signal line suggests rising momentum, and a cross below suggests falling momentum. A cross of the MACD line through zero means the 12- and 26-period averages have crossed, the same event as a moving-average crossover, covered in golden and death crosses. Crossovers in a sideways market produce many false signals, so traders often take them only in the direction of the larger trend.

At a glance: What Is MACD and How Do Traders Use It?
At a glance: What Is MACD and How Do Traders Use It?

⬇ Download this summary (PNG) · Free to share with the credit “Source: TradeAnswers” (CC BY 4.0).

3. How might a MACD trade work? A worked example

Assumptions (hypothetical example): daily USD/ZAR in an uptrend; MACD crosses above its signal line below zero after a pullback; buy 0.2 lots (R2 a pip) at 16.4500; stop below the pullback low at 16.3000; exit when MACD crosses back below the signal line, which happens at 16.7000.

A MACD crossover trade on 0.2 lots
PriceDistanceResult
Entry16.4500
Stop (not hit)16.30001,500 pipsRisk −R3,000
Exit on the opposite crossover16.70002,500 pips+R5,000

The exit came well after the top of the move, because the averages had to turn before the signal line was crossed. That lag cuts both the false signals and part of every winning move.

12 / 26 / 9standard periods
0.0700MACD line in the example
+0.0200histogram in the example
+R5,000result of the example trade

4. What is MACD divergence?

Divergence is when price makes a new high but MACD makes a lower high, or price makes a new low and MACD a higher low. It shows momentum fading behind the move. Divergence can last through several more highs before price turns, so it is a warning to tighten stops or take partial profit, not an entry signal on its own. The same idea applied to other indicators is covered in what is divergence. How to decide when to leave a winning trade is covered in exiting a winning trade early.

5. How does MACD compare with RSI?

Both measure momentum. RSI is bounded between 0 and 100 and is often used to judge overbought and oversold conditions, as covered in what is RSI. MACD has no fixed range, so it cannot say a market is overbought; it is better at showing whether momentum is building or fading in a trend. Using both adds little, because they are built from the same prices.

6. Should you change the settings or the timeframe?

The 12, 26 and 9 settings date from daily charts and remain the default. Shorter settings react faster and give more false signals; longer ones lag more. On five-minute charts MACD reacts to noise, and on daily and weekly charts it filters more of it. Checking the higher timeframe before acting on a lower one is covered in using multiple timeframes. Any setting should be tested on past data before use (CME Group, technical analysis course).

Using MACD sensibly
  • Trade crossovers in the direction of the larger trend
  • Treat divergence as a warning, not an entry
  • Place the stop at a price level, not on the indicator
  • Expect late exits and accept them
  • Test any change of settings before trading it

One step of the calculation

MACD was developed by Gerald Appel in the late 1970s. It uses exponential moving averages, where each new value is the previous value plus a weight times the difference between the new close and the previous value; the weight is 2 ÷ (periods + 1): 0.1538 for 12, 0.0741 for 26 and 0.2 for 9.

Worked example (hypothetical): yesterday’s 12-period EMA was 100.00 and the 26-period EMA 99.00; today’s close is 102.00. The 12-period EMA becomes 100.00 + 0.1538 × 2.00 = 100.31, and the 26-period EMA becomes 99.00 + 0.0741 × 3.00 = 99.22. MACD is 100.31 − 99.22 = 1.09. If yesterday’s signal line was 0.90, today’s is 0.90 + 0.2 × (1.09 − 0.90) = 0.94, and the histogram is 1.09 − 0.94 = 0.15. Platforms start the averages differently, so values can differ slightly between them.

★ Why It Matters

MACD is a moving-average tool, so it trades a later entry and a later exit for fewer false signals. Used to confirm a trend you can already see on the chart, it helps; used as the reason to enter, it mostly reacts to moves that have already happened.

✕ Common mistakes

  • Taking every crossover in a sideways market. Ranges produce repeated false signals.
  • Treating divergence as an entry signal. It can persist through several more highs or lows.
  • Using MACD as an overbought or oversold gauge. It has no fixed upper or lower bound.
  • Changing settings until past results look good. That fits the past, not the future.

Key Takeaways

  1. Test default settings on your instrument before changing them.
  2. Use MACD signals in the direction of the higher-timeframe trend.
  3. Note crossovers that fail in your journal.
  4. Avoid stacking MACD with similar momentum tools.
Share this answer:LinkedInXEmail

Frequently asked follow-up questions

What does MACD stand for?

Moving Average Convergence Divergence: it tracks how two exponential moving averages move together and apart.

What are the standard MACD settings?

12 and 26 periods for the two averages and 9 for the signal line.

Is MACD a leading or lagging indicator?

Lagging. It is built from moving averages, so it confirms moves after they start.

What is a MACD histogram?

The difference between the MACD line and the signal line; it grows as momentum builds and shrinks as it fades.

Does MACD work on forex?

It works on any traded price, including currency pairs, with the same strengths and the same lag.