ta-lib-python
ta-lib-python copied to clipboard
output of MACD function
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.
macdsignal = EMA(macd, 9) macdhist = macd - macdsignal