Skip to contents

Calculate the time taken to recover from the maximum drawdown.

Usage

calc_recovery_time(equity_curve = NULL, returns = NULL)

Arguments

equity_curve

Numeric vector of equity values

returns

Numeric vector of returns

Value

Integer representing recovery time in periods