MACD stands for moving average convergence divergence. It measures the gap between a faster and a slower average of price, and it is drawn as two lines and a bar chart under the price chart.
The formula, written in full
- Fast line: the 12 period exponential moving average (EMA) of the close.
- Slow line: the 26 period EMA of the close.
- MACD line: fast line minus slow line.
- Signal line: the 9 period EMA of the MACD line.
- Histogram: MACD line minus signal line.
- 12, 26 and 9 are the usual settings. Changing them makes a different indicator.
An EMA gives more weight to recent closes than to old ones, which is why MACD reacts sooner than a plain average would.
How people read it
- Signal line cross: the MACD line crossing above the signal line is read as strengthening momentum, below as weakening.
- Zero line cross: the MACD line crossing above zero means the 12 period average has moved above the 26 period one.
- Divergence: price makes a new high while MACD does not. This is a comparison of two swing points and depends on how the swings are picked.
What it cannot tell you
- It is made from past prices, so every signal is late by construction.
- In a sideways market the lines cross constantly and most crosses go nowhere.
- Its height is not comparable between markets: MACD is measured in the price's own units.
How we will test it
We will fix one rule per use (signal line cross, zero line cross), run it on many markets and years with realistic costs, keep part of the data unseen until the rule is fixed, and report sample size, spread and the markets where it failed. Divergence needs a written swing rule first and is tested separately. Last tested: pending re-run. No result is stated here until it is run and dated.
Questions people type
How does the MACD indicator work? It subtracts a slow average from a fast one and smooths the result with a signal line.
What are the best MACD settings? There are no best settings. 12, 26 and 9 are the default and any change should be tested.
Does MACD work? It depends on the rule, the market and the costs. The test above is how we measure it; we do not state an answer before it is run.
Related
Moving averages and trend, as we test them, RSI indicator, backtesting, method and limits, position size calculator, how trading expectancy works.
Education only. Nothing here is financial advice or a signal.