Skip to content
Back to formatted view

Raw Message

Message-ID: <8cca69990810080622n1f0ddcahc661030fb905a16@mail.gmail.com>
Date: 2008-10-08T13:22:09Z
From: Joshua Ulrich
Subject: quantmod: how to add custom timeseries (addTA?)
In-Reply-To: <DB1F3AD6-4E0C-4D3B-B993-5DC7806534DE@zak.li>

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
>