Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


RMOPI (version 1.1)

RiskIndicators: Calculate Useful Indicators for returns

Description

Calculate cumulative return, annualized return, max drawdown, annualized sharp ratio, calmar ratio, sortino ratio, alpha, beta and information ratio with returns.

Usage

RiskIndicators(ret, rb, rf = 0)

Value

A matrix of return and risk indicators

Arguments

ret

vector of return

rb

return of market portfolio

rf

risk free rate

Examples

Run this code
date <- as.Date("2015-01-01") + days(0:249)
ret <- as.xts(rnorm(250), date)
rb <- as.xts(rep(0, 250), date)
RiskIndicators(ret, rb = rb, rf = 0)

Run the code above in your browser using DataLab