joshuaulrich / TTR

Technical analysis and other functions to construct technical trading rules with R
GNU General Public License v2.0
325 stars 102 forks source link

Add histogram to MACD results #94

Open nocodehummel opened 4 years ago

nocodehummel commented 4 years ago

Description

MACD function returns the MACD and the signal line, but is missing the data for the histogram.

Expected behaviour

MACD function to also return a column with the data for the histogram (MACD - signal). In principle this calculation can also be done outside TTR, but since it is part of the MACD it should be returned as result from the function.