Quadratic probing

From formulasearchengine
Jump to navigation Jump to search

The drawdown is the measure of the decline from a historical peak in some variable (typically the cumulative profit or total open equity of a financial trading strategy).

Somewhat more formally, if X=(X(t),t0) is a random process with X(0) = 0, the drawdown at time T, denoted D(T), is defined as

D(T)=max{0,maxt(0,T)X(t)X(T)}

The maximum drawdown (MDD) up to time T is the maximum of the Drawdown over the history of the variable. More formally,

MDD(T)=maxτ(0,T)[maxt(0,τ)X(t)X(τ)]

The following pseudocode computes the Drawdown ("DD") and Max Drawdown ("MDD") of the variable "NAV", the Net Asset Value of an investment. Drawdown and Max Drawdown are calculated as percentages:

MDD = 0
peak = -99999
for i = 1 to N step 1
  if (NAV[i] > peak) # peak will be the maximum value seen so far (0 to i)
    peak = NAV[i]
  endif
  DD[i] = 100.0 * (peak - NAV[i]) / peak
  if (DD[i] > MDD) # Same idea as peak variable, MDD keeps track of the maximum drawdown so far.
    MDD = DD[i]
  endif
endfor

Finance Definitions

There are two main definitions of a drawdown:

1. How low it goes (the magnitude)

Putting it plainly, a drawdown is the “pain” period experienced by an investor between a peak (new highs) and subsequent valley (a low point before moving higher).[1]
Next, the Maximum Drawdown, or more commonly referred to as Max DD. This is pretty much self explanatory, as the Max DD is the worst (the maximum) peak to valley loss since the investment’s inception.[2]

In finance, the use of the maximum drawdown as an indicator of risk is particularly popular in the world of commodity trading advisors through the widespread use of three performance measures: the Calmar ratio, the Sterling ratio and the Burke ratio. These measures can be considered as a modification of the Sharpe ratio in the sense that the numerator is always the excess of mean returns over the risk-free rate while the standard deviation of returns in the denominator is replaced by some function of the drawdown.

2. How long it lasts (the duration)

The Drawdown Duration is the length of any peak to peak period, or the time between new equity highs.
The Max Drawdown Duration is the worst (the maximum/longest) amount of time an investment has seen between peaks (equity highs).

Many assume Max DD Duration is the length of time between new highs during which the Max DD (magnitude) occurred. But that isn’t always the case. The Max DD duration is the longest time between peaks, period. So it could be the time when the program also had its biggest peak to valley loss (and usually is, because the program needs a long time to recover from the largest loss), but it doesn’t have to be.[3]

When X is Brownian motion with drift, the expected behavior of the MDD as a function of time is known. If X is represented as X(t)=μt+σW(t), where W(t) is a standard Wiener process, then: when μ>0 the MDD grows logarithmically with time; when μ=0 the MDD grows as the square root of time; and when μ<0 the MDD grows linearly with time (Magdon-Ismail et al. 2004).[4]

Further reading

References

43 year old Petroleum Engineer Harry from Deep River, usually spends time with hobbies and interests like renting movies, property developers in singapore new condominium and vehicle racing. Constantly enjoys going to destinations like Camino Real de Tierra Adentro.