What is MACD? How it is calculated and read
MACD compares two exponential moving averages of different speeds to show trend strength and turning points.
Updated:
Loading chart…
Uses the prices of TSMC (2330) over roughly the last 120 trading days only to show how this indicator is drawn; it is not a stock recommendation. Source: Taiwan Stock Exchange.
Where the three lines come from
- DIF (fast line): the 12-day EMA minus the 26-day EMA.
- DEA (signal line): the 9-day EMA of DIF.
- OSC (histogram): DIF minus DEA.
An EMA is an exponential moving average: more recent prices weigh more, so it reacts faster than a simple average. The defaults 12, 26 and 9 are the most common settings, and this site lets you change them.
How to read it
- DIF above 0 means the short average is above the long average; below 0 means the opposite. The zero line is where the two averages are equal.
- DIF crossing above DEA, with OSC turning from negative to positive, and the reverse, are called golden cross and death cross. They only describe the relative position of the two lines.
- Longer histogram bars mean the gap between DIF and DEA is widening; shorter bars mean it is narrowing.
Limits
MACD is built from moving averages, so it lags: it describes price changes that already happened and does not predict. In sideways markets DIF and DEA cross often. Use adjusted prices, otherwise ex-dividend gaps distort the values.
Where to see it on this site
On a stock page, open the Technical tab and add MACD. After you change the fast, slow or signal days, the chart redraws immediately.
This article only explains the calculation and how to read a chart. It is not investment advice.
See it on this site
Sources
- Gerald Appel — MACD 的提出者(1970 年代)
Citing and copyright
This article is original content of “Tenmizu FinTech”. You are welcome to cite it; please credit the source and link to this page. Concepts or data that come from others are credited under “Sources”; their copyright belongs to the original authors.