Learn R Programming

RTL (version 1.3.5)

tradeStats: Risk-reward statistics for quant trading

Description

Compute list of risk reward metrics

Usage

tradeStats(x, Rf = 0)

Value

List of risk/reward metrics. list

Arguments

x

Univariate xts object of returns OR dataframe with date and return variables. xts

Rf

Risk-free rate. numeric

Author

Philippe Cote

Examples

Run this code
library(PerformanceAnalytics)
tradeStats(x = stocks$spy, Rf = 0)

Run the code above in your browser using DataLab