Calculate the total return of a strategy.
Examples
if (FALSE) { # \dontrun{
returns <- c(0.01, 0.02, -0.01, 0.03)
calc_total_return(returns)
} # }
Calculate the total return of a strategy.
if (FALSE) { # \dontrun{
returns <- c(0.01, 0.02, -0.01, 0.03)
calc_total_return(returns)
} # }