Quantopian works great when linked to an IRA or regular brokerage account. But what about my 401k, where most of my investable assets are? I want to implement an "algorithm" to deploy with that money.
Momentum is real phenomenon in the market backed by academic research. What if we look at the momentum of 5 uncorrelated asset classes to determine where we should rebalance our portfolio into? I chose the following 5 asset classes and used the following mutual fund ticker to look at historical performance going back to 1997.
- Intermediate Treasuries FGOVX
- S&P 500 VFINX
- Mid-Cap Value TRMCX
- International Developed Markets Small Cap VINEX
- Emerging Markets VEIEX
To select the asset class with the best momentum indicator I calculate the ratio of its 20 day moving average to its 120 day moving average. The asset class with the highest ratio we invest into. Rebalance/check every week. This link provides a plot of the returns: https://engineeredportfolio.files.wordpress.com/2017/02/asset-class-rotation-strategy.jpg
In the attached backtest I built the same strategy in Quantopian using ETFs, specifically:
- Intermediate Treasuries IEF
- S&P 500 IVV
- Mid-Cap Value IJJ
- International Developed Markets Small Cap SCZ
- Emerging Markets EEM
I came up with these 5 asset classes after doing backtesting on 40 years of historical data. The data can be found on the bogleheads forum.