MACD¶
- czsc.MACD(close: array, fastperiod=12, slowperiod=26, signalperiod=9)[source]¶
MACD 异同移动平均线 https://baike.baidu.com/item/MACD%E6%8C%87%E6%A0%87/6271283
- Parameters:
close – np.array 收盘价序列
fastperiod – int 快周期,默认值 12
slowperiod – int 慢周期,默认值 26
signalperiod – int 信号周期,默认值 9
- Returns:
(np.array, np.array, np.array) diff, dea, macd