reference · Technical analysis

MACD: Line, Signal and Histogram Explained

MACD compares a faster exponential moving average with a slower one. Its signal line smooths that difference, while the histogram commonly displays the difference between MACD and the signal.

TradeCopier Editorial TeamPublished
Layered glass chart shapes illustrating different ways to examine market movement
Editorial illustration. Examples and calculations below state their own assumptions.

Three quantities, not three independent signals

A common construction uses a 12-period EMA minus a 26-period EMA for the MACD line and a nine-period EMA of that line for the signal. The histogram is MACD minus signal. Fidelity documents this common setup. All three ultimately transform the same price history; agreement between them is not three independent pieces of evidence.

An EMA updates as previous EMA + alpha × (new price − previous EMA), with alpha commonly 2 / (n + 1). Initialization can use a seeded simple average or other conventions. A sufficiently long warm-up reduces, but does not magically eliminate, discrepancies caused by different history or missing observations.

Work through the components

Suppose a hypothetical fast EMA is 105.20 and the slow EMA is 104.70. MACD is +0.50 price units. If its signal line is +0.35, the histogram is +0.15. The fast average is above the slow average, and their difference is above its own smoothed value.

At the next completed bar, suppose the averages are 105.00 and 104.65. MACD is now +0.35. If the previous signal was +0.35 and the signal update receives that same value, it stays +0.35; the histogram is zero. The averages still have a positive difference, even though MACD has lost its earlier lead over the signal.

One bar later, let MACD equal +0.20. Using a nine-period EMA coefficient of 0.2, the signal becomes 0.35 + 0.2 × (0.20 − 0.35) = 0.32. The histogram is −0.12. A negative histogram therefore does not necessarily mean MACD is below zero or that the fast price average has fallen below the slow one.

Know what crossed

A zero-line crossing concerns fast versus slow price averages. A signal crossing concerns MACD versus its own smoother. The event time can differ. Some platforms render their principal MACD series as bars, making the word histogram ambiguous; inspect the indicator documentation and series labels before comparing screenshots.

MACD is expressed in the instrument’s price units and is not bounded like RSI. A reading of 2 has a different scale on a ten-unit instrument than on an instrument priced in thousands. Splits, adjusted history and continuous-futures adjustments can also alter past price differences. Cross-instrument comparisons require a declared normalization.

Turn a chart observation into a testable question

In a narrow range, small changes can repeatedly swap the order of two smoothed series. Costs can accumulate even when the chart makes each crossing look orderly. A complete rule specifies whether equality counts, whether decisions wait for bar close, how an opposite crossing is handled and what happens during unavailable quotes.

Use the moving-average crossover guide to distinguish a signal definition from execution. Compare RSI’s bounded construction, and record each proposed rule in a journal before assessing it on unseen data. A rising histogram alone supplies neither a stop price nor evidence that a strategy will remain profitable.

Questions and answers

Can MACD be positive while its histogram is negative?

Yes. The fast average can exceed the slow average while MACD lies below its signal line. Those comparisons use different reference quantities.

Are 12, 26 and 9 the best settings?

They are a common convention, not a universal optimum. Changing settings changes the hypothesis and requires a separate test with costs and unseen data.

Sources and further checks

Use the current source for your exact instrument, account and platform. Referencing a general specification does not establish support for every TradeCopier workflow.

  1. Fidelity: Moving Average Convergence/Divergence · Checked September 19, 2026
  2. MetaQuotes: Technical indicator interfaces · Checked September 19, 2026

Found an error? Send a correction with this page's address and a primary source. See our editorial standards for how we handle examples, claims and revisions.

Check the product workflow

Use these pages to check TradeCopier settings and connection requirements for your own setup.

Browse all resourcesCurrent resource: /learn/macd

Start Copying Smarter Today

Join traders who trust TradeCopier for speed, reliability, and performance.

Get Started Free