TA-Lib / ta-lib-python

Python wrapper for TA-Lib (http://ta-lib.org/).
http://ta-lib.github.io/ta-lib-python
Other
9.49k stars 1.74k forks source link

output of MACD function #475

Open Jacques2101 opened 2 years ago

Jacques2101 commented 2 years ago

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.

trufanov-nok commented 2 years ago

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