INDICATORS · MACD HISTOGRAM

MACD in Crypto: Why the Value Changes Before Candle Close

MACD's line, signal line and histogram all include the current price. The histogram, being a difference of differences, swings the most inside a bar.

Short answer

MACD = EMA(12) − EMA(26) of closes; the signal line is EMA(9) of MACD; the histogram is MACD − signal. All three use the current bar's price as its close until the bar ends, so they move intrabar. The histogram moves most because it amplifies small changes in MACD relative to its slower signal line. Histogram colour changes or zero crosses seen mid-bar can reverse by the close. Use closed-bar values for histogram-based rules. Line-crossover behaviour is covered separately.

Which part of MACD uses the live bar

ComponentUses current bar?Effect intrabar
EMA(12), EMA(26)YesShift with live price
MACD lineYesMoves moderately
Signal EMA(9)YesMoves less (smoothed)
HistogramYesMoves most

Because the signal line is a smoothed version of MACD, any intrabar change in MACD shows up almost fully in the histogram, making histogram-based signals the least stable intrabar.

See MACD in Crypto on live data in the free ChartsPod terminal.

Open the ChartsPod terminal

How much it moves inside one bar

MACD during one bar (illustrative)MACD during one bar (illustrative): OPEN: Histogram +12; MID: Spike: +31; LATE: Fade: +4; CLOSE: −3: colour flipped.OPENHistogram +12MIDSpike: +31LATEFade: +4CLOSE−3: colour flipped
Only MACD's closing value is kept in history. Original ChartsPod editorial graphic.
Illustrative intrabar range of MACD vs its closed valueIllustrative intrabar range of MACD vs its closed value: Histogram intrabar range 34 ; MACD line intrabar range 14 ; Signal line intrabar range 3 .ILLUSTRATIVE INTRABAR RANGE OF MACD VS ITS CLOSED VALUEHistogram intrabar range34MACD line intrabar range14Signal line intrabar range3
How far MACD travels inside a bar versus between bars. Original ChartsPod editorial graphic.

Rules

MACD signal hygieneMACD signal hygiene: Signals on closed bars; Bar-close alerts; Backtest uses the same rule; Live value labelled provisional; Settings identical across chart and alerts.MACD SIGNAL HYGIENESignals on closed barsBar-close alertsBacktest uses the same ruleLive value labelled provisionalSettings identical across chart and alerts
Closed values are what history shows. Original ChartsPod editorial graphic.

This complements MACD Crossover Before Candle Close: Why the Signal Can Vanish, which covers MACD line crossovers; consider consolidating the two pages.

Test MACD in Crypto on a perpetual chart; no account is needed to chart.

Launch ChartsPod

Questions readers ask

Why does the MACD histogram change colour mid-bar?

It uses the live price; small MACD changes are amplified.

Which MACD part is most stable?

The signal line.

Should histogram signals use closed bars?

Yes.

Sources and methodology

Indicator formulas are standard definitions; live-versus-closed behaviour follows TradingView's repainting documentation. Values in examples are illustrative.

  1. TradingView Pine Script: Repainting — live vs historical calculation.
  2. ChartsPod indicator reference — indicator calculations.

This article explains research tools and workflows. It is not financial advice, does not recommend buying or selling any asset and does not predict prices. Crypto derivatives carry a risk of rapid and total loss of margin.

CHARTSPOD EDITORIAL EDITION · RESEARCH AND EDUCATION ONLY · NOT FINANCIAL ADVICE.