Skip to content

Trading glossary

MACD

Trading involves risk. You could lose more than your deposit.

MACD tracks the distance between two exponential moving averages of the same price series, plotting that distance, a smoothed version of it, and the gap between the two.

Short for moving average convergence divergence. The construction has three parts. The MACD line is one exponential moving average of closing prices subtracted from a shorter one, conventionally the twelve period average less the twenty six period average. The signal line is a nine period exponential average of the MACD line itself. The histogram is the MACD line less the signal line, drawn as bars around zero. Those three windows are a convention inherited from the indicator's original description, not a property of any market, and other windows are in common use.

What the reading states is narrow. Because the MACD line is a difference between two averages, it is positive when the shorter average sits above the longer one and negative when it sits below, so it says the same thing a moving average crossing says, expressed as a distance rather than as an event. The histogram then measures how fast that distance is changing. Chart readers describe the histogram turning while price continues in the other direction as divergence, and treat it as a convention worth noticing rather than as a signal with a settled record: published tests of divergence reach different conclusions depending on the market, the windows and the period tested.

Two things trip readers up. The indicator is built from averages of prices that have already printed, so it is a lagging indicator by construction, and no choice of window removes the lag. And it has no fixed scale: the MACD line is quoted in the price units of the instrument, so a reading of two on one instrument and a reading of two on another describe nothing comparable, which is what separates it from an oscillator bounded between fixed limits.

How it is calculated

The MACD line equals the shorter exponential moving average minus the longer one, the signal line is an exponential moving average of the MACD line, and the histogram equals the MACD line minus the signal line.

Worked example. Illustrative figures, not YAL prices or terms.

One bar of a twelve, twenty six, nine construction

Twelve period exponential average of the close
101.40
Twenty six period exponential average of the close
100.90
MACD line
0.50
Signal line, nine period average of the MACD line
0.35
Histogram
0.15

Illustrative figures, not YAL prices or terms. The MACD line is quoted in the price units of the instrument, so these values describe this series only and are not comparable with the same indicator on another instrument.

Where you see it

On MetaTrader 5 the indicator is installed from Insert, Indicators, Oscillators, where its parameters are Fast EMA, Slow EMA and MACD SMA. Its built in version draws the MACD line itself as the histogram and smooths that line with a simple rather than an exponential average, so its picture differs from the classic construction described above.

In the curriculum

Taught in 1 lesson.

Part of an ordered curriculum of 139 lessons across 10 modules, free and with nothing behind a sign-up.

See the full syllabus

Get started

Open your account in four steps.

A clear path from sign-up to your first trade, in four steps.

No depositNo documents

  1. 01/ 04step 1 of 4

    Register

    A few details to get started.

    No deposit to open

  2. 02/ 04step 2 of 4

    Verify

    Confirm your identity, securely.

    ID and proof of address

  3. 03/ 04step 3 of 4

    Fund

    Add money by bank transfer or card.

    From $0

  4. 04/ 04step 4 of 4

    Trade

    Go live on the platform you already know.

    MetaTrader 5

Cookies on this site

Some cookies are needed to make the site work. With your permission we also use analytics cookies to see which pages are read, so we can improve them. You can change your choice at any time.