HedgeRatioOLS: Hedge Ratio OLS

Description Usage Arguments Details Value Examples

View source: R/CalculateHedgeRatio.R

Description

Calculate Hedge Ratio by using OLS

Usage

1
HedgeRatioOLS(y, x, add_const = TRUE)

Arguments

y

long series

x

short series

add_const

keep constant (risk free profits) or not

Details

alpha < 0 too little returns based on the risks

alpha = 0 adequate returns for the risks taken

alpha > 0 excess returns to the assumed risks

beta correlated relative volatile

Value

A list of hedge ratio (beta, risk) and alpha (risk free profits)

Examples

1
2
3
getFX("AUD/USD")
getFX("CAD/USD")
HedgeRatioOLS(AUDUSD, CADUSD)

ivanliu1989/RQuantTrader documentation built on Sept. 13, 2019, 11:54 a.m.