From: "Mulholland, Tom" <Tom.Mulholland at dpi.wa.gov.au>
To: Neuro LeSuperH??ros <neuro3000 at hotmail.com>,<r-help at stat.math.ethz.ch>
Subject: RE: [R] fSeries Technical Analysis rsiTA problem Date: Wed, 20 Apr
2005 09:23:03 +0800
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
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of Neuro
LeSuperH??ros
Sent: Wednesday, 20 April 2005 8:58 AM
To: r-help at stat.math.ethz.ch
Subject: [R] fSeries Technical Analysis rsiTA problem
fSeries Technical Analysis rsiTA problem
Hello,
I'm trying to use the rsiTA() function but keep getting this error:
Error in "[.timeSeries"(close, 1:(length(close) - 1)) :
only 0's may be mixed with negative subscripts
Here's is the first three lines of my data:
close
2004-04-18 20:00:00 8702.82
2004-04-19 20:00:00 8602.98
2004-04-20 20:00:00 8573.05
I have 250 days of data.
Here's the class
[1] "timeSeries"
attr(,"package")
[1] "fBasics"
And here's my version:
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 2
minor 1.0
year 2005
month 04
day 18
language R
I did load the libraries
library(fSeries)
library(fBasics)
Regards,