1999issue C101-4
Constructing MACD from exponential-average spreads for crossover and divergence
MACD is an oscillator built as the gap between a shorter and a longer exponential average of price, plotted around a horizontal equilibrium. The fast line is that spread, the signal line is an exponential average of the fast line, and the MACD histogram is the residual between them. Archive rules then write a moving-average crossover, its place versus the zero line, and a price-oscillator mismatch as stated conditions.
- The fast line is a shorter exponential average of price minus a longer one, with 12-period and 26-period lengths presented as the usual pair, and the signal line is a nine-period exponential average of that fast line.
- The MACD histogram is the residual of fast line minus signal line, drawn as bars around the zero line so bar height tracks separation; shrinking bars after an extreme are treated as an earlier momentum-fade cue than a zero-line recross.
- A long-side moving-average crossover is the fast line crossing above the signal line, and a short-side reading is a cross below; a cross near the zero line is treated as a stronger directional setup than a cross far from it.
- Divergence is price making a new extreme while MACD fails to confirm, treated as a delayed reversal hypothesis that can print false readings, and the same crossovers or divergences are not leaned on when the two lines flatten in a one-way move.
Three layers of MACD
MACD is an oscillator built as the gap between a shorter and a longer exponential average of price, plotted around a horizontal equilibrium. The fast line is the raw MACD value, equal to the shorter exponential average minus the longer one. The signal line is an exponential average of the fast line that serves as the crossover partner. The MACD histogram is the bar series of the residual between the fast line and the signal line, used to watch slope before a line-form event.
Lookbacks and the smoothing constant
The fast line is a shorter exponential average of price minus a longer one, with 12-period and 26-period lengths presented as the usual pair. The signal line is a nine-period exponential average of that fast line. The lookbacks used to form one side of a moving-average-crossover reading may differ from those used on the other side.
Each exponential average is seeded with a simple mean over its lookback, then updated with the smoothing constant. That weight is 2/(n+1) on the newest price, with the complement applied to the prior average. The 12-, 26-, and 9-period weights shown are 0.154, 0.074, and 0.2.
Histogram residual and slope
The histogram is the residual of fast line minus signal line, drawn as bars around the zero line so bar height tracks how far the two averages have separated. The zero line is the equilibrium of the oscillator. Histogram bars that shrink after an extreme are treated as an earlier momentum-fade cue than waiting for the line form to recross the zero line.
Moving-average crossover and the zero line
A moving-average crossover is the condition in which the fast line crosses the signal line, optionally filtered by distance from the zero line. A long-side reading is defined when the fast line crosses above the signal line, and a short-side reading when it crosses below. A cross near the zero line is treated as a stronger directional setup than a cross far from it. Where a crossover sits relative to the zero line is part of the signal rule.
Divergence as an unconfirmed extreme
Divergence is a mismatch in which price makes a new extreme that the oscillator does not confirm. That mismatch is treated as a delayed reversal hypothesis that can print false readings before price turns.
Range, stretch, and one-way markets
When price stays in a range, the oscillator is used to mark pivot and stretched-move conditions around zero. Overbought-oversold means extreme distance of the oscillator from zero, treated as a stretched-move reading rather than a standalone entry. In a persistent one-way move the two lines can flatten and hug each other, which is given as a reason not to lean on the same crossovers or divergences.
Timing and confirmation charts
A shorter chart is assigned the timing role and a longer chart the confirmation role when both periodicities agree on direction.
Intel MACD fast line and signal line from the spreadsheet

