Description Usage Details Note
Function to simulate an individual (1 of K) momentum portfolio. This function assumes rebalancing/exits occur on same day of entries, and does not look for exit explict exit/rebalnce signals. The exception is for memberships.
1 2 3 | place_transactions_index(initEq, assets, Currency, ind, start_i = 1,
K_m = 1, wts = wts, initdate = initdate, enddate = enddate,
enter_prefer = "Close", exit_prefer = "Close")
|
This procedure assumes transactions all occur on same date, with last available price (otherwise, the last trading date or memberhsip exit date must be known in advance, or sorted within the procedure, since blotter requires transactions to be added in date order).
Need to update now that 'weights_i' function handles holdingTime.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.