Displaying 1 result from an estimated 1 matches for "ttrc".
Did you mean:
ttr
2010 Nov 18
1
Accessing variables inside a namespace
...n the quantmod package calculates the ATR
using the TTR package and then plots it to the graph.
Now since it has already calculated the info that I need, can I access that
data which if I look at the function code is stored in a variable called
"atr"
library(TTR)
library(quantmod)
data(ttrc)
x <- subset(ttrc,select=c("Date","Open","High","Low","Close"))
x.z <- read.zoo(x)
x.xts <- as.xts(x.z)
chartSeries(x.xts)
addATR()
Just so that I don't need to recalculate the same stuff again. I believe the
data hasn't "exp...