Sometimes, it is useful to remove information from the data that you have.
Lets say, you have a time-series of returns: +0.001, +0.001, +0.001, +0.1, -0.01, -0.01. What if, you removed magnitude information and kept only the direction? You end up with: UP, UP, UP, UP, DN, DN. Now, you can analyze this transformed dataset using a whole bunch of algorithms designed to work on binary sequences.
Run Length Encoding (rle) is one such algo. We used it while looking for streaks (Part I, Part II.) We dismissed the backtest as a datamining artefact. Which it might very well be. However, if you believe that a timeseries can exhibit both trend and mean-reversion, then looking at it through this lens can be useful.
Knowing the “average” length of streaks can also help in position sizing in a trend-following system and regime classification.
We’ve been having a bit of fun with the S&P Sector “Spider” ETFs: Intro, Momentum, Anti-Momentum. We saw how strategies that backtested well with pre-2011 data failed later. In this post, we see if buying all ETFs with a positive return over n-months help us beat the S&P 500 index.
Calculate rolling returns over n months. Where n = 1, 3, 6, 12.
For the n+1th month, go long the ETFs that had positive returns in Step 1.
Like before, we split the dataset into Before 2010 and After 2011.
Pick your Fighter
The Before 2010 dataset shows rotation by 6- and 12-month look-back periods to be better than buying-and-holding the S&P 500.
The SPY Rope-a-Dope
MOM6 and MOM12 were too close to call in the training set. If you had “course-corrected” after the first couple of years of under-performance of MOM12 and switched to MOM6, you would’ve out-performed. On the other hand, staying the course would’ve meant losing out to the mighty S&P 500.
Once again, by simply holding onto the ropes, a passive buy-and-hold S&P 500 investor would’ve come out miles ahead of someone who tried to time sectors systematically.
What did we learn?
We tested a few basic allocation strategies that investors typically use to approach the “rotation” problem. Some of them worked well in the training set but their performance failed to carry over. Besides, if you add transaction costs and taxes, we are not sure if it was worth the effort given the post-2011 market regime.
Maybe there are more sophisticated qualitative/fundamental ways to approach this problem that work. However, most media articles about “sector rotation” are written with perfect hindsight and it is near impossible to do it with simple strategies that are accessible to the average investor.
Previously, we saw how buying the best performing sector and holding it for a month didn’t quite pan out. What if, we bought the worst performing sector instead? The “Dogs of Sector Spiders,” if you will.
Calculate rolling returns over n months. Where n = 1, 3, 6, 12.
For the n+1th month, go long the ETF that had the lowest return in Step 1.
Like before, we split the dataset into Before 2010 and After 2011.
Pick your Fighter
The Before 2010 dataset shows rotation by 3- and 6-month look-back periods to be better than buying-and-holding the S&P 500.
The 6-month look-back rotation strategy – MOM6 – would’ve been the strategy to bet on.
The SPY Rope-a-Dope
“Sure-things” don’t exist in finance.
MOM6 spent the last decade getting absolutely decimated by the S&P 500.
Once again, by simply holding onto the ropes, a passive buy-and-hold S&P 500 investor would’ve come out miles ahead of someone who employed this rotation strategy.
While introducing S&P 500 sector ETFs, we showed how the cross-correlations between them were unstable. This makes developing simple strategies challenging. One common momentum strategy is to simply go long whatever worked best in the previous period.
Rules of Rotation
For ETFs: XLY, XLP, XLE, XLF, XLV, XLI, XLB, XLK, XLU, and SPY
Calculate rolling returns over n months. Where n = 1, 3, 6, 12.
For the n+1th month, go long the ETF that had the highest return in Step 1.
In Step 2, if the selected ETF has -ve returns, stay in cash and earn zero.
We split the dataset into Before 2010 and After 2011.
Pick your Fighter
The Before 2010 dataset shows rotation by all look-back periods to be better than buying-and-holding the S&P 500.
Probably because of the prolonged dislocation caused by the GFC in 2008 and 2009, all rotation strategies based on the rules above exhibited great stats.
The 6-month look-back rotation strategy – MOM6 – gave an annualized return of 13.04% vs. S&P 500’s 1.19%. Coming out of the crisis, this would have been the fighter to bet on.
The SPY Rope-a-Dope
In boxing parlance, a “Rope-a-Dope” is
When you maintain a defensive posture on the ropes in an attempt to outlast or tire your opponent. It is most recognized and was actually given that name by Muhammad Ali when he employed the technique to defeat George Foreman.
The After 2011 dataset is a prime exhibit of why “sure-things” don’t exist in finance.
The S&P 500 spent the next decade demolishing everything.
MOM6, the winner from our first round, went on to underperform the S&P 500 for the next 10 years by ~4%
By simply holding onto the ropes, a passive buy-and-hold S&P 500 investor would’ve come out miles ahead of someone who employed this rotation strategy.
Factor performance tends to be sticky. If Value, Momentum, Quality, etc. out-performed in the recent past, they continue to out-perform in the near-future.
The performance of the US portfolio has been gangbusters. It sidestepped the Corona Crash of 2020 and has been on a tear since then. The Indian experience, however, has been disappointing.
US Factor Momentum
The Indian portfolio suffered from its inability to go into cash/bonds during crashes. Being fully invested took a bite out of its overall performance.
India Factor Momentum
The Indian version comes up short even if you compare its stats with its component factor portfolios.
India Factor Momentum Statistics
The intuition behind the Radar Plot above is that the larger the area under the points, better the strategy. Model Momentum is in pink and it pales in comparison to most of its constituents. Surprisingly, the Financial Strength Value Theme (light green,) that is rebalanced annually, beat out everything else.
What explains the underperformance?
Not being able to go into cash/bonds meant a larger hill to climb during recoveries. However, cash is a double-edged sword. If you get the timing wrong, you might end up going into cash after the bottom and watch the market recover helplessly. Unless the trend formation period is really short, cash is not a viable option.
High transaction costs can also be playing a role here. The difference between Gross and Net returns is ~15%. Not as high as a pure momentum strategy but not trivial either. Also, US portfolios do not incur STT and brokerages are essentially zero.
Maybe 20-months is too short a window to judge such a slow-moving strategy. The research looks solid and maybe all we need is to give it some time?