beta2Hedge | R Documentation |
For two assets with one positive beta and one negative beta, the beta neutral portfolio is a simple linear system that can be solved explicitly. The weights add up to one and the aggregate beta is zero. This function returns these weights based off historical estimates of the betas.
beta2Hedge(symbol, period = "daily", key = "premium")
symbol |
the stock symbol ticker of the market-correlated asset |
period |
the time-series resolution "daily", "intraday", "weekly", or "monthly" |
key |
the tier of Alpha Vantage API key: "premium" or "free" |
vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.