weights_i: Given an xts of portfolio weights with signals each period,...

Description Usage Arguments Note

Description

Given an xts of portfolio weights with signals each period, returns the kth portfolio weights.

Usage

1
weights_i(wts, start_i, k, holding_time = FALSE)

Arguments

holding_time

If TRUE, entry weights only set if there is enough time left to fulfill entire holding period.

Note

might be worth including enddate as an argument rather than using the last date in mom. This aligns with the 'place_transaction' functions.


T-Marty/trademartyr documentation built on May 31, 2019, 5:10 p.m.