quantmod package
Generally getting intraday/real-time data requires some sort of (paid)
source, but if you are willing to just strip free quotes off the
internet non-stop, perhaps something like this:
while(TRUE) {
cat( file = "FileName.txt", c(getQuote(YHOO), recursive = T), "\n",
append = T)
}
# You could get better performance from a textConnection depending on
how often you intend to do this
You'll have to read.table() the .txt file into an xts before being
able to apply most of the quantmod bells and whistles to it.
Look at chartSeries() for the graphical stuff. As far as combining
them, you could put a chartSeries() command in the loop, but that's
going to slow things down since it will require recharting each time.
Michael
On Thu, Oct 20, 2011 at 3:03 AM, ATANU <ata.sonu at gmail.com> wrote:
i am new to the quantmod package . so if the answer is trivial please excuse me. i want to study stock values within a day. i get current stock updates using getQuotes and then want to ?produce usual quantmod graphs with that values. also the graph should be able of adding technical indicators. please help. in addition it will be helpful if anyone suggests how to run that code continuously to get constantly updated charts. thanks in advance for any suggestion. -- View this message in context: http://r.789695.n4.nabble.com/quantmod-package-tp3921071p3921071.html Sent from the R help mailing list archive at Nabble.com.
______________________________________________ R-help at 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.