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]]

