Skip to content

MACD Histogram

2 messages · Konrad Hoppe, Jeff Ryan

#
Konrad,

Your error is in how you are calling MACD.  See the examples in ?MACD.
 You need to pass it the Close column if you want it to be what you
are expecting.

macd <- MACD(Cl(arl))
macdHist <- macd$macd - macd$signal
addTA(macdHist,type='h')

HTH,
Jeff
On Sun, Jan 10, 2010 at 5:31 AM, Konrad Hoppe <konradhoppe at hotmail.de> wrote: