Excel Lab
  • Excel Lab
  • Release Notes
  • Getting Started
    • Installing Excel Lab
      • Step 1: Download Files
      • Step 2: Register Libraries
      • Step 3: Activate Add-in
      • Step 4: Verify Installation
  • Functions
    • General
      • ISMATRIXPSD
      • MATRIX
      • XLABHELP
      • XLABINFO
      • XLABLICENSE
      • RESETPASSWORD
    • Return Models
      • CAPM
      • DESMOOTHRETURNS
      • IMPLIEDRETURNS
      • MLERETURNS
    • Risk Models
      • ANNUALIZERISK
      • EWMA
      • HISTORICALRISK
      • MLERISK
      • PORTFOLIORISK
      • TURBULENTRISK
      • QUIETRISK
    • Optimization
      • MVO
      • MTO
      • MVT
      • MVFRONTIER
      • MTFRONTIER
      • ISORETURN
    • Simulation
      • MCNORM
      • BOOTSTRAP
    • Exposure to Loss
      • LOSSPR
      • OMEGARATIO
      • SORTINORATIO
      • TAILRATIO
      • VALUEATRISK
      • MAXDD
    • Regression Analysis
      • FACTORANALYSIS
      • PSR
    • Scenario Analysis
      • MAHALANOBIS
      • SCENARIOPR
      • IMPLIEDSCENARIO
  • Frequently Asked Questions
    • Common Issues
    • FAQ
  • Further Reading
  • Windham's Research Insights
  • Watch Our Educational Videos
Powered by GitBook
On this page
  • Description
  • Syntax
  • Input(s)
  • Output(s)
  • Example
  1. Functions
  2. Exposure to Loss

MAXDD

Calculate the maximum drawdown for time series returns.

Description

Calculate the maximum drawdown for one or more time series of asset (or portfolio) returns. Maximum drawdown is the measure of peak to through and is typically used as an indicator of downside risk for historical data.

Syntax

The following describes the function signature for use in Microsoft Excel's formula bar.

=MAXDD(returns, dataPeriodicity, isAppendIndex)

Input(s)

Argument
Description

returns

Required. Vector or matrix of time series returns.

dataPeriodicity

Optional. Periodicity of the data, used for annualization. If you do not enter the argument, it defaults to 1. e.g. Daily = 255, Monthly = 12, Yearly = 1, Quarterly = 4.

isAppendIndex

Optional. Logical (TRUE or FALSE), when set to TRUE, the function will append the start and end index positions of the respective max drawdown periods. If not specified, the function defaults this argument to FALSE.

Output(s)

The function returns a vector of maximum drawdown estimates, mddmddmdd

output=[mdd1mdd2…mddN]\text{output}=\begin{bmatrix}mdd_1 & mdd_2 & \ldots & mdd_N\end{bmatrix}output=[mdd1​​mdd2​​…​mddN​​]

When isAppendIndex is set to TRUE, the function appends the start index, ppp , and end index, qqq , of the corresponding maximum drawdown periods.

output=[mdd1mdd2…mddNp1p2…pNq1q2…qN]\text{output}=\begin{bmatrix}mdd_1 & mdd_2 & \ldots & mdd_N \\ p_1 & p_2 & \ldots & p_N \\ q_1 & q_2 & \ldots & q_N \end{bmatrix}output=​mdd1​p1​q1​​mdd2​p2​q2​​………​mddN​pN​qN​​​

Example

PreviousVALUEATRISKNextRegression Analysis

Last updated 3 years ago

97KB
MAXDD.xlsx
Example Workbook: MAXDD