View source: R/modelPortfolio.R
Set new weight for modelPortfolio object
1 2 3 4 |
this |
modelPortfolio type |
w |
numeric type, coefficients strategy in portfolio, example: w = c(1,2) |
money_function |
function type or const, three options are possible 1) money_function = A = const, all strategies will get A money 2) money_function = scalar function, all strategies will get money_function(start_money_in_strategy) money, example: min 3) money_function = vector function, strategies[i] will get money_function(start_money_in_strategy)[i] money, example: function { 200 + start_money_in_strategy} |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.