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)
A numeric vector with the daily value of the account.
A vector of weights
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.