Current implementation of Vector#macd returns macd and macdsignal. It would be good if it returns macdhist / histogram in addition to these values to be in line with standard practice, e.g. TA-Lib wrapper for python has the following signature macd, macdsignal, macdhist = MACD(close, fastperiod=12, slowperiod=26, signalperiod=9)
This is a fairly easy enhancement as histogram = series - signal and we are already returning series and signal. Calculation details can found here.
Current implementation of Vector#macd returns macd and macdsignal. It would be good if it returns macdhist / histogram in addition to these values to be in line with standard practice, e.g. TA-Lib wrapper for python has the following signature
macd, macdsignal, macdhist = MACD(close, fastperiod=12, slowperiod=26, signalperiod=9)
This is a fairly easy enhancement as
histogram = series - signal
and we are already returning series and signal. Calculation details can found here.