Description Usage Arguments Value Examples
Hedge Portfolio
1 2 | HedgePortfolio(portfolio, hedgePositions, cutoff = 0.05, start = Sys.Date()
- 365, end = Sys.Date())
|
portfolio |
character vector of Yahoo Finance tickers |
hedgePositions |
1 : long on ticker, 0 : no exposure to ticker, -1 : short on ticker |
cutoff |
If p-value > cutoff, exclude the portfolio component |
start |
Start date |
end |
End date |
numeric vector of hedge ratios for entire portfolio
1 | HedgePortfolio(c('SDRL', 'SDLP', 'SPY', 'USO'), c(-1, 1, 0, 0))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.