The 50/50 SPY Strategy

I was talking to my trading buddy about the annoying part of trend following strategies. They may get you out of the major sell off but then you miss part of the run up. Using a 200-day moving average on the SPY would have got you out in late 2018. This would have been within 10% from the top and you would not had the pain of the additional 10% drop in December. But one would not have gotten back in until late February, missing a good part of the run up.

There is a dual nature of trend following strategies. They generally reduce your drawdowns during the bad years at the expense of underperforming during the good years. This underperformance can be big and difficult to deal with. Now if one is in the conserve wealth (vs grow wealth) part of their life, then this may be okay, but still difficult to deal with.

What follows is a possible way to balance these issues.

SPY Trend Following Strategy

This is a modified 200-day moving average strategy to help deal with whipsaws.

Buy

  • SPY closes above the 200-day moving average 5 days in a row
  • Buy on next open

Sell

  • SPY closes below the 200-day moving average 5 days in a row
  • Sell on next open

Results

Test date from 1/1/2007 to 2/28/2019

The top row is Trend Following and the bottom row is Buy and Hold. Green cells mean that strategy outperformed that year. If the results are close I did not color either cell. As expected, the trend following strategy has a much lower drawdown. But at the expense of performance. The CAR is about 1 point lower and the total net profit is 15% lower. Trend following also underperformed eight of the thirteen years. This year has been tough with the SPY up 11.5% and trend following barely above break even. It is times like this that one decides trend following is not worth it.

The 50/50 SPY Strategy

What if instead of picking either trend following or buy and hold, we combined them?

Rules

The portfolio is allocated 50% to each trend following and buy and hold. Each year we rebalance the portfolio to be back at 50% trend following and 50% buy and hold.

Results

The CAR and Net % Profit numbers surprised me. They basically match buy and hold. No surprise that the drawdown increased. Would I have been happy with a 34% drawdown? No. But given human nature, the fact that I was doing better than the buy and hold people, would have made it OK.

The 2019 return of 6% is also easier to live with.

The big surprise is the Sharpe Ratio. The 50/50 version has the best value of .62.

 

Spreadsheet

File the form below to get the spreadsheet with lots of additional information. It contains allocations for Buy and Hold from 0 to 100% in increments of 5. This includes top drawdowns, trade statistics and more.

Final Thoughts

Yes, I know that this is not some earth-shattering test. But these simple ideas are always fun to test because they are quick and easy to do. And sometimes, they surprise you.

The surprise was that the 50/50 method captured most of the gains and had a higher Sharpe Ratio. Now the maximum drawdown went up by quite a bit compared to trend following but it still is significantly less than buy and hold. I must think about how I can incorporate this concept into my dual momentum strategies.

Would you trade 50/50 instead of buy and hold or trend following?

 

 

Backtesting platform used: AmiBroker. Data provider: Norgate Data (referral link)

Good quant trading,

Fill in for free spreadsheet:

spreadsheeticon

 
Visited 64 times, 1 visit(s) today

Click Here to Leave a Comment Below

Scott Hodson - April 3, 2019 Reply

Would a 5-day below/above the 200-day MA be the same as 1-week above/below a 40-week MA (signal = a weekly bar closes above below the 40-day MA)?

I’m wondering if the results would be the same or similar.

Scott Hodson - April 3, 2019 Reply

I meant 40-week MA, not 40-day…

    Cesar Alvarez - April 3, 2019 Reply

    Conceptually it is the same. As to how the results would compare, I am not sure. Probably close.

Manny Stone - April 3, 2019 Reply

Your problem with using a simple moving average in trading is lag, otherwise known as group delay. Moving averages are lowpass digital filters. So, if you insist on using moving averages, do yourself a favor and learn some digital signals processing. DSP will allow you a deeper understanding of lowpass filers and how to better engineer them to suit your needs. The man for DSP in finance is John Ehlers. Read his book called “Rocket Science for Traders” to get your start in DSP.

    Cesar Alvarez - April 4, 2019 Reply

    I am aware of Ehlers. I have even done a post about one of his indicators. I have not read that book. I will have to take a look. Thank you for sharing.

