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

Jeff Ryan jeff.a.ryan at gmail.com
Wed Oct 8 15:39:15 CEST 2008


Michael,

It is a bug in the code when you specify the *on* argument.

These work, at least for the legend issue:

addTA(min55,legend=NULL)
addTA(min55,legend="")

I am looking into a fix.

Thanks,
Jeff

On Wed, Oct 8, 2008 at 8:22 AM, Josh Ulrich <josh.m.ulrich at gmail.com> wrote:
> 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
>>
>
> _______________________________________________
> 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.
>



-- 
Jeffrey Ryan
jeffrey.ryan at insightalgo.com

ia: insight algorithmics
www.insightalgo.com



More information about the R-SIG-Finance mailing list