MACD: line, signal, histogram and distinct crossing events
MACD describes the separation between two exponential moving averages.
Before this lesson
These lessons provide background; you can still read this page now.
What the indicator measures
MACD describes the separation between two exponential moving averages. Its line, signal and histogram answer related but different questions. Keeping them separate prevents confusing a smaller positive histogram with a negative trend reading. It is expressed in price units, so raw values are not directly comparable across differently priced assets.
Calculation and units
MACD line = EMA(fast) − EMA(slow). Signal = EMA of that line. Histogram = MACD − signal. TradingHub’s defaults are 12, 26 and 9. The slow EMA must become defined before the signal can collect its own complete seed; early gaps are expected warmup rather than evidence of zero momentum.
Worked educational example
Assume fast EMA 105, slow EMA 102 and signal 2. MACD is 3 and the histogram is 1. If MACD becomes 2.5 while signal is 2, the histogram shrinks to 0.5 but remains positive. A crossing of the signal and a crossing of zero are different events.
Reading it without overclaiming
A positive histogram indicates the MACD line is above its signal, not that price must rise. Both lines can be negative while the histogram is positive. Divergence depends on chosen pivots and can fail. Closed-bar comparisons matter because a live candle can create and remove a crossover before completion.
How TradingHub implements it
The native charts use close prices, SMA-seeded EMAs and a signal seeded from the defined MACD tail. With defaults, the first fully defined histogram appears after 34 closes. Studio’s template exposes the same three periods. A visible-window restart versus Studio’s available-history calculation can cause different early readings.
Comparisons that matter
EMA and MA crossover are close relatives of MACD; stacking them does not create three unrelated measurements. Compare MACD’s sign, signal relation and histogram change explicitly. Record parameters and source before interpreting a discrepancy with another market or chart.
A reproducible chart review
Open the existing Trading chart and choose the same market, interval and closed observation time as your comparison. Record every calculation parameter before changing one at a time. Match source fields, history length and the bar window. Native indicators calculate from the supplied visible slice; Indicator Studio calculates from its available chart snapshot. A difference after panning may therefore be a window or warmup effect rather than a new market event.
Limits and next lesson
The illustration uses constructed candles, not a dated market observation or a backtest. A live candle can change until it closes. Missing history, volume units and implementation conventions limit comparisons. No indicator guarantees a direction, an execution price or protection from loss. Use the related lessons to separate definitions, observed values and possible explanations; a correct quiz records learning progress, not trading competence.
Knowledge check
Can a positive MACD histogram coexist with a negative MACD line?
- Only if the graph is broken
- Yes; the line can be negative but above its signal
- No; both always have the same sign
Show explanation
The histogram subtracts the signal from the MACD line; its sign is a separate comparison from MACD versus zero.
Interactive checking needs JavaScript; the lesson and explanation remain readable.
Primary sources and scope
Educational scenarios are not execution guarantees, forecasts or personal recommendations. Check current product rules at their source.
Content revised: . Editorial responsibility: TradingHub. No independent professional certification is claimed.