similar to: quantmod package

Displaying 20 results from an estimated 900 matches similar to: "quantmod package"

2011 Oct 18
1
problem with quantmod package
i am using quantmod package.it get stock quotes from google finanace. but unfortunately i am not able to get the quotations of some stocks(e.g. NSE:TCS,NSE:SAIL ) through the "getSymbol" command of this package although they are available in the google finance website. anyone please help me. thanks in advance..... -- View this message in context:
2009 Aug 17
3
Newbie question re stddev, quantmod and performanceanalytics
Hi, I am trying to calculate the std dev of returns of YHOO so far i got: getSymbols("YHOO") retYHOO <- Return.calculate(Cl(YHOO)) > sd(retYHOO) YHOO.Close NA but i received an NA....can any assist? tks! -- View this message in context: http://www.nabble.com/Newbie-question-re-stddev%2C-quantmod-and-performanceanalytics-tp25001293p25001293.html Sent from the R help
2011 Dec 22
1
Trying to use chartSeries in quantmod
> colnames = c("date","price") > data = read.csv(file="data.csv", sep=",", header=F, nrows=261, skip=5, col.names=colnames) > library(quantmod) > data date price 1 2011-12-18 13.7825 2 2011-12-11 13.5500 ... ... ... 259 2007-01-07 10.8256 260 2006-12-31 10.8531 261 2006-12-24 10.8169 # Here's where I would like to use
2017 Sep 06
1
Using quantmod to obtain current Dow Jones index
R 3.4.1 OS X Colleagues, I am just learning to use the quantmod package and I have encountered something that I don?t understand. This works: getSymbols("^DJI") This does not work: getQuote("^DJI?) It returns only NAs: Trade Time Last Change % Change Open High Low Volume ^DJI <NA> N/A N/A N/A N/A N/A N/A N/A Two questions: 1. Is there some way to obtain the
2018 Jan 07
1
help needed on quantmod....
dear members, I am using quantmod to work with stock prices... I am trying to append the data got from getQuote to the one got by getSymbols. The function is named "apnd". The code is as follows: function(x){ if ((class(x) == "xts") || (class(x) == "zoo")){ sym <- deparse(substitute(x))
2012 Jul 27
1
Working with quantmod chartSeries and plot.zoo
Hi all, I'm a newbie to R and it has been very helpful to use your website. Unfortunately I've been struggling with my code now for two days so I wanted to ask few questions. I've been trying to create nice graphs to put into a pdf sheet but I'm having little problems with all the packages I've been using. So what I want to accomplish is create one pdf sheet with three graphs
2011 Feb 11
6
linear models with factors
i am trying to fit a linear model with both continuous covariates and factors. When fitted with the intercept term the first level of the factor is treated by R as intercept and the estimate of the effects of remaining levels(say i th level) are given as true estimate of i th level - estimate of 1st level.can any please help me? thanks in advance..... -- View this message in context:
2016 Apr 09
1
Quantmod abline and axis configuration
Hi all, I have this code I want to add two ablines like this abline(h=2400, lty=3, col="lightgrey") abline(h=400, lty=3, col="lightgrey") But doesnt wotk. I alo try to set ylim from 0 to max "Foa"+1000 but I?m not able ?Is it posible? require(latticeExtra) require(ggplot2) require(reshape2) suppressPackageStartupMessages(require(googleVis)) require(quantmod)
2011 Nov 20
2
Continuasly Compunded Returns with quantmod-data
Hey guys, i want to calculate the continuasly compounded returns for stock prices. Formula for CCR: R_t = ln(P_t/P_{t-1})*100 With R: First i have to modify the vectors, so that they have the same length and we start at the second observation. log(GOOG1[-1]/GOOG1[1:length(GOOG1)-1])*100 That does work with normal vectors. My Questions: 1) I want to use this for stock prices. so i
2012 Oct 11
2
simple parsing question?
I am using the getQuote function in the Quantmod package to retrieve the % change for a stock as follows: > getQuote("aapl",what=yahooQF(c("Change Percent (Real-time)"))) Trade Time %Change (RT) aapl 2012-10-11 03:41:00 N/A - -1.67% How can I extract the numeric "change %" which is being returned as a factor so that I can use it in other
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
2011 Nov 03
3
Extract Data from Yahoo Finance
Hi R ?users, ? I am using R-2.14.0 on Windows XP. ? May I request you to assist me for the following please. ? I like to extract all the fields (example: a : Ask, b : Bid, ??, w : 52-week Range, x: Stock Exchange) ?for certain period of time, say, 1 October 2011 to 31 October 2011. ? Is there any R-Package(s) & any R- script please? ? Once again, thank you very much for the time you have
2011 Jan 02
3
changing method of estimation in GLM
can anyone tell me how can i control the method of estimation (i.e. scoring method or Newton raphson method) in glm and compute deviance function ? -- View this message in context: http://r.789695.n4.nabble.com/changing-method-of-estimation-in-GLM-tp3170836p3170836.html Sent from the R help mailing list archive at Nabble.com.
2010 Nov 18
1
Accessing variables inside a namespace
Hello Group, I am trying to see if there is way to access data that is inside another namespace. For e.g. the addATR function in 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"
2008 Sep 09
2
yahoo finance into R
Hi R, I am familiar with the basics of R. To learn more I would like how to get data from Yahoo!finance directly into R. So basically I want a data frame or matrix to do some data analysis. How do I do this? Thank you very much. Thomas -- View this message in context: http://www.nabble.com/yahoo-finance-into-R-tp19385481p19385481.html Sent from the R help mailing list archive at Nabble.com.
2010 Aug 15
2
Adding colored background area to a time series plot
Hi, I am trying to add a rectangular colored background area to a plot of a time series of relative price changes. I believe that what I'm trying to do is very similar to the question and example given here: http://www.mail-archive.com/r-help at stat.math.ethz.ch/msg73948.html http://www.mayin.org/ajayshah/KB/R/html/g5.html My problem/difference is that my time series looks like so: >
2018 Feb 20
0
getQuote in quantmod malfunctioning
dear members, I have a list of stocks by name snlcq2: snlcq2 <- c("ICICIBANK.NS" "IBULHSGFIN.NS" "INDUSINDBK.NS" "INFY.NS" "KOTAKBANK.NS" "LTI.NS" "LT.NS" "LUPIN.NS" "M&M.NS" "M&MFIN.NS" "NTPC.NS" "ONGC.NS"
2008 Mar 22
2
intraday OHLC plot
I want to create a open/high/low/last plot of intraday data. I try to use the function plotOHLC from the tsteries package. I create my own multiple time series and then try to plot it. raw Data Format (file eurusd2.csv): "Date (GMT)" "Open" "High" "Low" "Last" 17-03-2008 00:00:00 1,5764 1,5766 1,5747 1,5750 17-03-2008 00:05:00 1,5749 1,5750 1,5741
2008 Apr 18
1
ts.plot() labeling x-axis
Hello, I have tried a few variants of a solution from the previous posts, but perhaps my syntax is wrong. I am using ts.plot(data_as_columns) and would like the label the x axis using some labels (in my case minutes after 9am). Any ideas how to use the plot params and the Axis function to accomplish this? Any help is very appreciated. Regards, Tom
2012 Jan 13
1
analytical solution of partial differential equation
i am trying to solve a partial differential equation analytically(PDE) in R . i have found some functions that do the stuff numerically. But that will not meet my purpose. is there any function to solve PDE analytically. please help. -- View this message in context: http://r.789695.n4.nabble.com/analytical-solution-of-partial-differential-equation-tp4291618p4291618.html Sent from the R help