<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.1">
</HEAD>
<BODY>
<FONT COLOR="#000000">Hi Brian,</FONT><BR>
<BR>
<FONT COLOR="#000000">Are you referring to the addTA function that takes a boolean xts object? Yes, that works fine, but I want my own function that wraps up some of the details in drawing the shaded regions. Jeff and I spoke about using newTA to do this, and I'm trying to work through some of the specifics.</FONT><BR>
<BR>
<FONT COLOR="#000000">FWIW I already have a working function based on newTA, but I have to pass in the original time series as an option because the series extracted from the chob does not preserve the date information. It's a minor inconvenience, and I wanted to know if there was a more elegant solution to the problem.</FONT><BR>
<BR>
<FONT COLOR="#000000">Brian</FONT><BR>
<BR>
<BR>
----- Original message ----- <BR>
Sent: 2008/12/06 06:58:37 <BR>
Subject: Re:Re: [R-SIG-Finance] quantmod newTA passes a matrix? <BR>
<BR>
I'm not at a machine where I can easily look up the function, but quantmod already has a function for adding shaded sections to charts that takes a vector of date ranges as the argument. Check the chart documentation and Jeff's excellent examples on quantmod.com <BR>
<BR>
Regards,<BR>
<BR>
- Brian<BR>
<BR>
Brian Lee Yung Rowe wrote:<BR>
<BR>
>_______________________________________________ <BR>
>R-SIG-Finance@stat.math.ethz.ch mailing list <BR>
>https://stat.ethz.ch/mailman/listinfo/r-sig-finance <BR>
>-- Subscriber-posting only.
</BODY>
</HTML>