# Tag Info

## Hot answers tagged maximum-drawdown

5

I won't give you the answer delivered on a silver platter but hopefully the following will get your started: a) you need to define exactly over which look-back period you aim to derive the maximum drawdown. b) you need to keep track of the max price while you iterate the look-back window. c) you need to keep track of the min price SUBSEQUENT to any NEW ...

3

Zipline, the opensource python backtester, has a batch and iterative implementation for max drawdown. Here is the batch: https://github.com/quantopian/zipline/blob/master/zipline/finance/risk.py#L284 Here is the iterative: https://github.com/quantopian/zipline/blob/master/zipline/finance/risk.py#L578 disclosure: I'm one of the zipline maintainers

3

Take a look at the following paper about the Maximum Drawdown distribution: On the Maximum Drawdown of a Brownian Motion The authors end up with an approximative series for the density. It is implemented in the function maxdd of the R-package fBasics. There are convenient functions dmaxdd, pmaxdd and rmaxdd. Calculating the Expected Drawdown should be easy....

2

Hello people. This is quite a complex problem if you want to solve this in a computationally efficient way for a rolling window. I have gone ahead and written a solution to this in C#. I want to share this as the effort required to replicate this work is quite high. First, here are the results: here we take a simple drawdown implementation and re-...

2

as I mentioned here, this paper provides some theoretical insight (and a way to approximate the true value). The authors end up with an approximative series for the density. It is implemented in the function maxdd of the R-package fBasics. There are convenient functions dmaxdd, pmaxdd and rmaxdd. Calculating the Expected Drawdown should be easy. (to be ...

1

Sharpe ratio alone is not, IMHO, a great measure. It measures the slope of a line to the Riskfree rate in a mean-stdev plot. If leverage were free and unlimited, then Sharpes would count more. Many traders look at Sortino ratios (looking specifically at downside stdev), or Calmar ratios (excess return/max drawdown), as more reasonable measures of an ...

1

Its very simple, One of Brownian Motion (a.k.a. Wiener process in Mathematics) properties is that each increment from s->t is normally distributed with mean = 0 and sd = t-s. So, if the process that drives your simulated results is ~N(0, t-s) distributed for each increment s->t with 0<=s<=t then yes, your simulated draw downs should match the ones ...

1

(After the clarification, this answer is no longer relevant) Expected maximum drawdown is going to be highly sensitive to your choice of SDE, and to your calibration of it. Therefore you should play with a variety of parameterizations to estimate your model error. So far as efficient computation goes, we can regard this as a payoff very similar to a ...

Only top voted, non community-wiki answers of a minimum length are eligible