Hi,

Is there a way to plot trendline with quantmod package?

There is addLines function in the package but I can't seem to figure out how
to use it (not well documented):
> args(addLines)
function (x, h, v, on = 1, overlay = TRUE, col = "blue")
NULL
so arguments "h" and "v" add horizontal and vertical lines. How does
argument "x" work? I would like to plot trendlines using consecutive higher
highs or lower lows (for financial instruments such as stocks).

Thanks.

--Chang

	[[alternative HTML version deleted]]


