ta.macd

MACD: returns [macdLine, signalLine, histogram]. macdLine = ema(fast) - ema(slow), signal = ema(macdLine, signal).

ta.macd(source: float, fastlen: simple int, slowlen: simple int, siglen: simple int) -> series [float, float, float]

Parameters

Example

[m, s, h] = ta.macd(close, 12, 26, 9)