ta-lib-python icon indicating copy to clipboard operation
ta-lib-python copied to clipboard

output of MACD function

Open Jacques2101 opened this issue 4 years ago • 1 comments

Hi, I am trying to use: macd, macdsignal, macdhist = talib.MACD(close, fastperiod=12, slowperiod=26, signalperiod=9) but not clear what are in Macd, macdsignal & macdhist variables ?

I suppose that: macd = EMA(close, 26)-EMA(close, 12) macssignal = macd - EMA(macd, 9) ??? not sure macdhist ?????

thx.

Jacques2101 avatar Nov 02 '21 18:11 Jacques2101

macdsignal = EMA(macd, 9) macdhist = macd - macdsignal

trufanov-nok avatar Nov 03 '21 22:11 trufanov-nok