[R-SIG-Finance] Can't addMACD(). Is it a bug?
Sávio M. Ramos
savio.debian at gmail.com
Wed May 23 04:58:18 CEST 2012
Hi,
addMACD don't work. I am doing something wrong or it is a bug.
The code:
require(quantmod)
lista <- c("PETR4.csv", "VALE3.csv")
for (i in lista){
x <- as.xts(read.zoo(i, sep=",", format="%Y-%m-%d", header=TRUE))
y <- to.weekly(x)
chartSeries(y, type="candlesticks", multi.col=TRUE, theme="white", subset='last 54 months', name=i)
addMACD(fast = 12, slow = 26, signal = 9, type = "EMA", histogram = TRUE)
saveChart('pdf',width=25,height=13)
The two files is attached.
[]'s
--
Sávio M Ramos
Arquiteto, Rio, RJ
Só uso Linux desde 2000
www.debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PETR4.csv
Type: text/csv
Size: 114072 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20120522/609015e3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VALE3.csv
Type: text/csv
Size: 114072 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20120522/609015e3/attachment-0001.bin>
More information about the R-SIG-Finance
mailing list