A numeric vector of weights after applying the rule.
Arguments
strat
A list representing an asset allocation strategy.
reb_date
A date on which the allocation rule is applied.
P
An xts object with daily prices of the tickers in strat.
R
An xts object with daily returns of the tickers in strat.
risk_free
Either an xts object with daily returns of the risk-free
Details
The function compares prices at the end of a month to their moving averages.
If the price of an asset is below its moving average, the corresponding
allocation in strat$default_weights is set to zero.