AI trading offer: 20% off all challenges · Limited time only

MACD Indicator: How to Read Crossovers, the Histogram and Divergence

MACD indicator explained: the 12/26/9 formula, signal-line and zero-line crossovers, the histogram, divergence, best settings and how to avoid whipsaws.

Vittorio De Angelis•Oct 9, 2026•12 min read
Share article
MACD Indicator: How to Read Crossovers, the Histogram and Divergence

One account, every market we offer

Explore

The MACD indicator (Moving Average Convergence Divergence) is a momentum and trend-following indicator that measures the gap between a 12-period and a 26-period exponential moving average. When that gap widens, momentum is building; when it narrows, momentum is fading. Traders read the MACD through three signals: signal-line crossovers, zero-line crossovers and divergence. The MACD is one of the core tools covered in our guide to technical indicators.

Quick answer: The MACD indicator (Moving Average Convergence Divergence) is a momentum indicator equal to the 12-period EMA minus the 26-period EMA, plotted with a 9-period EMA signal line and a histogram. A MACD cross above the signal line is bullish and a cross below is bearish. A MACD signal is confirmed when price breaks structure in the same direction.

Highlights of this article

  • 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; the histogram is the difference between the two
  • Gerald Appel created the MACD in the late 1970s, and Thomas Aspray added the histogram in 1986
  • The three classic MACD signals are signal-line crossovers, zero-line crossovers and divergence
  • The MACD histogram shrinks before a crossover, so it works as an early warning that momentum is fading
  • The MACD works best in trending markets and whipsaws in sideways ranges, so filter it with trend and price structure
  • MACD and RSI both measure momentum, so pairing them adds less confirmation than it seems

Ready to get funded?

Trade up to $200,000 in firm capital with static drawdown, no consistency rule, and payouts within 24 hours. Pass the challenge and keep up to 90% of your profits.

Start your challenge →

What is the MACD indicator?

The MACD indicator is a momentum oscillator built from two exponential moving averages, created by Gerald Appel in the late 1970s. The name describes what the indicator tracks: two moving averages converging (moving closer together) and diverging (moving apart). Thomas Aspray added the MACD histogram in 1986 to make changes in the gap between the MACD line and the signal line easier to see.

Unlike the RSI indicator, the MACD has no fixed upper or lower bound. The MACD value is expressed in price units, so a MACD reading of 2.0 on one market means something completely different from 2.0 on another. The MACD shows direction and change in momentum rather than "overbought" or "oversold" levels.

MACD key facts

Item Detail
Indicator type Momentum and trend-following oscillator
Default settings 12, 26, 9 (fast EMA, slow EMA, signal EMA)
What it measures The distance between a fast and a slow exponential moving average, and how that distance is changing
Main signals Signal-line crossovers, zero-line crossovers, divergence, histogram shrinking or expanding
Best market conditions Trending markets with clear swings
Pairs well with Moving averages for trend direction, support and resistance for location, volume
Main limitation Lags price because it is built from moving averages; produces repeated false crossovers (whipsaws) in sideways ranges

How is the MACD calculated?

The MACD is calculated in three steps, and each step creates one of the three parts you see on the chart:

  1. MACD line = 12-period EMA of the closing price minus the 26-period EMA of the closing price.
  2. Signal line = 9-period EMA of the MACD line.
  3. Histogram = MACD line minus signal line.

An EMA (exponential moving average) is an average that gives more weight to recent prices, so it reacts faster than a simple moving average. Our guide to moving averages explains the difference in detail.

SMA vs EMAA 20-period simple moving average and a 20-period exponential moving average on the same chart; the EMA weights recent prices more, so it turns sooner after the low.100.00102.50105.00107.50110.00SMA 20EMA 20
SMA vs EMA. The EMA reacts faster and the SMA is smoother. Neither predicts; both summarise where price has been. Illustrative prices.

The chart above shows why the MACD uses EMAs: the 20 EMA turns sooner after the low than the 20 SMA. When the MACD line is above zero, the 12 EMA is above the 26 EMA. When the MACD line is below zero, the 12 EMA is below the 26 EMA.

