Three lines and a row of bars sit under your price chart, and most traders read one event: the MACD line crossing its signal line. That cross is the middle of the three signals the indicator produces. The histogram bars shorten first, the zero line is crossed last, and all three come out of subtractions you can do on paper.
What is the MACD indicator
Gerald Appel developed the Moving Average Convergence/Divergence oscillator in the late 1970s (StockCharts). It has three parts, and each is a subtraction:
- MACD line: the 12-day EMA minus the 26-day EMA.
- Signal line: a 9-day EMA of the MACD line.
- Histogram: the MACD line minus the signal line.
The values 12, 26 and 9 are the typical settings, and they are what your platform loads by default.
That structure matters more than it looks. Every reading on the indicator is a distance between two averages, so the MACD tells you how fast two moving averages are pulling apart or closing up. It says nothing about price level, and nothing about volume.
Reading the three components
The MACD line
A positive MACD line means the 12-day EMA sits above the 26-day EMA, so the shorter average is leading. Negative means the reverse. A rising line means the gap is widening and the recent trend is accelerating away from the older one. A falling line means the two averages are converging, whichever side of zero they are on.
The signal line
The signal line is a smoothed version of the MACD line, lagging it by design. Crossings between the two are the indicator's main event, and the lag is the cost of filtering out every small move in the MACD line.
The histogram
The histogram is the gap between the MACD line and the signal line, drawn as bars. StockCharts puts the relationship plainly: it "is positive when the MACD line is above its signal line and negative when the MACD line is below its signal line".
Which means the first positive bar after a run of negative ones is not an early warning of a bullish crossover. It is the crossover. The early information is in the length of the bars before that: negative bars getting shorter show the two lines closing on each other, and the cross has not happened yet.
MACD strategy 1: the signal line crossover
The indicator's primary trade.
Bullish: the MACD line crosses above the signal line. Bearish: it crosses below.
How to trade the bullish version:
- Wait for the cross to complete on a closed daily bar. An intraday cross can un-cross by the close.
- Confirm on price. A cross while price is breaking a resistance level is a different event from a cross while price is drifting sideways.
- Buy the next open or the first pullback.
- Place the stop below the most recent swing low, which is the price that would say the move failed.
The bearish version reverses each step, and the stop sits above the recent swing high.
Not every crossover carries the same information
The distance from zero is the thing to read. A crossover that happens with the MACD line far below zero is two averages that were wide apart starting to close up, which is a change inside a downtrend. A crossover that happens with the MACD line hovering at zero is two averages that were already at nearly the same value. That happens repeatedly in a sideways market, and it produces a string of crosses in both directions.
Small histogram bars around the cross say the same thing: the two lines barely separated, so one day of price can put them back together.
MACD strategy 2: the centerline crossover
The zero line has one exact meaning. The MACD line crosses above zero when the 12-day EMA moves above the 26-day EMA, and below zero when it moves back under (StockCharts).
That makes the centerline a statement about the two moving averages themselves rather than about their momentum. It usually arrives after the signal line cross, because the MACD line has to travel from wherever it crossed the signal line all the way to zero.
Traders use it as a trend filter: take long setups while the MACD line is above zero, short setups while it is below. A cross back below zero while you hold a long is a reason to review the distance to your stop.
MACD strategy 3: histogram reversals
The histogram is where the indicator gives you something before the crossover does.
Below zero, watch for bars getting shorter. That is the MACD line closing the gap on the signal line while still underneath it. Bars making higher lows below zero show the same thing over a longer stretch. Above zero, shrinking bars mean the opposite: the MACD line is falling back towards its signal line while still above it.
None of that is a trade on its own. It is advance notice that a crossover is being built, which gives you time to check the price chart and decide whether you would take the cross if it arrives. The bar that flips sign is the crossover itself.
MACD strategy 4: divergence
Divergence compares the direction of price against the direction of the indicator.
Bullish: price posts a lower low, the MACD line posts a higher low. Bearish: price posts a higher high, the MACD line posts a lower high.
Trading the bearish case:
- Find the divergence on the daily chart.
- Wait for the signal line crossover to confirm it.
- Exit longs, or open a short, on the price break below the swing low between the two highs.
- Place the stop above the divergence high.
The bullish case mirrors it. Divergence with no crossover and no price break is a chart observation, and price can keep making new extremes against it for a long time.
Divergence carries more weight at a price level that has already turned the market once. A second indicator such as RSI diverging at the same time is another. So is a final push into the new extreme on lower volume than the one before it. That is three pieces of evidence pointing the same way rather than one.
Combining MACD with other tools
MACD and RSI
The two answer different questions. MACD reports the relationship between two averages; RSI reports the balance of recent gains against recent losses. An oversold RSI at a support level, with a bullish MACD crossover on the same day, is agreement between a momentum reading and a trend reading.
MACD and moving averages
Use the 50-day and 200-day moving averages as the trend filter, then take MACD signals in that direction. Bullish crossovers count when price is above the 50-day, bearish ones when price is below it. The filter removes the crossovers that fire against the larger trend.
MACD and support and resistance
A crossover has to happen somewhere. One that lands at a support level that has held before gives you a stop a short distance below it, so the same signal produces a smaller loss when it fails.
MACD settings
The 12, 26 and 9 defaults are the typical settings, and the ones this article uses on daily charts. If you want more sensitivity, StockCharts notes that MACD(5,35,5) "is more sensitive than MACD(12,26,9) and might be better suited for weekly charts". Lengthening the averages goes the other way and produces fewer crossovers.
Changing the settings changes how often the indicator fires and how late each signal is. That is a trade-off to measure on your own trades, not a setting to copy because somebody labelled it fast.
Common MACD mistakes
Trading every crossover
On a stock going sideways the MACD line oscillates around its signal line and crosses repeatedly, each one costing a spread and a commission. Filter by trend direction and by price, and skip the crosses that happen at zero.
Ignoring the histogram
The bars carry the only part of the indicator that moves before the crossover. Reading only the two lines throws that away.
Skipping price confirmation
An indicator built from two moving averages of price cannot tell you anything price has not already done. Where MACD and the chart disagree, the chart is the primary record.
Mismatching the timeframe
An hourly MACD generates several signals a day, and none of them is about a position you plan to hold for two weeks. Read it on the chart you make the decision on.
MACD quick reference
| Signal | Condition | What it means |
|---|---|---|
| Bullish crossover | MACD line crosses above the signal line | The 12/26 gap is widening upward faster than its own average |
| Bearish crossover | MACD line crosses below the signal line | The same relationship, reversed |
| Bullish centerline | MACD line crosses above zero | The 12-day EMA has moved above the 26-day EMA |
| Bearish centerline | MACD line crosses below zero | The 12-day EMA has moved below the 26-day EMA |
| Bullish divergence | Lower low in price, higher low in MACD | Downside momentum is fading |
| Bearish divergence | Higher high in price, lower high in MACD | Upside momentum is fading |
| Growing histogram | Bars lengthening | The two lines are separating |
| Shrinking histogram | Bars shortening | The two lines are converging, a cross may follow |
Test the MACD setup on your own trades
A crossover trade, a divergence trade and a histogram-reversal trade are three different strategies that happen to share an indicator. They fail in different conditions, and no article can tell you which one suits the way you trade.
In Swingfolio the rule builder carries the MACD line, the MACD signal line and the MACD histogram as three separate indicators. Each has its own fast, slow and signal periods, and conditions for is above, is below, crosses above and crosses below. Build each version as its own strategy and attach it to the trades you take from it.
Once those trades close, the analytics report total P&L, win rate, average R-multiple and profit factor for each strategy side by side. That is the comparison worth acting on, and it takes your own trades to produce.
Start the 30-day trial and start recording which MACD signal you traded.
