Research method
MACD: how it is built and what the archive does with it
MACD is the gap between a fast and a slow exponential average of the close, plus a smoothed copy of that gap. 120 readings in the TradersWeek archive use it; in 79 it is the main subject, and most of them treat a MACD cross as a hypothesis to confirm, not a trade.
- Output
- Signal
- Input
- Closing prices of one instrument, or a ratio of two closes
- Horizon
- Set by the slow average; 26 bars in the standard set
- Best use
- Marking momentum turns inside a trend that another tool has already defined
- MACD line = EMA(12) − EMA(26) of the close; signal line = EMA(9) of the MACD line; histogram = MACD line − signal line. The 12/26/9 set is Gerald Appel's convention.
- MACD is measured in price units, so a reading of 2.0 on one instrument says nothing about 2.0 on another; compare signs, slopes and crosses, not levels.
- A histogram crossing zero is the same event as the MACD line crossing its signal line, which is why the formula can be solved for the next close that would cause it.
- In the archive MACD appears most often beside moving averages (42 readings), RSI (25) and divergence (19).
How the method is built, and where it has been read
Depends on
Often reviewed together
Breakout confirmation4 readings
Often reviewed together
Average Directional Index5 readings
Often reviewed together
Moving-average crossover7 readings
Often reviewed together
Stochastic oscillator12 readings
Often reviewed together
Relative Strength Index13 readings
Often reviewed together
Exponential smoothing13 readings
Often reviewed together
Price-indicator divergence16 readings
Derived from
Moving averageconfidence 0.78
MACD is constructed from exponential moving-average spreads and a signal line, so the indicator is derived from moving averages rather than only co-occurring with them.
Read in the archive24 of 120 readings
How MACD is calculated
Take two exponential moving averages of the close: a fast one (12 bars) and a slow one (26 bars). An exponential average gives each new close a weight of 2 / (n + 1) and keeps the rest of the previous value, so it starts from a simple average of the first n closes and is updated recursively from there. Gerald Appel introduced the construction in the late 1970s.
MACD line = EMA(fast) − EMA(slow). It is positive when recent closes sit above the longer average and turns negative when they fall below it. The signal line is a 9-bar exponential average of the MACD line itself, and the histogram is the MACD line minus the signal line. The histogram shows whether the gap between the two averages is widening or narrowing, and it changes direction before the lines cross.
Why two charts can show a different histogram on the same data
Some platforms multiply the histogram by 2; TradingView does not. The lines are identical and the crosses happen on the same bar, but the bars are twice as tall, so a histogram threshold copied from one platform is wrong on the other. The seed also matters: an average that starts from a simple mean of the first n closes and one that starts from the first close drift apart at the start and converge only gradually. On a short history, check both before you compare readings.
Parameter set
The choices that change the reading
- fast
- Fast average
Lookback of the shorter exponential average.
Default: 12A shorter fast average reacts earlier and also crosses back more often in a range. - slow
- Slow average
Lookback of the longer exponential average.
Default: 26Sets the horizon of the whole indicator; copying it across timeframes copies an assumption about cycle length. - signal
- Signal line
Lookback of the average taken of the MACD line.
Default: 9A longer signal line delays every cross and every histogram zero-crossing. - input
- Input series
What the averages are taken of: the close, or a ratio such as stock to benchmark.
Default: CloseOn a ratio, MACD measures relative momentum, not price momentum; the same cross means something else.
What 120 readings in the archive do with MACD
The TradersWeek research archive links MACD to 120 readings: 5 in the 1980s, 27 in the 1990s, 44 in the 2000s, 41 in the 2010s and 3 in the 2020s. In 79 of them MACD is the main subject; elsewhere it is one input among several.
The most frequent companions are moving averages (42 readings), RSI (25), divergence (19), exponential smoothing (17), the stochastic oscillator (16), moving-average crossovers (10) and ADX (7). A recurring pattern gives each tool one job: a moving average or a regime filter decides direction, MACD grades the trend, and a faster oscillator times the entry.
The readings where MACD is the subject return to four themes:
- Rebuilding the averages. Many readings swap the plain exponential average for a lag-reduced one (double or triple smoothing, regularised or fractional versions), seed it explicitly and keep the fast-minus-slow structure. The point is that a named MACD variant has to be recomputable from price before it is treated as a signal.
- MACD on a ratio. Readings from 1994, 1999 and 2008 replace the close with a security-to-benchmark ratio, so the crosses mark relative strength turning, and use the same series to decide when to exit.
- Weekly and daily together. A workflow from 1989 reads the weekly histogram first and daily crosses only in its direction; readings from 2017 and 2018 fold weekly-scale and daily MACD into one daily series, and one restates it as a percentage oscillator so the gap is comparable across prices.
- Solving for the next close. Because the histogram is zero exactly when the lines meet, three readings from 2013 invert the formula into the next-bar price that would force a cross, hold MACD flat or put the histogram at zero, and plot those prices on the chart.
Where it fits in a workflow
Use MACD after the trend question has been answered. If a higher timeframe or a moving average says up, a histogram turning up from below zero marks momentum returning in that direction; a new price high with a lower histogram high is a divergence that several readings only accept after a confirming close. Fix the three lookbacks, the input series and the confirmation rule before testing, and keep them fixed while you test.
On the TradersWeek chart
MACD in the terminal defaults to 12, 26 and 9 and draws three outputs: the MACD line, the signal line and the histogram. Each average starts from a simple mean of its first window, and the histogram is the MACD line minus the signal line without the ×2, as on TradingView, so crosses and bar heights match there. Histogram bars take four colours by sign and direction: above zero and rising, above zero and falling, below zero and falling, below zero and rising. Values are shown with the decimals of the instrument, because MACD is in price units.
