Bubixo AI Market Analyst
Open the analysis tool

MACD Analysis for Stocks and Crypto

MACD turns the distance between two moving averages into a momentum reading. Its three components say different things, and knowing which one leads is what separates a useful signal from a lagging one.

Use the tool now

Free plan: 3 AI analyses a day, no sign-up required.

Open the analysis tool

How MACD is constructed

The standard settings are 12, 26 and 9. The MACD line is the 12-period exponential moving average minus the 26-period one, so it is simply the gap between a fast and a slow average expressed as a single number. The signal line is a 9-period EMA of that result.

The histogram is the third element: the MACD line minus the signal line, drawn as bars. Everything MACD tells you is contained in those three series, and every classic MACD signal is a statement about one of them crossing or changing shape.

Crossovers and their built-in lag

The familiar signal is the MACD line crossing above or below the signal line. It is a reasonable confirmation that momentum has changed direction, and it is late by construction — you are watching an average of an average, so the cross happens after the shift it describes.

That lag is a design feature rather than a defect. Smoothing is what stops the indicator from reacting to every bar, and demanding an early signal from a smoothed indicator is asking it to be something it is not.

The histogram leads the crossover

Because the histogram is the distance between the two lines, it starts shrinking before they meet. Bars that narrow for several periods say the crossover is approaching; bars that expand say the current move is accelerating away from its own average.

This makes the histogram the earliest usable part of MACD. A shrinking histogram in an uptrend is a reason to tighten a stop long before the lines actually cross, and it is the element most worth watching bar to bar.

What the zero line adds

MACD above zero means the 12-period EMA is above the 26-period one — the two averages are in a bullish arrangement regardless of what the signal line is doing. Crossing zero is therefore a structural event rather than a momentum wobble.

A signal-line crossover that also carries MACD through zero is a stronger statement than one that leaves it deep in negative territory. The latter is very often just a bounce inside a downtrend, and reading it without checking which side of zero it happened on is a frequent mistake.

Where MACD fails: ranging markets

MACD is a trend-following indicator wearing a momentum costume. When price oscillates in a range, the two averages cross each other repeatedly with no follow-through, producing a run of signals that each reverse within a few bars.

The defence is a trend filter. When ADX sits below roughly 20 there is no trend for MACD to follow, and crossovers in that condition are best ignored rather than traded. Above 25, the same crossovers are worth considerably more.

How Bubixo reads MACD

All three components — line, signal and histogram — are computed on the server for whichever of the five timeframes you selected, and passed to the model together with the trend strength readings and the moving average stack.

That context is why an analysis will describe a bearish crossover in a strong uptrend differently from the same crossover in a range. The indicator is identical in both; what it is worth is not.

Frequently Asked Questions

What do the numbers 12, 26 and 9 mean?

They are the periods of the three moving averages involved: a 12-period EMA and a 26-period EMA whose difference forms the MACD line, and a 9-period EMA of that line which forms the signal. Bubixo uses these standard settings on every timeframe.

Is a MACD crossover a buy or sell signal?

It is a confirmation that momentum has shifted, not an instruction. Its value depends heavily on context: a crossover during a strong trend and the same crossover inside a sideways range have very different track records, which is why a trend filter matters.

What does a shrinking histogram mean?

That the MACD line and the signal line are converging, so a crossover is approaching. Because the histogram narrows before the lines actually meet, it is the earliest part of the indicator and a useful early warning for tightening risk on an existing position.

Why does MACD give false signals?

Mostly because it is applied to markets that are not trending. In a range the fast and slow averages cross repeatedly without follow-through, so signals reverse within a few bars. Checking ADX first, and discounting crossovers when it is below about 20, removes a large share of them.

Does MACD work on crypto pairs?

Yes, and the construction is unchanged. Continuous trading means no gaps disturb the averages, though crypto’s higher volatility produces sharper histogram swings, so the shape of the bars matters more than their absolute size.