<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>findDrawdowns/maxDrawdown  clarification, please?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I have a hypothetical&nbsp; time series for some cumulative PNL.&nbsp; I am trying to use the findDrawdowns function from the</FONT> <FONT FACE="Times New Roman">PerformanceAnalytics package.&nbsp; When I pass the series to the function, I get an error message which meaning I do not understand. Can some one shed some light about what I am doing wrong?&nbsp; </FONT></P>

<P><FONT FACE="Times New Roman">The function seems to work when using returns instead of dollar amounts (which is my case). I am also using the</FONT> <A HREF="file://maxDrawdown.html"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">maxDrawdown</FONT></U></A><FONT FACE="Times New Roman"> function, and this last one appears to work well with either returns or dollar amounts. I am just wondering if this is driving my error message.</FONT></P>

<P><FONT FACE="Times New Roman">On the other had, the example used in the help(findDrawdowns) is based on returns of the edhec[,&quot;Funds.of.Funds&quot;] . These returns appear to be monthly returns. I would like to understand if the idea behind the findDrawdowns should be applied to a cumulative returns/pnl instead just monthly (or other frequency) returns/pnl? I believe that</FONT> <FONT FACE="Arial">drawdown is defined as the difference between today's cumulative pnl and the &quot;high water mark&quot; highest point cumulative pnl</FONT><FONT FACE="Arial">, but my interpretation could be completely wrong. Can some one explain?</FONT></P>
<BR>

<P><FONT FACE="Times New Roman">Thanks,</FONT>
</P>

<P><FONT FACE="Times New Roman">Jorge</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">CODE</FONT>

<BR><FONT SIZE=2 FACE="Arial">&gt; ser &lt;- results[samper,&quot;cumpnl&quot;,drop=FALSE]</FONT>

<BR><FONT SIZE=2 FACE="Arial">&gt; # write.csv(ser,&quot;test.csv&quot;)</FONT>

<BR><FONT SIZE=2 FACE="Arial">&gt; plot(ser,type = &quot;l&quot;,col= &quot;red&quot;)</FONT>

<BR><FONT SIZE=2 FACE="Arial">&gt; toto = findDrawdowns(ser)</FONT>

<BR><FONT SIZE=2 FACE="Arial">Error in if (thisSign == priorSign) { : </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; missing value where TRUE/FALSE needed</FONT>
</P>

<P><FONT FACE="Arial" SIZE=2 COLOR="#000000"> &lt;&lt;test.csv&gt;&gt; </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Jorge Nieves</FONT>

<BR><FONT SIZE=2 FACE="Arial">Phone 212.782.7083</FONT>

<BR><FONT SIZE=2 FACE="Arial">Fax 212.642.7644</FONT>
</P>

</BODY>
</HTML>