Sam Gupta - April 3, 2019 Reply

Excellent post. This post validates my personal research. Robust strategies are in the end really simple, it’s just arriving at that result needs ton of research as you have done in your blog posts Caesar. Thanks for sharing.

    Cesar Alvarez - April 4, 2019 Reply

    Sometimes the simple stuff is best. But need to be careful because sometimes it is followed by too many and the edge goes away.

WR - April 3, 2019 Reply

Very nice post … always enjoy your backtests. From an emotional point of view, staying the course through huge drawdowns causes a much higher emotional toll than the regret of missing some upside when the market recovers. The unavoidable, can’t sleep at night thoughts … “what happens if this time time is different?”. I’ll take the lower CAR any day, in return for sleeping at night during the drawdowns!

    Cesar Alvarez - April 4, 2019 Reply

    I agree it is always a tug between these two issues. It is hard not to struggle with it. People come to quant trading because they think the emotions won’t be there. But they are.

rvarb - April 4, 2019 Reply

When you combine 2 strategies, its expectation value is the average of individual strategy’s EVs, while the variance generally decreases. Hence the Sharpe ratio improves. The lower the correlation the better the variance reduction.

    Cesar Alvarez - April 4, 2019 Reply

    I was not expecting a drop in the variance because I figured the correlation would be high. But I was wrong. That is why I test these ideas.

Danny - April 5, 2019 Reply

I essentially take this strategy but leverage it up. When the SPY is above the 200 day MA, I do 2x leverage. When it is below, I am in 1x leverage.

    Cesar Alvarez - April 5, 2019 Reply

    Funny you should mention this. I was talking to my trading buddy about the results he mentioned using leverage too in a similar manner. Maybe a future post

Enrique Romualdez - April 5, 2019 Reply

Hi Cesar,

Awesome post. I love how simple solutions such as these can produce some interesting results that warrant further investigation.

I thought you might be interested in this post from Newfound Research below. They include volatility in their SMA calculation and end up with an interesting dynamic moving average.

https://blog.thinknewfound.com/2019/03/time-dilation/

Hope this gives you something to think about over the weekend.

Cheers!

    Cesar Alvarez - April 5, 2019 Reply

    Thank you for sharing the link. I will have to read it.

Andre Pare - April 14, 2019 Reply

Hi Cesar,
Very interesting strategy for someone, like me, who is essentially a BH type of investor when it comes to his retirement acc.
Wondering tho, what’s the assumption in your results when the TF portion of the 50/50 is not holding SPY?
Are you just holding cash…
Enjoy reading you!
Thanks,

    Cesar Alvarez - April 14, 2019 Reply

    Yes, you are in cash when not holding SPY.

Craig Peters - April 17, 2019 Reply

Hi Cesar,
Interesting results although I wonder whether this could be very fortunate timing to be comparing trend following to buy and hold? Since the last 10 years have reportedly been one of the worst in a century for trend-following, whilst the S&P is enjoying one of the longest bull runs in history (although not so for other world indices).

It would be interesting to see a longer backtest of these strategies.

Best regards
Craig

    Cesar Alvarez - April 17, 2019 Reply

    The is one hard part of testing is deciding when to start. It would be interesting to see how the results did farther back. But as you go farther back, the more you get into markets that are very different from today.

Rusty - May 7, 2019 Reply

In “The 30-Minute Trader” Laurens Bensdorp advises to exit equities when the SPY closes below the 200-day SMA -1% and I have adopted that rule. He suggests going to cash but it makes more sense to move to long bonds, such as TLT or EDV. As for when to re-enter equities, it makes no sense (to me) to wait until SPY is above the 200-day for 5 days. You’d have been better off to have just held. Plot TLT against SPY. When the “smart money” exits bonds, it’s pretty obvious. That’s when you want to switch back to equities. Did you know that EDV out-performed SPY by 80% in 2008?

    Cesar Alvarez - May 7, 2019 Reply

    We each have our own rules for trading the SPY. Waiting for 5 days is lessen the whipsaws. I do not claim it is the best method just one that works for me. Yes I am aware that bonds outperformed in 2008.

Leave a Reply: