WhitmanTrading

How to Use the MACD

To use the moving average convergence divergence indicator, pick one of its three signals — the crossover, the zero line, or divergence — and act only on that one. It is built from moving averages, so it lags by construction and confirms a move rather than predicting it.

The moving average convergence divergence indicator is two moving averages subtracted from each other, plus a moving average of that difference. Every property it has — including the lag — comes from that construction.

Before you start

The three lengths set deliberately rather than left at 12, 26 and 9. Those numbers date from a different market and a different bar interval. Keeping them is fine; keeping them without deciding is not.

A decision about which of the three signals you will act on, made before you look. The crossover, the zero line, or divergence. One of them.

The instrument’s ordinary bar range, so a crossover can be compared to noise. On this site’s shared series the median bar range is 0.493 and the tenth percentile is 0.17.

The steps

1. Understand that it lags, and stop expecting otherwise

A candlestick chart with a signal arriving after a move.
Built from averages, so it confirms rather than leads. Illustrative chart - not real market data.

Moving averages are backward-looking by definition. Subtracting one from another does not remove the lag; it produces a new backward-looking series.

2. Pick your one signal and write it down

The first half of a price series with a single condition marked.
One signal, chosen before the chart is open. Illustrative chart - not real market data.

Crossover of the two lines, cross of the zero line, or divergence against price. Taking all three means you will always find one that agrees with what you already wanted.

3. Use the zero line as a trend filter

A section of the price series divided by a central level.
Above zero the faster average is higher. Illustrative chart - not real market data.

Above zero means the shorter average is above the longer one. Trading only long above and only short below removes most of the noise the crossover produces.

4. Ignore crossovers when the lines are near zero

A window of price bars oscillating around a level.
Near zero, crossovers fire on nothing. Illustrative chart - not real market data.

When the two averages are close together, they cross repeatedly on tiny movements. Those crossings carry no information and each one costs a round trip to act on.

5. Read the histogram as rate of change

The second half of a price series with momentum shrinking.
The histogram measures the gap, not the direction. Illustrative chart - not real market data.

It is the distance between the two lines. Shrinking bars mean the gap is closing, which happens before a crossover — and also happens without one.

6. Confirm against structure before acting

A range-bound section with a level tested repeatedly.
The indicator is a second opinion, not a first one. Illustrative chart - not real market data.

A signal at a level that already mattered is worth something. The same signal in open space is worth much less, and the indicator has no way to tell you which you are looking at.

7. Take the stop from the chart, not from the indicator

A long-horizon view with an invalidation level marked.
It contains no price levels at all. Illustrative chart - not real market data.

Where the idea is wrong is structural. That distance then sets the position size through the usual division, and the indicator plays no part in either.

How to tell it worked

You can name the one signal you traded, and it is the same one as last month. If it changed, it changed to fit a result.

Your three lengths were chosen, not inherited. Reviewing them and keeping 12, 26 and 9 counts; never looking does not.

Crossovers that fired within 3 bars of each other produced no trades. That is the zero-line filter doing its job.

And every entry had a stop from structure, so the position size came from the chart rather than from the oscillator.

What it cannot do

A candlestick chart annotated with the round-trip cost of a switch.
Every crossover acted on costs a round trip. Illustrative chart - not real market data.

It cannot lead price. On this site’s shared series a round trip measures about 2% of the median bar range of 0.493, so a strategy taking every crossover pays that repeatedly for a signal that by construction arrives after the move. The figures are in research/series-measurements.json.

A candlestick chart with a volume histogram beneath it.
And it cannot see volume or context at all. Illustrative chart - not real market data.

It also cannot distinguish a trend from a range, which is the distinction that decides whether its signals mean anything. That judgement has to come from the chart.

What the three lengths actually change

The two averages set how much of the recent past the difference reflects. A 12 and 26 pair describes the gap between roughly two weeks and roughly a month of daily bars; halving both makes it faster and noisier without changing what it measures.

The signal length sets how much the crossover lags. A shorter signal line crosses sooner and produces more false starts; a longer one confirms more and arrives later.

Change one at a time and watch the count of signals. If halving the lengths doubles the number of crossovers, that is arithmetic rather than an improvement — each signal is now built on less information and costs the same round trip to act on.

The original data

Of the 24,971 unique videos in research/search-study-corpus.jsonl, 96 have an instruction-shaped title about this indicator, at a median of 1,765 views across 86 channels. The relative strength index appears in 154 videos at 4,398 and moving averages in 105 at 1,681. The counts come from site/rank_howto.py, which deduplicates by video id.

A candlestick series with several gaps, the largest of them marked.
A gap moves both averages without any bars between. Illustrative chart - not real market data.

96 videos at a 1,765 median — one of the lowest audiences per video in the indicator set. Heavy coverage and a small audience is what a crowded, repetitive topic looks like in the data, and almost all of that coverage teaches the crossover.

A stretch of price bars cut short at a decision point.
The lines just crossed. Enter? Illustrative chart - not real market data.

The answer to the question on that chart depends on where zero is. A crossover above the zero line in an established trend is a continuation signal; the identical crossover with the lines hugging zero is noise. The indicator produces the same visual event in both cases — which is why the filter has to be decided before the crossover appears rather than after.

When it fails

The failure is a sideways market, and it fails by producing constant signals. The two averages sit close together, cross back and forth every few bars, and each crossing looks exactly like the one that worked in a trend. A strategy taking them is stopped out repeatedly by ordinary movement while the indicator behaves precisely as designed — it is reporting that the averages crossed, which they did, and it was never claiming that meant anything.

The second failure is taking all three signals. One of them will always agree with you.

A third is expecting it to lead. It is built from averages and it lags by construction.

A fourth is using the default lengths without deciding. They date from a different market.

A fifth is reading the histogram as direction. It measures the gap between two lines.

And a sixth is placing a stop from the indicator. It contains no price levels.

MACD explains the calculation and what each of the three lines is. MACD crossover covers the signal most people trade and why it needs a filter. And MACD divergence is the configuration that carries directional information.

What I actually do

The change that made it usable was deciding to act on the zero line and ignoring the crossover entirely. Two of the three signals were producing noise in the conditions I traded, and choosing one in advance turned an indicator I argued with into one that simply told me which side of the market I was allowed to be on.

— Michael Whitman

This page is educational, not financial advice. Test every idea on your own charts before risking money.