Skip to contents

Calculate the annualized return of a strategy.

Usage

calc_annualized_return(returns, periods = 252)

Arguments

returns

Numeric vector of returns

periods

Number of periods per year (default: 252 for daily data)

Value

Numeric value representing annualized return as a decimal

Examples

if (FALSE) { # \dontrun{
returns <- c(0.01, 0.02, -0.01, 0.03)
calc_annualized_return(returns, periods = 252)
} # }