cr<-cReturns(spData,ttr="MACD")
Error in ind[t - k] <- pos[t - k + 1] - pos[t - k] :
  replacement has length zero
> cr<-cReturns(spData,ttr="macd4")


Why is the above error coming? macd4 works alright ( which is a custom
function built by the ttrTests author) while MACD doesnt work.

Thanks
-- 
'Raghu'

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to