What are the three MACD signals?

The three classic MACD signals are signal-line crossovers, zero-line crossovers and divergence. Each one answers a different question about momentum.

MACD crossoversThe MACD line (12-period EMA minus 26-period EMA), its 9-period signal line and the histogram between them; a bullish crossover when MACD crosses above the signal line and a bearish one when it crosses below.97.50100.00102.50105.00107.50MACD (12, 26, 9): blue MACD line, orange signal line0Bullish crossBearish cross
MACD crossovers. The histogram is the gap between the two lines: it shrinks before a crossover, which is why traders watch it for early warning. Illustrative prices.

What is a MACD crossover?

A MACD crossover (signal-line crossover) happens when the MACD line crosses the signal line. A bullish MACD crossover is the MACD line crossing above the signal line; a bearish MACD crossover is the MACD line crossing below the signal line.

In the chart above, the bullish cross happens while both lines are deep below zero, after the decline has started to slow. Later, the bearish cross happens above zero, after the advance has lost speed. Location matters: a bullish crossover below zero is a possible turn after a decline, while a bullish crossover above zero is a possible continuation inside an existing uptrend.

What does a MACD zero-line crossover mean?

A MACD zero-line crossover means the 12-period EMA has crossed the 26-period EMA. A move from below zero to above zero says short-term momentum has turned positive relative to the longer average; a move from above zero to below says the opposite. Zero-line crossovers come later than signal-line crossovers, so they are slower but tend to filter out more noise. They are closely related to moving-average crossovers such as the golden cross, just on shorter default periods.

What is MACD divergence?

MACD divergence happens when price and the MACD move in opposite directions. Bearish MACD divergence is price making a higher high while the MACD makes a lower high, which suggests the advance is losing momentum. Bullish MACD divergence is price making a lower low while the MACD makes a higher low, which suggests selling pressure is fading.

MACD divergence is a warning, not a trigger. Divergence can last for several swings in a strong trend, so wait for price to confirm, for example with a break of the most recent swing low after bearish divergence.

Payout proof

Fast, real payouts. Traceable on Arbitrum.

  • Paid within 24 hours of approval
  • Settled on Arbitrum in USDC or USDT
  • Look up any transaction on Arbiscan
Velotrade payout certificate: $1,684 paid on a $100,000 account
Velotrade payout certificate: $1,452 paid on a $25,000 account

What does the MACD histogram tell you?

The MACD histogram tells you whether the gap between the MACD line and the signal line is widening or narrowing. Tall bars mean momentum is accelerating in the direction of the bars; bars that shrink toward zero mean momentum is slowing.

The chart caption makes the key point: the histogram shrinks before a crossover. In the example, the histogram bars peak during the rally and then get steadily shorter before the bearish cross. That is why traders use the MACD histogram as an early warning. A shrinking histogram does not mean price will reverse; it means the current push is losing speed, a reason to tighten risk rather than to flip direction.

Does the MACD work in ranging markets?

No, the MACD works poorly in ranging markets. When price moves sideways, the 12 EMA and 26 EMA keep crossing back and forth, the MACD line hugs zero, and signal-line crossovers fire repeatedly in both directions. These false signals are called whipsaws, and they are the most common way traders lose money with the MACD.

The MACD is at its best when a market is trending with clean swings. Practical filters include:

  1. Check the trend first with a longer moving average or with price structure (higher highs and higher lows, or lower highs and lower lows).
  2. Take only crossovers in the direction of that trend.
  3. Ignore crossovers when the MACD line and signal line are tangled tightly around zero.

What are the best MACD settings?

The best MACD settings for most traders are the defaults of 12, 26 and 9, because they are the standard most charting platforms and educational material use. Faster settings (for example 5, 35, 5 or 8, 17, 9) react sooner but produce more whipsaws. Slower settings react later but give fewer, smoother signals.

There is no setting that removes the trade-off between speed and noise. If you change the MACD settings, change them for a reason (a specific timeframe or market), keep them fixed, and test them through backtesting rather than adjusting after each losing trade.

How do you trade with the MACD?

