Node reference

MACD — Moving Average Convergence Divergence

Trend + momentum from the gap between a fast and slow EMA, with a signal line.

Rev. 2026.06

MACDindicator
InputsOutputs
Source
source · number
MACD
Line
line · number
Signal
signal · number
Histogram
histogram · number
Configure
fastPeriod
— Fast moving-average length
default 12
range 1–200
slowPeriod
— Slow moving-average length
default 26
range 1–200
signalPeriod
— Signal-line smoothing length
default 9
range 1–100

What it does

Outputs the MACD line (fast EMA − slow EMA), its signal line, and the histogram (their difference).

What happens

All three series update each candle. Warmup is roughly the slow period plus the signal period.

When to use

Momentum-shift entries (MACD crossing its signal line) or histogram-based filters.

Gotchas

  • Three outputs — wire the one you mean (line vs. signal vs. histogram).