[R-SIG-Finance] quantmod: how to add custom timeseries (addTA?)
Josh Ulrich
josh.m.ulrich at gmail.com
Wed Oct 8 15:02:04 CEST 2008
Hi Michael,
Try this:
require(quantmod)
require(TTR)
getSymbols("YHOO")
chartSeries(YHOO)
min55 <- runMin(YHOO$YHOO.Low,55)
addTA(min55,on=1)
Best,
Josh
--
http://quantemplation.blogspot.com
On Wed, Oct 8, 2008 at 7:50 AM, Michael Zak <michael at zak.li> wrote:
> Dear members
>
> I'm working with quantmod charts and I should add a timeseries (lowest low
> of the last 55 days) with the same length as the original observations. It
> works fine with addTA(), but quantmod puts a new indicator below the chart.
> But I want to force quantmod to put the data in the same indicator as for
> example the OHLC series.
>
> Thank you, Michael Zak
>
> _______________________________________________
> R-SIG-Finance at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only.
> -- If you want to post, subscribe first.
>
More information about the R-SIG-Finance
mailing list