A simple, rules-based way to trade with the MACD in a trending market follows these steps:

  1. Define the trend. Use a longer moving average or price structure to decide whether you are looking for longs or shorts.
  2. Wait for a pullback. In an uptrend, let price pull back toward support or a moving average.
  3. Use the MACD crossover as the trigger. Look for a bullish MACD crossover in the trend direction as price reacts from the level.
  4. Confirm with price. Require a candle close back in the trend direction or a break of the pullback high.
  5. Place the stop at structure. Put the stop beyond the pullback low (for longs), not at an arbitrary distance.
  6. Size the position from the stop. Calculate size so that the loss at the stop is a fixed small share of the account; the position size calculator does this for you.
  7. Plan the exit. Use a target at the next level with a sensible risk to reward ratio, or trail the stop and treat a bearish crossover as a reason to reduce or exit.

Should you combine MACD and RSI?

You can combine the MACD and the RSI, but both indicators measure momentum, so they often agree for the same reason rather than confirming each other independently. Stacking them can create false confidence.

A more useful combination pairs the MACD with something that measures a different thing: a moving average for trend, support and resistance for location, or volume for participation. If you use the RSI indicator alongside the MACD, give each a distinct job, such as RSI for stretched conditions and MACD for timing.

What are common MACD mistakes?

Most MACD mistakes come from treating the MACD as a standalone signal generator:

  • Trading every crossover. In ranges, most crossovers are whipsaws. Filter by trend.
  • Ignoring location. A bullish crossover straight into resistance has little room to work.
  • Selling divergence too early. Divergence can persist through several swings in a strong trend.
  • Comparing MACD values across markets. MACD readings are in price units, so they are not comparable.
  • Endlessly tweaking settings. Changing the 12, 26, 9 inputs after every loss is curve-fitting, not analysis.
  • Using market orders on every signal. Chasing a crossover candle often means a poor fill; a planned limit order at your level keeps entries disciplined.

Indicators also tell only part of the story. Vittorio De Angelis, co-founder of Velotrade, points out that charts "condense information about participants' behavior," but fundamentals and flows still matter, which is why fundamental and technical analysis work best together.

Two laptops showing price charts on a desk

Can AI improve MACD signals?

AI can help scan many markets for MACD crossovers, histogram shifts and possible divergences, but AI cannot make the MACD more reliable on its own. Scanners and pattern-recognition tools flag candidates quickly, yet divergence in particular is subjective (which swing highs count?), and automated flags produce many false positives in sideways markets.

Treat AI output as a shortlist, not a decision. Any rule an AI tool applies should be backtested on your markets and timeframe, and every trade still needs human judgement on trend, location and risk. Our guides to AI trading signals and backtesting trading strategies cover how to evaluate these tools.

How do you use the MACD in a prop firm challenge?

Using the MACD in a prop firm challenge works the same as on any account, but risk rules matter more than the signal. Velotrade, a multi-asset prop trading firm, runs simulated evaluations across crypto, forex, stocks, index ETFs and commodities, so the same MACD rules can be tested on different markets.

Three rules shape a MACD strategy inside a Velotrade challenge:

  • Static maximum drawdown. The maximum drawdown is fixed from your starting balance for the life of the account. Repeated whipsaw losses add up quickly. See static maximum drawdown explained.
  • Daily loss limit. The daily loss limit resets at 00:30 UTC and is set from the higher of your balance or equity at that time. Decide in advance how many MACD signals you will take per day.
  • Profit split. Funded traders receive a profit split of up to 90%. Consistent risk per trade matters more than catching every crossover.

News trading is allowed, but MACD signals around major releases can flip within a few candles. Compare plans on the challenges page.

Frequently Asked Questions

About the author

Vittorio De Angelis

Vittorio De Angelis

Executive Chairman

Former equity-derivatives trader at JP Morgan, Dresdner Kleinwort and Bank of America in London. Later Head of Brokerage at a global broker in Hong Kong.

View author page

Ready to trade with
$200,000 capital?

Up to 90% profit split

Keep most of what you earn

No consistency rule

News trading allowed

Payouts within 24 hours

Of your request