search for: getyahoodata

Displaying 9 results from an estimated 9 matches for "getyahoodata".

2010 Oct 10
1
Help needed for getYahooData in TTR package & writing the Yahoo data to excel
Dear all, I'm totally new to R. Recently I've been trying to use getYahooData in TTR package in order to download stock index daily open/high/low/close. The downloaded data is in the format of Open High Low Close Volume 2000-01-04 18937.45 19187.61 18937.45 19002.86 0 2000-01-05 19003.51 19003.51 18221.82 18542.55 0 2000...
2010 May 04
0
masking of objects between mtrace() and getYahooData()
I am using getYahooData from TTR to get daily data. When i do it standalone, it is fine. It also works fine inside my code. However, when i run code inside mtrace(), i always get the following error: Error in xts(cbind(adj[[1]], adj[[2]]), index(obj)): order.by requires an appropriate time-based object After a lot of...
2008 Oct 11
0
TTR getYahooData?
Would it be possible to get data from uk.finance.yahoo.com instead from finance.yahoo.com. Thanks
2010 May 17
1
Isn't aggreate.zoo supposed to work with POSIXct (zoo/TTR/xts issue)?
library(xts) library(TTR) ndx = getYahooData("^NDX") aa = ndx$Close bb = aggregate(aa, as.yearweek, tail, 1) The last operation takes forever, and then the bb dates are messed up. The following produces the desired result: time(aa) = as.Date(time(aa)) bb = aggregate(aa, as.yearweek, tail, 1) The index of ndx and aa is of POSIXct...
2010 Nov 21
1
abline(h=whatever) not working in candleChart() (in quantmod)?
Hello, all-- I am having some fun playing with the graphing in quantmod-- very nice! I am writing a function to calculate (and hopefully plot) support and resistance lines, but the usual plot call of "abline(h=value)" does not seem to work. Here's my code: require(quantmod) AAPL<-getYahooData("AAPL") candleChart(AAPL,subset="last 3 months",theme="white") addMACD() abline(h=290,col="red") The same sequence works fine if I'm just using a plain vanilla "plot" call, however. What am I missing? Do I need to call the line as a technical...
2009 Dec 19
1
as.xts convert all my numeric data to character
...23 1313782 0.70 3 2003-10-22 663452 646991 1310443 0.98 4 2003-10-23 579837 493493 1073330 0.85 5 2003-10-24 690948 630758 1321706 0.91 6 2003-10-27 512226 328592 840818 0.64 Now I'd like to merge this with the data I've downloaded using TTR. > Hx<- getYahooData("AAPL", "20030101", "20091130") > head(Hx) Open High Low Close Volume Unadj.Close Div Split Adj.Div 2003-01-02 7.180 7.460 7.175 7.400 6479600 14.80 NA NA NA 2003-01-03 7.400 7.465 7.295 7.450 5266200 14.90 NA NA NA 2...
2010 Jul 08
0
ttrTests Error
spData <- as.vector(getYahooData("SPY", start="19900101",end="20081231")[,"Close"]) > cr <- cReturns(spData, ttr = "sma", params=c(20)) Error in ind[t - k] <- pos[t - k + 1] - pos[t - k] : replacement has length zero I am getting the above error when running the cReturn...
2011 Apr 19
0
RHmm, mixture of gaussians, memory could not be "read" error
Hi, I'm trying to fit a hidden Markov model (mixture of Gaussians) to stock prices (Open, High, Low, Close) data. Here's my code: #First download the data with package TTR library(TTR) n <- 200 data <- getYahooData("GOOG", strftime(as.POSIXlt(Sys.time() - n*24*3600),format="%Y%m%d")) keep <- c("Open","High","Low","Close") data2 <- data[,keep] #Now fit the Hidden Markov Model library(RHmm); HMMFit(data2, nStates=4, nMixt=3,dis="MIXTURE&quo...
2010 May 05
0
R-help Digest, Vol 87, Issue 5
...checking a custom function for separability indices (Nikos Alexandris) 113. Re: Symbolic eigenvalues and eigenvectors (Steve Lianoglou) 114. Re: Delete rows with duplicate field... (kMan) 115. converting an objects list (Anthony Fristachi) 116. masking of objects between mtrace() and getYahooData() (zerdna) 117. Re: How to make predictions with the predict() method on an arimax object using arimax() from TSA library (Dennis Murphy) 118. question about 'write.table' (karena) 119. Re : Re : aregImpute (Hmisc package) : error in matxv(X, xcof)... (Marc Carpentier)...