Skip to content
Prev 4004 / 15274 Next

abline for quantmod charts

Hi Haky,

wrap addTA with plot().  It is a function of being able to use the
same function from the command line, and embedded in a chartSeries
call.  Internally there is a check to see where it originates from to
take a guess as to draw it immediately or not.

addVLine = function(dtlist)
 {
   plot(addTA(xts( rep(TRUE, NROW(dtlist)), dtlist), on=1, col="#333333"))
 }

HTH
Jeff
On Tue, May 5, 2009 at 12:55 PM, Hae Kyung Im <haky.im at gmail.com> wrote: