Description Usage Arguments Details Value Examples
View source: R/CalculateHedgeRatio.R
Calculate Hedge Ratio by using OLS
1 | HedgeRatioOLS(y, x, add_const = TRUE)
|
y |
long series |
x |
short series |
add_const |
keep constant (risk free profits) or not |
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
A list
of hedge ratio (beta, risk) and alpha (risk free profits)
1 2 3 | getFX("AUD/USD")
getFX("CAD/USD")
HedgeRatioOLS(AUDUSD, CADUSD)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.