[R-SIG-Finance] How to add net lines to quantmod charts

Samo Pahor samo.pahor at gmail.com
Thu Aug 25 12:32:52 CEST 2011


Hi,

Is it possible to produce attached chart with so called "net lines" (short
line with number on top in different colors) using quantmod?

The Idea is that there would be a data frame with datetime, value, type
(each row represents one "net line" with its numeric value and whether it is
a sell (color in red) or buy(color in green)). And this lines with data in
dataframe would then be overlayed on quantmod chart.

Is something like this possible with quantmod? I would appreciate any
ideas/examples of code...

Best regards,
Samo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20110825/f329c44b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: netlines.png
Type: image/png
Size: 49448 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20110825/f329c44b/attachment.png>


More information about the R-SIG-Finance mailing list