The source workbook uses 12- and 26-day EMAs for the fast line and a nine-day EMA of that line as the signal. Fast-line values begin only after the 26-day average is populated; signal-line values begin after nine fast-line observations.
All readings on this track · 80 readings
- 1988Rebuild MACD-Mo and MACD-H before treating them as signals
- 1989Four-span MACD lookbacks as perishable parameters
- 1989Weekly then daily MACD confirmation on individual stocks
- 1991Regime-gated MACD and stochastic rules inside a checklist
- 1991Constructing MACD signal lines and divergence tests
- 1991MACD parameter order and cycle phase lag
- 1992Lengthened bond MACD as an equity regime filter
- 1992Long-horizon MACD construction from paired exponential averages
- 1993Constructing a signed ten-point trend filter
- 1994Constructing lag-reduced double exponential averages for MACD
- 1994Seeding DEMA2 filters to build a MACD signal
- 1994Constructing MACD from lag-reduced exponential averages
- 1994TEMA1 from nested exponential averages, then a two-horizon MACD
- 1994Constructing entry and exit on a relative-strength MACD
- 1994Constructing a relative-strength MACD crossover spreadsheet
- 1995Consensus presignal filters for Relative Strength Index, MACD and the Stochastic oscillator
- 1997Confirm the MACD turn with price, then exit on the histogram
- 1997Reconstructing a stochastic oscillator, MACD, and a triple-smoothed oscillator
- 1997Moving-average windows before crossovers and MACD
- 1999Second-stage MACD on relative-strength inputs
- 1999Constructing MACD from exponential-average spreads for crossover and divergence
- 1999Coding candlesticks into numeric indicators
- 2001Second-low confirmation with a percentage oscillator and money-flow filter
- 2001Constructing MACD from exponential average spreads and a signal line
- 2002Separate bounded and trend-following oscillator rules
- 2002Sort the regime before assigning MACD and stochastic jobs
- 2002Building classic divergence filters from RSI and MACD
- 2002Weekly highs and lows as trend gates
- 2002Constructing channel-normalized Fisher reversal signals
- 2002Affine-price and the Fisher transform as a constructed companion to MACD
- 2003Regularized EMA construction with a MACD line and a thrust oscillator
- 2003Curvature-penalized exponential averages versus MACD
- 2003MACD, moving averages, and a trend filter as one timing system
- 2003Fractional MACD and linear-regression reversal construction
- 2004Weekly MACD-histogram timing of bear-market rallies
- 2004Candlestick triggers filtered by MACD divergence
- 2004Staging energy-complex tops with trendline, breakout, and MACD
- 2005Selling climax holds versus fails
- 2006Treat a sideways Wave as permission before a breakout
- 2007MACD with a Stochastic oscillator for spotting trend reversals
- 2007Rebuilding an S&P 500 fifth-wave count after a broken target
- 2007Constructing MACD, RSI, and stochastic confirmation for futures
- 2007MACD histogram divergence needs a confirming close
- 2007Write the plan as a stack: ratio, boundary, then oscillators
- 2008MACD divergence and Stochastic oscillator confirmation on lumber futures
- 2008Assign confirmation, timing, and a stop before a currency pair is tested
- 2008Confirm the ten-bagger launch path before the MACD exit
- 2008Reading the offloaded evidence file
- 2008A Leader companion for MACD direction warnings
- 2008Relative strength exits with MACD averages and RSI
- 2008Assign one job per indicator in a three-screens rule set
- 2008Sequencing RSI, MACD, and average crossovers
- 2010Constructing the Schaff Trend Cycle from MACD and a dominant-cycle window
- 2010Schaff Trend Cycle as a MACD and Stochastic oscillator combination
- 2010Combining Relative Strength Index, the stochastic oscillator, and MACD as slope filters
- 2010Short-term wave and ratio clues without direction calls
- 2010A precise pullback entry and an unplanned profit-protection exit
- 2010Filtering MACD false signals with trendline breaks
- 2011Vendor feeds as an input variable in a MACD evaluation
- 2012Out-of-the-money versus in-the-money option sensitivity to implied volatility
- 2012MACD window tuning as hold-time control
- 2012Combining a moving-average crossover with MACD and support-resistance
- 2012Testing a published MACD entry with a histogram and signal-line agreement filter
- 2012Treat sample systems as a lab before live rules
- 2013Constructing moving averages and MACD from one price series
- 2013The next-bar price that forces a MACD signal-line cross
- 2013Constructing next-bar MACD reversal prices
- 2013Constructing inverted MACD reversal prices
- 2014Shared-filter combinations of the stochastic oscillator, MACD, and RSI
- 2014Square-root lookbacks for combined MACD and RSI
- 2015Audit open interest and trend before trusting oscillator crossovers
- 2016MACD without a signal line, confirmed by moving-average trend filters
- 2016Use RSI, MACD, and a moving average as a market-health consensus
- 2016MACD line versus histogram is a display problem first
- 2017Weekly and daily MACD on a single daily chart
- 2017Weekly and daily MACD as a stacked momentum filter
- 2017Nested weekly and daily MACD from paired EMA spreads
- 2018Weekly and daily PPO scale versus MACD, with bounded RSI and stochastic readings
- 2018Constructing a weekly and daily percentage price oscillator
- 2020Constructing Wyckoff tape reading with MACD, moving-average, and RSI filters