[R-SIG-Finance] quantmod: how to add custom timeseries (addTA?)

Josh Ulrich josh.m.ulrich at gmail.com
Wed Oct 8 15:22:09 CEST 2008


Michael,

I'll have to leave that question to Jeff Ryan, the package author.

You can avoid printing a legend for the lowest low by using the TA=
arg in chartSeries:
chartSeries(YHOO, TA="addTA(min55,on=1)")

Best,
Josh
--
http://blog.fosstrading.com/


On Wed, Oct 8, 2008 at 8:17 AM, Michael Zak <michael at zak.li> wrote:
> Jopp! The argument on = 1 from addTA() helped me totally.
>
> How can I prevent printing a legend at all from the addTA()? legend=FALSE
> doensn't work.
>
> Thank you, Michael
>
> On 08.10.2008, at 15:02, Josh Ulrich wrote:
>
>> 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
>



More information about the R-SIG-Finance mailing list