When momentum
shifts
Price can keep making new highs while the engine behind it quietly stalls. MACD makes that stall visible before price confirms it — giving you time to tighten stops, reduce size, or get out before the crowd does.
MACD (Moving Average Convergence Divergence) measures the gap between a fast EMA (12) and a slow EMA (26). When this gap is growing, momentum is accelerating — stay long. When it is shrinking, momentum is fading — tighten your leash. The histogram visualizes this gap as bars above or below a zero line. Shrinking green bars on a new price high is one of the clearest early warnings in technical analysis.
The three components of MACD
MACD is built from three elements. Understanding each one separately makes the indicator readable at a glance:
| Component | What it is | Default setting | What it tells you |
|---|---|---|---|
| MACD line | EMA 12 minus EMA 26 | 12, 26 | The raw momentum reading. Above zero = fast EMA above slow EMA = upward momentum. Below zero = downward momentum. |
| Signal line | 9-period EMA of the MACD line | 9 | A smoothed version of MACD. Used to generate crossover signals when MACD crosses above or below it. |
| Histogram | MACD line minus Signal line | — | The gap between MACD and Signal. Growing bars = momentum building. Shrinking bars = momentum fading. This is the most forward-looking component. |
The three MACD signals that matter
MACD crossover
MACD line crosses above the signal line = bullish. Below = bearish. Most traders know this one — which also means it generates the most false signals in choppy markets. Use only when MACD is already above zero (confirming the underlying trend).
Histogram divergence
Price makes a new high but histogram bars are shorter than the previous peak. Momentum is weakening even as price extends. This is the highest-quality signal MACD produces — it is forward-looking, not lagging.
Zero-line cross & hold
MACD crossing from below zero to above zero means the 12-EMA has reclaimed the 26-EMA — a trend regime change. In strong trends, MACD stays above zero for months. A dip below zero and recovery is a re-test of the trend that either holds or doesn’t.
Signal hierarchy: Histogram divergence > Zero-line cross > Signal line crossover. Most beginner tutorials focus only on the crossover because it is easy to spot. Experienced traders focus on the histogram because it gives earlier warnings. Lead with histogram analysis; use the crossover as a trigger only after the histogram has already told you the direction.
MACD divergence in detail
Like RSI, MACD produces its clearest signals when it disagrees with price:
📈 Bullish MACD divergence
Price makes a lower low but the MACD histogram makes a higher low (shorter negative bars on the second trough). Selling momentum is decelerating. Institutions may be accumulating into weakness.
📉 Bearish MACD divergence
Price makes a higher high but the MACD histogram shows shorter positive bars on the second peak. The rally lacks the same buying power. Smart money is quietly distributing into the strength.
Above zero vs below zero: the trend context
Where MACD sits relative to the zero line is just as important as the crossover itself. Signals have very different weight depending on which side of zero they happen on:
| MACD position | What it means | Signal quality |
|---|---|---|
| Above zero, bullish crossover | Fast EMA already above slow EMA; MACD line now also crossing above signal | High — both trend and momentum are aligned bullish |
| Below zero, bullish crossover | Still in a downtrend; MACD crossed up but from below the zero line | Low — likely a dead-cat bounce. Wait for zero-line reclaim |
| Above zero, bearish crossover | Still in overall uptrend but momentum is pulling back | Medium — pullback signal, not necessarily a trend reversal |
| Below zero, bearish crossover | Trend already down; MACD confirming continued bearish momentum | High — adds to short/exit thesis |
How MACD connects to the moving averages you already know
MACD is not a standalone tool — it is literally derived from the EMAs covered in Lesson 7. The MACD line is EMA 12 minus EMA 26. When you look at a price chart with EMA 12 and EMA 26 plotted, MACD is just the gap between them visualized as an oscillator.
This means MACD and EMA alignment tell the same story from different angles:
- MACD above zero = same information as EMA 12 above EMA 26 on the price chart.
- MACD histogram growing = the EMA 12/26 gap is widening = trend is accelerating.
- MACD histogram shrinking = the two EMAs are converging = trend is losing steam.
- MACD crossing zero from below = EMA 12 reclaiming EMA 26 = intermediate trend may be turning.
Avoid double-counting: Because MACD is derived from EMAs, do not treat a bullish EMA crossover AND a MACD crossover as two separate signals. They are the same underlying data. Stack MACD with RSI or volume instead to get genuinely independent confirmation.
Practical rules for using MACD on MadStocks
- Check histogram direction before entering any position. Is the histogram growing in the direction of your trade? Growing green bars = stay long / add. Growing red bars = stay flat or reduce.
- Only act on bullish crossovers that happen above the zero line. Crossovers below zero in a downtrend are noise — they produce more whipsaws than usable setups.
- Flag any new price high where the histogram is shorter than the prior peak. That is bearish histogram divergence. It does not mean sell immediately, but it means raise your stop to the prior swing low and stop adding size.
- Use MACD + RSI as a momentum double-check. A stock at a new 52-week high with RSI making a lower high AND MACD histogram showing smaller bars is a strong combined signal that the move is extended. Exit or tighten aggressively.
- In a bull regime, MACD zero-line dips that hold above zero and recover are buy-the-dip entries. When MACD pulls back toward zero but the trend stays intact (EMA 50 holding, volume light on pullback), that is a high-quality reset.
See MACD on MadStocks charts
Open any MadStocks stock chart to see the MACD histogram and crossover signals below the price panel.
What the MadStocks MACD Analyzer scores
When you run the MACD Analyzer on any ticker, it checks five conditions and returns a score from 0 to 5:
| # | Signal | Pass condition | Why it matters |
|---|---|---|---|
| 1 | Bullish Momentum | MACD line > 0 | The fast EMA is above the slow EMA — the underlying trend is bullish. |
| 2 | Bullish Position | MACD line > Signal line | Momentum is running ahead of its own average — short-term strength confirmed. |
| 3 | Bullish Crossover | MACD crossed above Signal on the most recent bar | A fresh crossover is the most actionable trigger — direction has just shifted. |
| 4 | Positive Histogram | Histogram > 0 | The gap between MACD and Signal is expanding upward — bullish pressure is building. |
| 5 | Accelerating Momentum | Histogram is increasing (today > yesterday) | Momentum is not just positive but growing — the move has fuel left. |
Analyze MACD on Any Stock
MadStocks calculates MACD for any ticker — live signals, histogram trend, crossover status, and a plain-English verdict so you know what the momentum says before you trade.