wwblog

Willie Wheeler's personal blog. Mostly tech.

quantmod fun

Playing with the quandmod package in R. It's been around for a while but for me it's shiny and new.

library("quantmod")
getSymbols("EXPE", src="google")

Then

barChart(tail(EXPE, 200))

EXPE bar chart

For candlesticks:

candleChart(tail(EXPE, 200), multi.col=TRUE, theme="white")

EXPE candlestick chart

It supports technical analysis too:

addBBands() # add Bollinger Bands
addCCI() # add Commodity Channel Index

EXPE candlestick chart with technical analysis

See

Comments