View source: R/daily_account_calc.R
daily_account_calc | R Documentation |
daily_account_calc
is a helper function used by
backtest_allocation
to calculate theoretical the theoretical account
value given an initial allocation to assets. It is not intended to be called
directly by the user.
daily_account_calc(w, R)
w |
A vector of weights |
R |
An xts object with daily returns of the tickers in strat. |
The function simulates the value of a theoretical account from the initial weights and the daily returns of a set of assets.
A numeric vector with the daily value of the account.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.