drawdown: Drawdown

View source: R/quants.R

drawdownR Documentation

Drawdown

Description

Calculate drawdown array from asset returns. Return a vector with numbers >= 0

Usage

drawdown(x, is_geom = TRUE)

Arguments

x

asset returs

is_geom

TRUE geometric, FALSE simple

Value

numeric vector of length x

Examples

xx <- c(0.003,0.026,0.015,-0.009,-0.014,-0.024,0.015,0.066,-0.014,0.039)
drawdown(xx)


maxto/qapi documentation built on Feb. 1, 2024, 9:42 a.m.