[R-SIG-Finance] quantmod addTA() How to scale the y axis

Brian G. Peterson brian at braverock.com
Sat Nov 28 00:28:42 CET 2009


Konrad Hoppe wrote:
> Dear mailinglist members,
>
>  
>
> I'm new to the quantmod package and I got some trouble with the addTA()
> method. 
>
> I want to add some indicators in the plot on position 1, hence behind the
> original data. But the indicators are plotted to low, they don't have any
> intersections with the raw-data. 
>
> When I plot both lines with the standard plot function there are some
> intersections and also when I plot the difference between those two series
> on position 0, there are some intersections with the null-line. Hence I'm
> sure that the plot methods got the right data. 
>
> I've already tried the solution with setting the yrange (setting it for all
> plots to the same range), but that doesn't work.
>
> Does anybody have an idea?
>   
Yes, I have an idea.

Please construct a reproducible example, and provide your code.  It is 
nearly impossible to "have an idea" when you've described things in 
broad generalities.  If you take the time to construct an example of 
what you're talking about (disguise your data,create fake data, rename 
your indicators, whatever), then I'm almost certain someone here can 
help you.

Regards,

     - Brian

-- 
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock



More information about the R-SIG-Finance mailing list