[R-SIG-Finance] quantmod: addTA is broken?

Michael Zak zakdump at gmail.com
Sun Dec 14 11:14:00 CET 2008


Hi there

I have here some financial charts which I did a couple of months ago  
with quantmod. Today, I recharted my data with chartSeries(), which  
works fine. As soon as I add some indicators with addTA() I get a  
error message.

For example:
require(quantmod)
require(TTR)
getSymbols("YHOO")
chartSeries(YHOO)
min55 <- runMin(YHOO$YHOO.Low, 55)
addTA(min55, on = 1)


I get this message:

Warning messages:
1: In merge.zoo(lchob at xdata, ta, join = "left", retside = c(FALSE,  :
   Index vectors are of different classes: POSIXt POSIXt integer integer


How can I solve this?

Thank you, Michael



More information about the R-SIG-Finance mailing list