Skip to main content

MACD Indicator: How It Works, Signals and Limits (2026)

The MACD indicator explained: the 12, 26, 9 formula, signal line and zero line crossovers, divergence, where each signal fails, and how to test a rule.

Founder of IImagined.ai

Published
Jan 20, 2026
Updated
Oct 13, 2026
Reading time
9 min read
Quick answer

The MACD indicator is the 12-period exponential moving average of price minus the 26-period one, plotted with a 9-period average of itself called the signal line and a histogram of the gap between them. It shows the direction and strength of momentum after the fact. Crossovers and divergences are its three signals, and each one fails in a known way: whipsaws in ranges and false warnings in strong trends. Educational only; trading futures involves substantial risk of loss.

The MACD indicator (moving average convergence divergence) is the 12-period exponential moving average of price minus the 26-period one, plotted with a 9-period average of itself called the signal line. It shows whether momentum is rising or falling, after the fact, and its crossovers and divergences describe what price has already done; they do not predict what it does next.

This guide is educational only and is not personal advice. Trading futures involves substantial risk of loss and is not suitable for everyone, and no indicator changes that. Definitions and chart examples come from StockCharts ChartSchool, TradingView, Fidelity and CME Group, all read on 13 October 2026. Number examples are hypothetical.

Quick answer

MACD in six lines
  • MACD line: 12-period EMA minus 26-period EMA.
  • Signal line: a 9-period EMA of the MACD line. Histogram: the gap between the two.
  • Three signals: signal line crossovers, zero line crossovers and divergences.
  • It lags, because every part is an average of past closing prices.
  • It whipsaws in sideways markets and gives early reversal warnings in strong trends.
  • It has no upper or lower limit, so it is a poor overbought or oversold gauge.

What is the MACD indicator?

StockCharts credits the indicator to Gerald Appel "in the late seventies" and describes what it does in one sentence: it "turns two trend-following indicators, moving averages, into a momentum oscillator by subtracting the longer moving average from the shorter one" (ChartSchool). TradingView's documentation adds that Thomas Aspray added the histogram in 1986 (TradingView).

CME Group puts the purpose plainly: "Unlike other indicators that show the direction of price, the MACD shows the direction of the momentum of the trend" (CME Group). Convergence means the two averages are moving toward each other; divergence means they are moving apart.

How MACD is calculated

PartFormulaWhat it shows
MACD line12-period EMA minus 26-period EMAWhether the faster average is above or below the slower one, and by how much
Signal line9-period EMA of the MACD lineA smoothed version of the MACD line that trails it
HistogramMACD line minus signal lineHow far the MACD line is from its signal line, and whether the gap is growing
Zero lineThe level where the two EMAs are equalAbove zero the 12-period EMA is above the 26-period EMA

Closing prices are used for the averages. An exponential moving average gives recent prices more weight than a simple average does. CME's lesson on moving averages gives the multiplier as 2 divided by (1 + the number of periods), so it is about 0.154 for 12 periods, 0.074 for 26 and 0.2 for 9 (CME Group). Each new EMA value is today's price times the multiplier, plus yesterday's EMA times one minus the multiplier.

A hypothetical reading, step by step
  1. 1
    12-period EMA: 7,862.00

    The faster average of recent closes.

  2. 2
    26-period EMA: 7,850.00

    The slower average.

  3. 3
    MACD line: +12.00

    7,862.00 minus 7,850.00. Positive, so the fast average is above the slow one.

  4. 4
    Signal line: +9.50

    The 9-period EMA of recent MACD values.

  5. 5
    Histogram: +2.50

    12.00 minus 9.50. Positive, so the MACD line is above its signal line.

Invented numbers to show the arithmetic. They describe no real chart.

One consequence of the formula matters on futures: MACD is measured in price points, not percent. A reading of +12 on a contract trading near 7,860 is not comparable with +12 on one trading near 80, and StockCharts notes that MACD values depend on the price of the underlying.

The three MACD signals, and where each fails

SignalWhat happensWhat the source material shows
Signal line crossoverMACD line crosses above or below its signal lineThe most common signal. StockCharts shows a stock with eight of them in six months, some followed by a move and some not
Centerline crossoverMACD line crosses zero, so the 12-period EMA has crossed the 26-period EMAWorks when a strong trend follows. StockCharts shows seven crossovers in five months on one stock, with numerous whipsaws
DivergencePrice makes a new extreme and the MACD line does notCommonplace in strong trends. StockCharts shows four bearish divergences on an S&P 500 ETF that kept rising

All three examples are from ChartSchool, which says of crossovers that "due diligence is required before relying on these common signals", and of divergences that they "should be taken with caution. Bearish divergences are commonplace in a strong uptrend, while bullish divergences occur often in a strong downtrend."

Fidelity describes the other failure: "During trading ranges the MACD will whipsaw, with the fast line crossing back and forth across the signal line", and users "generally avoid trading in this situation" (Fidelity). Put together, a MACD rule needs a way to tell a trend from a range before it means anything, which is the context step in our ES trading strategy guide.

The MACD histogram

The histogram plots the distance between the MACD line and its signal line. It is positive when MACD is above the signal line and it crosses zero at the moment of a signal line crossover, so a shrinking histogram is the first sign that a crossover is approaching. StockCharts says Aspray developed it "to anticipate signal line crossovers" and adds a caution worth keeping: the histogram is "an indicator of an indicator", four steps removed from price (ChartSchool).

MACD settings

StockCharts calls 12, 26 and 9 "the typical settings" and notes that other values can be substituted. Its example is that MACD(5,35,5) is more sensitive than MACD(12,26,9). On TradingView the inputs are the source, fast length, slow length and signal length, and you can switch either average between EMA and SMA (TradingView).

What changing the lengths does
Shorter lengths
  • Reacts sooner to a turn in price
  • More crossovers
  • More whipsaws in a range
Longer lengths
  • Reacts later
  • Fewer crossovers
  • Slower to register a real change

In our view, searching for the setting that would have traded best on past data is the quickest way to fool yourself. A setting chosen after seeing the chart will look good on that chart.

What MACD cannot tell you

  • It lags. CME describes oscillators as "always a step behind what the market is doing".
  • It has no limits. StockCharts says MACD "is not particularly good for identifying overbought and oversold levels" because nothing binds its movement. CME's lesson, by contrast, says traders read a MACD line above zero as overbought. The sources disagree, which is itself a reason not to lean on that reading.
  • It says nothing about size or risk. A crossover does not tell you where the idea is wrong or how much to lose if it is.
  • It needs confirmation. CME notes that oscillator signals are mostly "confirmed with increasing volume and ignored with decreasing volume", and that they "should be used in conjunction with other information".

Turning MACD into a rule you can test

A signal is not a strategy. Our Futures Trading course, a bonus in All Access, treats any setup as five written parts (lesson 4.5, the trade checklist), and a MACD rule fits the same frame. This is a template to test in simulation, not a recommendation.

A MACD rule as five written parts
  1. 01
    Context

    How you decide the market is trending, not ranging

  2. 02
    Trigger

    For example, a signal line crossover in the trend direction

  3. 03
    Invalidation

    A price level, not an indicator reading

  4. 04
    Size

    Dollar risk divided by stop distance

  5. 05
    Exit

    Written before entry

The size step is arithmetic. On the E-mini S&P 500 one point is $50 and on the Micro it is $5 (CME Group), so a hypothetical 6-point stop risks $300 on one ES and $30 on one MES. The free ES futures calculator does that sum, and the win rate and expectancy calculator shows what a logged set of trades is worth once average win, average loss and costs are in.

The rule text is at 17 CFR 4.41, and the CFTC warns that many individuals who trade futures lose all of their money.

MACD vs RSI

MACD is unbounded and measured in price points. RSI compares average gains with average losses and always sits between 0 and 100, which is why CME describes readings over 70 as overbought and under 30 as oversold. The two answer different questions, and neither is a signal on its own. Our RSI guide covers the calculation and its limits in the same way.

Common MACD mistakes

  • Taking every crossover, including the ones inside a sideways range.
  • Treating a divergence as a reversal signal in a strong trend.
  • Comparing MACD values across instruments with different prices.
  • Tuning the settings to past data and trusting the result.
  • Entering on an indicator with no price-based stop and no size rule.

New to the contracts these charts are drawn on? Read futures trading for beginners and how to trade emini futures. For volume-based tools see the order flow guide, for the discipline side futures trading psychology, and for everything else the trading library.

MACD indicator: FAQ

What is the MACD indicator?

MACD, moving average convergence divergence, is a momentum indicator built from two exponential moving averages of price. The MACD line is the 12-period EMA minus the 26-period EMA, the signal line is a 9-period EMA of that line, and the histogram is the gap between them. Gerald Appel developed it in the late 1970s.

What do the MACD settings 12, 26 and 9 mean?

They are the lengths of the three moving averages: a 12-period fast EMA, a 26-period slow EMA and a 9-period EMA of the MACD line for the signal. StockCharts calls them the typical settings and notes other values can be substituted. Shorter lengths react faster and produce more crossovers; longer ones produce fewer.

What is a MACD crossover?

There are two. A signal line crossover is the MACD line crossing its 9-period signal line. A centerline crossover is the MACD line crossing zero, which means the 12-period EMA has crossed the 26-period EMA. Both describe a change in momentum that has already happened, and both whipsaw when price moves sideways.

What is MACD divergence?

A divergence forms when price and the MACD line disagree: price makes a lower low while MACD makes a higher low, or price makes a higher high while MACD makes a lower high. StockCharts warns that divergences should be taken with caution, because bearish divergences are commonplace in a strong uptrend.

Is MACD a leading or lagging indicator?

Lagging. It is calculated from moving averages of past closing prices, so it turns after price does. CME Group's education material describes oscillators such as MACD as always a step behind the market. The histogram reacts sooner than the lines, but it is still derived from the same past prices.

Does MACD work on futures such as ES?

It can be plotted on any chart, including E-mini S&P 500 futures, and the calculation is the same. Whether a rule built on it has an edge is a separate question that only testing with costs can answer. Nothing about the indicator removes the leverage risk of a futures contract.

What is the difference between MACD and RSI?

MACD is the difference between two moving averages, so it has no upper or lower limit and is measured in price points. RSI compares average gains with average losses and always sits between 0 and 100, which is why it is used for overbought and oversold readings. Many traders watch MACD for trend and momentum and RSI for extremes.

Free · no card needed

Start with the free Starter Kit.

A position size calculator from Futures Trading, plus four more working files.

Starter Kit5 files · free
See All Access: $99/mo →30-day money-back guarantee