Skip to content
Prev 20715 / 63421 Next

Convention difference in tseries.maxdrawdown (PR#8872)

Gunther is quite correct.  I should have said I had written something 
API-compatible.

Adrian's worakround suggestion of using log() with the current version 
of maxdrawdown() works nicely, of course.   I would suggest, however, 
that working in proportional [rather than absolute] terms be the default 
behavior of the maxdrawdown() function, as that is industry convention.

If changing the behavior is unacceptable, the absolute-drawdown gotcha 
should at the least be extremely clearly documented.   It already caused 
me to misquote drawdowns in a backtest to my boss!!


  -- Brian K. Boonstra
Adrian Trapletti wrote: