MACD
平滑异同移动平均线
Stock TechnicalP0 CoreTrendApplies to: US stocks
Definition
Difference between two EMAs, measuring trend direction, strength and momentum shifts.
Formula
DIF=EMA(C,12)−EMA(C,26); DEA=EMA(DIF,9); Histogram=(DIF−DEA)×2 (×2 is the Chinese TongDaXin/THS convention; international platforms StockCharts/TradingView do not multiply by 2, i.e. DIF−DEA)
Default parameters
{
"fast": 12,
"slow": 26,
"signal": 9
}How to read it
DIF crossing above DEA = golden cross (buy), crossing below = death cross (sell); new price high while DIF does not = top divergence (bearish).
InputscloseOutputoscillatorLibraryMACD
Data source: C. Public knowledge, not investment advice.
See MACD computed live on popular US stocks →
Related indicators
Reference metadata — public, well-known indicator definitions. Not investment advice.