Displaying 20 results from an estimated 4000 matches similar to: "quantmod plot trendline"
2009 Sep 28
2
Trendline and R square value
Hi
I would like to display the trendline and the R-square value in a xy scatter in R. For example if I want to plot f vs g I add the trendline using the commands below
>library(quantreg)
>plot(f,g)
>abline(rq(g~f))
however I don't know how to display the R2 in the graph.
Thank you in advance.
Kind regards
Maria
[[alternative HTML version deleted]]
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:
2012 May 22
1
Quantmod, Xts, TTR and Postgresql
Hi Everyone,
I'm currently using the latest build of R and R-Studio server (both are
amazing products)
I'm still very new to this but I came across this issue:
I'm trying to do a select from postgres and put the data into and xts
object like so:
# Libs
library('RPostgreSQL') # http://code.google.com/p/rpostgresql/
library('quantmod')
library('TTR')
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)
2006 Jun 19
4
Qurey : How to add trendline( st. line) in Graph
How to add trendline (i.e. straight line passing through maximum points)
in graph.
I have worked on the data given below.
Please tell me how to add trendline in the graph.
The script is as follows
=================================== start
====================================================
# The data is as follows
data <- c( 0.01, 0.02, 0.04, 0.13, 0.17 , 0.19 , 0.21 , 0.27 , 0.27 ,
2009 Oct 09
4
Trendline for a subset of data
Dear all,
I am using abline(lm ...) to insert a linear trendline through a portion of my data (e.g. dataset[,36:45]). However, I am finding that whilst the trendline is correctly displayed and representative of the data portion I've chosen, the line continues to run beyond this data segment and continues until it intersects the vertical axes at each side of the plot.
How do I display the
2006 Jun 16
0
The qurey about kolmogorov-smirnov test & adding the trendline to graph
I am hereby forwarding the data & method use to calculate the
Kolmogorov-Smirnov goodness of fit test made manually by me in R
launguage which deffers with the actual inbuilt formula as shown below.
Further I have plot the graph in R. In that graph how to add trendline
(i.e. straight line passing through maximum points in plot) to a Plot.
R script is as follows please run this script to see
2009 Mar 19
0
Possible bug in charting: shaded region? (quantmod)
Dear Jeff and all,
I think there is bug in plotting shaded regions: the region is one bar off on the left side. Can somebody please confirm this?
By the way, I like this quantmod package a lot! Thanks for the great work!
Regards,
--Chang Lin
Sent from my Verizon Wireless BlackBerry
2016 Apr 08
0
Is this a bug in quantmod::OpCl?
On 04/06/2016 07:58 PM, Joshua Ulrich wrote:
> On Tue, Apr 5, 2016 at 9:17 PM, James Hirschorn
> <james.hirschorn at hotmail.com> wrote:
>> OpCl works on xts objects but not on quantmod.OHLC objects. Is this a bug?
>>
> Thanks for the minimal, reproducible example.
>
> Looks like a bug. There's no as.quantmod.OHLC.xts method, so the zoo
> method is
2016 Apr 08
0
Is this a bug in quantmod::OpCl?
On Fri, Apr 8, 2016 at 10:51 AM, James Hirschorn
<james.hirschorn at hotmail.com> wrote:
>
>
> On 04/06/2016 07:58 PM, Joshua Ulrich wrote:
>>
>> On Tue, Apr 5, 2016 at 9:17 PM, James Hirschorn
>> <james.hirschorn at hotmail.com> wrote:
>>>
>>> OpCl works on xts objects but not on quantmod.OHLC objects. Is this a
>>> bug?
2012 Mar 16
1
Basic Quantmod help needed
Hi,
I'm new to R and Quantmod. I'm trying to make use of Quantmod's features
however I'm failing at the first hurdle and I'm finding most R documentation
a little cryptic.
I have some minutely data for the same day for a stock in an existing
timeSeries (ts) object. For example:
Date time price volume
2012-03-12 08:01 45.01 10000
2012-03-12 08:02
2012 Jul 07
1
Getting objects from quantmod ticker list
Hi all,
I would need to put datas downloaded with quantmod into a matrix or a data
frame.
Suppose to start from here:
*require(quantmod)
ticker.list <- c('AAA', 'ALTSALES', 'AMBNS', 'AMBSL', 'BAA', 'EMRATIO',
'FEDFUNDS', 'GASPRICE', 'GS1', 'GS10', 'GS20', 'LNS14100000', 'MORTG',
2016 Apr 06
2
Is this a bug in quantmod::OpCl?
OpCl works on xts objects but not on quantmod.OHLC objects. Is this a bug?
Example error:
x.Date <- as.Date("2003-02-01") + c(1, 3, 7, 9, 14) - 1
set.seed(1)
x <- zoo(matrix(runif(20, 0, 1), nrow=5, ncol=4), x.Date)
q <- as.quantmod.OHLC(x,c("Open","High","Low","Close"))
# error
OpCl(q)
#> Error in `colnames<-`(`*tmp*`, value =
2018 Mar 15
1
Adjusting OHCL data via quantmod
Hello,
I'm trying to do two things:
-1. Ensure that I understand how quantmod adjust's OHLC data
-2. Determine how I ought to adjust my data.
My overarching-goal is to adjust my OHLC data appropriately to minimize the
difference between my backtest returns, and the returns I would get if I
was trading for real (which I'll be doing shortly).
Background:
-1. I'm using Alpha
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
2011 Oct 20
4
quantmod package
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
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
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 Mar 18
1
quantmod Some Single Letter Tickers Not getFin
Hi,
I have been learning the quantmod package over the last several days. I
went to check some of my data pulls against other sources and was
surprised to find that a few tickers that have single characters do not
successfully scrape from Google Finance using getFin(). Particularly
require(quantmod)
getFin("A")
getFin("E")
getFin("F")
getFin("G")