This tutorial backtests a portfolio of value, momentum, and trend strategies modeled on Alpha Architect's VMOT ETF. VMOT can be run as three separate strategies deployed in tandem, or as a single combined strategy. Both approaches are demonstrated.
In this variant, the value and momentum strategies are provided by separate tutorials (see prerequisites). This tutorial provides the trend strategy and runs the value, momentum, and trend strategies in tandem to replicate VMOT. The momentum and value portfolios are computed separately from each other, and hedging is achieved by shorting a broad-based index ETF (SPY) rather than by selling the momentum and value positions. This approach most closely mirrors the Alpha Architect VMOT white paper.
In this variant, the value, momentum, and trend components are combined into a single strategy. The value screen is computed first, then the momemtum screen is applied to the results of the value screen. When the trend of SPY is down, the portfolio is partially or fully liquidated.
This tutorial assumes you have already completed the QVAL (value) and QMOM (momentum) tutorials:
quantrocket codeload clone 'qval'
quantrocket codeload clone 'qmom'