calcPortfWgt: Calculates the portfolio weights for positions within a given...

Description Usage Arguments Value

Description

Portfolio weights may be calculated differently depending on their use. By default, this function uses denominator of 'Gross.Value', the second most common option will likely be 'Net.Value'. For separating long and short weights, 'Long.Value' and 'Short.Value' may be needed as denominators.

Usage

1
2
3
calcPortfWgt(Portfolio, Symbols = NULL, Dates = NULL,
  denominator = c("Gross.Value", "Net.Value", "Long.Value", "Short.Value"),
  Account)

Arguments

Portfolio

a portfolio object structured with initPortf()

Symbols

an instrument identifier for a symbol included in the portfolio

Dates

dates to return the calculation over formatted as xts range

denominator

string describing the deniminator, see Description

Account

an Account object containing Portfolio summaries

Value

xts timeseries object with weights by date in rows and symbolname in columns


R-Finance/blotter documentation built on May 8, 2019, 4:48 a.m.