Learn R Programming

TickExec (version 1.1)

DrawDown: Calculate Maximum Draw Down of Series

Description

Input should be a non-negative series.

Usage

DrawDown(x)

Arguments

x
Cumulative wealth (or return) process, non-negative, NA's will be ignored.

Value

A percentage between 0 and 1.

Examples

Run this code
## construct a series ##
x <- rnorm(100) + 10

## calculate drawdown ##
DrawDown(x)

Run the code above in your browser using DataLab