charton API / @chart-on/ta / macd
Function: macd()
macd(
values,fast,slow,signal,out?,state?):Macd
Defined in: momentum.ts:114
Moving average convergence divergence: the fast minus the slow ema, its signal-bar EMA, and the histogram as the line minus the signal (some tools draw twice that). Lookback max(fast, slow) + signal - 2 (the MACD line itself starts signal - 1 bars earlier).
Pass state to keep the two averages for macdAt.
Parameters
values
fast
number
slow
number
signal
number