Skip to content
Syed Ibrahim Omer edited this page Apr 13, 2026 · 1 revision

MACD (Moving Average Convergence Divergence)

What it is

MACD is computed as the difference between two EMAs (short and long), plus a signal line (EMA of MACD).

Output columns

  • macd
  • signal_line
  • macd_hist (MACD minus signal line)

Formulas

[ MACD_t = EMA(close, short)_t - EMA(close, long)_t ]

[ signal_line_t = EMA(MACD, signal)_t ]

[ macd_hist_t = MACD_t - signal_line_t ]

Configuration

  • macd_short
  • macd_long
  • macd_signal

Notes

  • Histogram should equal macd - signal_line (this is how it’s computed).

Related pages:

Clone this wiki locally