Displaying 6 results from an estimated 6 matches for "charttheme".
2011 Dec 22
1
Trying to use chartSeries in quantmod
...39;m
stumped, so I try several different things
> chartSeries(date, price, data=data)
Error in try.xts(x, error = "chartSeries requires an xtsible object") :
chartSeries requires an xtsible object
> ?chartSeries
> chartSeries(date, price, type="candlesticks", theme = chartTheme("black"))
Error in try.xts(x, error = "chartSeries requires an xtsible object") :
chartSeries requires an xtsible object
> chartSeries(date, price, type="candlesticks", theme = chartTheme("black"), subset='2007::2008-01')
Error in try.xts(x, erro...
2016 Apr 09
1
Quantmod abline and axis configuration
...require(rCharts)
Foa<-as.xts(read.zoo("fa.txt",col.names=c("Date","LAST"), sep="",dec=",",
format="%d/%m/%Y"))
chartSeries(Foa,theme="white",TA = c(addBBands(50,2), addBBands(100,2),
addBBands(250,2), ylim(0,4000))
)
t=chartTheme()
t$BBands$fill="#ff666633"
reChart(theme="white")
t$BBands$col=c('red','blue','green')
t$BBands$col='blue'
reChart(theme="t")
[[alternative HTML version deleted]]
2011 May 05
1
quantmod's addTA plotting functions
...TA <- function(from = "2010-06-01") {
getSymbols("^GSPC", from = from)
GSPC.close <- GSPC[,"GSPC.Close"]
GSPC.EMA.3 <- EMA(GSPC.close, n=3, ratio=NULL)
GSPC.EMA.10 <- EMA(GSPC.close, n=10, ratio=NULL)
chartSeries(GSPC.close, theme=chartTheme('white'), up.col="black",
dn.col="black")
addTA(GSPC.EMA.3, on = 1, col = "#0000ff")
addTA(GSPC.EMA.10, on = 1, col = "#ff0000")
# browser()
}
When I run this, GSPC.close always appears. But only GSPC.EMA10 appears on
the plot along...
2010 Nov 14
0
problem with chartSeries
...30:00 13821 13822 13809 13816
2010-10-27 09:34:59 13816 13816 13811 13815
2010-10-27 09:40:00 13815 13816 13808 13810
2010-10-27 09:44:59 13810 13812 13804 13811
The below code gives me a line chart instead of candlestick. I can't figure
out why???
chartSeries(x,
TA = NULL,
theme = chartTheme('black'),
up.col = 'white',
dn.col = 'tomato',
type = "candlesticks",
name = "EUR",
minor.ticks=FALSE)
the x object seems to have the right attributes (see below)
> class(x)
[1] "xts" "zoo"
> head(index(x))
[1] &quo...
2012 Oct 14
0
Asking help about drawing and saving candle chart automatically....
...daterange <- paste( strdate, "::", strdate, sep="" )
print(daterange)
jpegname <- paste(strdate, ".jpeg", sep="")
#### jpeg( filename=jpegname, width=1200, height=400 )
tryCatch(chartSeries(aa, subset=daterange, type='candlesticks',
theme=chartTheme('white')))
#dev.list()
#saveChart( 'jpeg' )
#### dev.off()
# wait for user input
cat("\n","Enter x","\n") # prompt
y<-scan(n=1)
}
-----------------------------------------------------
The problems are as the follows:
1. I tried to save char...
2011 May 07
2
Convenience-at-the-expense-of-clarity (was: quantmod's addTA plotting functions)
...Symbols("^GSPC", from = from)
>> GSPC.close<- GSPC[,"GSPC.Close"]
>> GSPC.EMA.3<- EMA(GSPC.close, n=3, ratio=NULL)
>> GSPC.EMA.10<- EMA(GSPC.close, n=10, ratio=NULL)
>> chartSeries(GSPC.close, theme=chartTheme('white'),
>> up.col="black",
>> dn.col="black")
>> addTA(GSPC.EMA.3, on = 1, col = "#0000ff")
>> addTA(GSPC.EMA.10, on = 1, col = "#ff0000")
>> # browser()
>>...