MMarc and Joshua: thanks for your replies.

Your suggestions work. The issue with the plot(addlines(...)) form is that,
at least in my case, it prints 2 charts to the pdf file. The first one is
just the candlestick chart, the second one contains the added line.
Marc's second code (using the TA parameter) produces just one chart, and is
what I am after.
What I want to do is to chart a bracket order, so I extended the code to
this:

plotBrackets <- function () {
        require(quantmod)
        getSymbols('AAPL')
        chartSeries(AAPL["2009::"],theme='white',
TA='addLines(h=c(82,103,135))' )
}

Where 103 is the entry, 82 the stop and 135 the target.
I wonder if you can help me to distinguish in some way between the 3 lines,
either by coloring them or (much better) adding text labels.

Thanks in advance. Andrés

	[[alternative HTML version deleted]]

