Re: [R] OHLC Plot with EMA in it

2008-09-26 Thread Jeff Ryan
Using quantmod and TTR (for EMA, as well as many, many more technical tools): library(quantmod) # get some data getSymbols("") barChart() addEMA() Lots of examples at: http://www.quantmod.com http://www.quantmod.com ---and--- http://www.quantmod.com/examples/charting/ http://www.quan

Re: [R] OHLC Plot with EMA in it

2008-09-25 Thread Dirk Eddelbuettel
On Thu, Sep 25, 2008 at 03:44:21PM +0200, Michael Zak wrote: > I have some timeseries data which I plot in a OHLC Plot. In the same > plot I'd like to have the EMA of this timeseries. I tried to add the EMA > point to OHLC with lines(), but this doesn't work. Has anyone an idea how > to handle

Re: [R] OHLC Plot with EMA in it

2008-09-25 Thread Adaikalavan Ramasamy
Can you give us a simple example which produces the same behavior? Michael Zak wrote: Hi there I have some timeseries data which I plot in a OHLC Plot. In the same plot I'd like to have the EMA of this timeseries. I tried to add the EMA point to OHLC with lines(), but this doesn't work. Has

[R] OHLC Plot with EMA in it

2008-09-25 Thread Michael Zak
Hi there I have some timeseries data which I plot in a OHLC Plot. In the same plot I'd like to have the EMA of this timeseries. I tried to add the EMA point to OHLC with lines(), but this doesn't work. Has anyone an idea how to handle it? Regards, Michael Zak