Skip to content

fSeries Technical Analysis rsiTA problem

2 messages · Mulholland, Tom, Neuro LeSuperHéros

#
Should you be using rsiTA(tsx[,2],14). If you look at the function you will see it is expecting just the values you want in the calculation. 

If you give it a matrix it treats the whole matrix as being price data.

Tom
#
Nope, its not that.

I only have one column in there.  So
Error in "[.timeSeries"(tsx, , 2) : subscript out of bounds

I get the orginal error with:
Error in "[.timeSeries"(close, 1:(length(close) - 1)) :
        only 0's may be mixed with negative subscripts

Thanks for the answer anyways.