Description Usage Arguments Value
Generate a list of weight dataframes for a list of signals
1 2 | GenWeights(signal.pack, signal.rep = c("UD", "DE"), inits = NULL,
returns)
|
signal.pack |
list of signals with columns properly named, the first one will be taken as the benchmark signal, each signal should be a xts object with one or multiple columns, signal representation should match param signal.rep |
signal.rep |
string indicating signal representation, 'UD' means 2 series, US signal and DM signal, 'DE' means 2 series, DM signal and EM signal (old DRI) |
inits |
vector of numerics, representing new weights c(us.init, dm.init) |
returns |
a xts dataframe with columns being assets traded in the portfolio, should have the same number of columns as member in weights |
a list of weight dataframes/xts objects, with number of columns same as number of columns in returns (returns of assets traded in the portfolio)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.