beta2Hedge: Compute beta-neutral portfolio for two assets

View source: R/beta.R

beta2HedgeR Documentation

Compute beta-neutral portfolio for two assets

Description

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.

Usage

beta2Hedge(symbol, period = "daily", key = "premium")

Arguments

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"

Value

vector


shill1729/trader documentation built on Dec. 27, 2022, 10:55 p.m.