Dear Michael ,
Thanks for your help. I figured out the fault. Actually i was running the
code for a very short time(less than one minute) and was then trying to make
chart out of that. The code works well if I run it for more than one minute.
Thanks again for your help.
Atanu
--
View this messag
Dear Ata,
I just tested it and it worked just fine for me. Perhaps you need to
test it during US market hours rather than when they are closed. (I'm
not sure what the yahoo finance website does then).
If you want to keep the whole getQuote object, you will probably have
to do a little work on the
the code you posted works well except that when i am using chartSeries() it
does not give any graphical stuff:
>chartSeries(P,type="auto")
>Error in if (on == "years") { : missing value where TRUE/FALSE needed
i also tried to store the entire getQuote output (OHLC object) by the above
manner but
You have to convert the long numbers to time objects; they are kept as
POSIXct values so just apply as.POSIXct() to them. However, you may
just want to store the time data as a string containing the same info:
try this,
library(quantmod)
tck = "YHOO"
filename = paste(tck, ".txt", sep="")
while(T
thanks for the help. but with that code it is possible to save the current
quotes in a text file(only the date-time in the first columnis not
preserved). when i used read.table and tried to convert it into an xts
object it shows error as it cannot take the indices as time object. same
case happens
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
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. ple
7 matches
Mail list logo