Description Usage Arguments Value
the function is modified by port.backtest. This revised version could provide different date_end for each stock. The weight is set to eq for each trday. The date in ets is the buying date and the pct_chg in that date is not obtained. The date_end is the selling date and the pct_chg is included.
1 2 | EE.port_backtest(ets, wgt_limit = 0.1, output_type = c("port", "rtn"),
fee.buy = 0, fee.sell = 0)
|
ets |
the ets object must contain the columns date, stockID and date_end. |
wgt_limit |
the biggest wgt of each stock. |
Same result type with port.backtest
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.