Skip to content
Prev 157342 / 398506 Next

OHLC Plot with EMA in it

Using quantmod and TTR (for EMA, as well as many, many more technical tools):

library(quantmod)

# get some data
getSymbols("QQQQ")

barChart(QQQQ)
addEMA()

Lots of examples at:

http://www.quantmod.com http://www.quantmod.com 
---and---
http://www.quantmod.com/examples/charting/
http://www.quantmod.com/examples/charting/ 


Do like Dirk suggests and find your way to R-Sig-Finance.

Enjoy!
Jeff
Michael Zak wrote: