Skip to content
Prev 14103 / 15274 Next

Quantstrat to backtest portfolio strategy. User Defined Weights

On Wed, 2016-12-14 at 14:28 +0000, Vineet Gupta wrote:
You haven't really given us enough information to answer your question,
so I'm just guessing based on the information you did provide.

If you are simply 'trading' a portfolio strategy where the portfolio is
rebalanced form one set of weights to another on a specified
rebalancing period, you probably don't want quantstrat at all.

In that case, you likely want the function Return.portfolio in
PerformanceAnalytics or you want to use PortfolioAnalytics to construct
your target portfolio.

Working in returns and weights is different than working in trades and
cash.

rulePctEquity simply governs how much of the total equity is available
for each instrument in the strategy. ?It doesn't reduce the size of an
existing position on the rebalance period, if there is one. ?It could
certainly be extended to enter orders or transactions to rebalance, if
you wanted it to.

You'll have to provide a minimal reproducible example and more
information about what you'd like to do for someone to be able to help
you further.

Regards,

Brian