Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Simple High Yield Bond Momentum Strategy

This simple algorithm monitors 100-day trailing momentum of High Yield Bonds (HYG) and US Treasuries (IEF). 100% of portfolio equity is then allocated to the top performing asset on the first day of every quarter. The result is higher risk-adjusted performance since HYG's inception in 2007. Further backtest of this strategy using Vanguard mutual funds here indicates consistent performance going back to as far as 1988. Most noticeable was the strategy's performance during the 2008 crisis when junk bonds crashed along with the stock market.

Due to a potential rising interest rates environment in the near future, using US Treasuries as the "hideout" asset when High Yield Bonds lose momentum might not produce performance results that are comparable to the past 3 decades. However, the system's robustness still appears to be staying intact during the recent dive in US Treasuries as yields took off to levels not seen since 3 years ago.

STRATEGY HIGHLIGHTS (Jan 1988- Nov 2016, based on monthly returns)

Annualized Return: 8.3%
Volatility/Std. Deviation: 4.4%
Beta to S&P 500: 0.35
Max Drawdown: -7%
Best Year: +20.6%
Worst Year: -4.3%

1 response

Hey, this is great. I'm impressed it works. And it looks like it continues to work out-of-sample. You can get more alpha out of it if you use TLT instead (though a lot more volatility as well) -- it actually outpaces SPY if you use TLT for the treasuries instead.

I was curious what it'd look like as part of a bonds-equities strategy, so here's what it looks like (using TLT) with a bit of S&P500 to bring beta-to-SPY to near 0.

Treasuries are a classic safe haven. But with interest rates near nill and only going up, treasuries already overpriced... Maybe equities and treasuries crash together next time. Or maybe not. Who knows. Probably people (and algos) will continue to use it as a safe haven, driving its prices up when SPY crashes.