Hi,

Both following code examples plot Bollinger bands over the ticker main plot
and William's Percent below the main plot.

1. chartSeries(YHOO,theme="white",TA = c(addBBands(200,2), addWPR(n=300)))

2. chartSeries(IB,theme="white",TA = c(addBBands(200,2)))
   addWPR(n=300)

In general, if you like to plot indipendently a trading indicator computed by 
quantmod,
you can do:

wpr <- addWPR(n=300)
plot(wpr@TA.values, type='l')   -- or any other R plot library you like

as in @TA.values are stored trading indicator values for any quantmod indicator.


Giorgio Garziano



        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to