Streaks, Part II – Backtest

In Part I of this series, we saw that it is very rare for two consecutive down months to be followed by a third one. Here, we present a simple backtest that goes long NIFTY 50 for a month if the previous two months were negative.

backtest cumulative returns

The shallow drawdowns of this strategy makes it ideal for leveraged trades. NIFTY futures are about 7x levered. That should transform the 190% gross return to about 1330%, beating buy and hold by a wide margin. The MIDCAP 100 index behaves similar to this between the 2005 through 2018 time-frame. However, the results are not so great if you include data prior to 2005.

This looks like a case of severe data-mining and should be discounted as such. But it is an interesting result nevertheless.

Code and charts are on github.

Streaks, Part I

A streak of returns is an unbroken set of up or down days, weeks or months. For example, if the market went up on each of the last four days, then it is a streak of 4 daily returns. Can streaks predict the direction of subsequent returns? Before we answer that, let us look at the density plots of up and down streaks over different periods of time. In the charts below, green lines represent positive returns and red represent the negative ones.

Distribution of NIFTY 50 daily return streaks:

Distribution of NIFTY 50 weekly return streaks:

Distribution of NIFTY 50 monthly return streaks:

Looks like something could be done with monthly returns. Click through to Part II for a quick backtest!

Code and images are on github.

Book Review: The Smartest Guys in the Room

In The Smartest Guys in the Room: The Amazing Rise and Scandalous Fall of Enron (Amazon,) Bethany McLean and Peter Elkind chronicle the rise and fall of Enron.

Before the sub-prime crisis and Lehman Brothers bankruptcy, Enron was the poster child of greed gone wild. No other company had ever committed such a massive accounting fraud. Enron’s published financial statements were completely divorced from its underlying business economics. And the system of checks and balances that were supposed to prevent such frauds were corrupted by conflicts of interest within the gatekeepers. Wall Street analysts did not dig too deep because Enron was a massive source of investment banking revenue, its auditor signed off on everything because accounting was a loss-leader for their much more lucrative consulting practice and neither Enron’s board of directors nor the rating agencies that rated its debt cared to peek under the hood.

The following passage from the book captures Enron’s mindset:

The after-the-fact rationalizations were strikingly similar to the mind-set that produced the Enron disaster in the first place. The arguments were narrow and rules-based, legalistic in the hairsplitting sense of the word. Some were even arguably true—in the way that Enron itself defined truth. The larger message was that the wealth and power enjoyed by those at the top of the heap in corporate America demand no sense of broader responsibility. To accept those arguments is to embrace the notion that ethical behavior requires nothing more than avoiding the explicitly illegal, that refusing to see the bad things happening in front of you makes you innocent, and that telling the truth is the same thing as making sure that no one can prove you lied.

Recommendation: worth a read.

Why Anomalies Persist

Academics label momentum as an “anomaly.” Multiple studies have shown that this anomaly has persisted over long periods of time and across markets (AA). Based on this insight, quite a few quantitative momentum funds sprung up. And since nothing good is ever left alone at Wall Street, a whole bunch of momentum factor ETFs launched to ride the wave during the recent bull market. Currently, there are more than 40 momentum ETFs listed in the US.

So, does this mean that the momentum anomaly has been arbitraged out? After all, with over $12 billion in momentum ETFs alone, shouldn’t the strategy have topped out? We posit that it is unlikely to happen anytime soon. Why? Because investors just can’t help themselves.

Consider the asset under management (AUM) of these momentum ETFs. If, for an ETF, the price is down 10% and its AUM is down 20% over the same period, it means that there has been a net outflow of 10%. If you run this math on all the momentum ETFs traded in the US since October this year, you end up with about $2 billion in outflows in 3 months. That is roughly 11.5% of momentum assets on the 1st of October.

It has been well documented that investors chase performance, often piling into “hot” funds and strategies and exiting on the slight whiff of under-performance. We are seeing this in action on momentum ETFs. And as long as investors are caught in this doom-loop, momentum (and by extension, value, investment and volatility anomalies) will persist.

Also read: Investor education is a waste of time (Aug, 2014)

Code and data are on github.

Country ETF Returns 2018

There are over 1300 equity ETFs listed in the US. Of these, a fair number are country specific market-cap ETFs. With 2018 almost over, here’s how various country ETFs performed:

Thankfully, there is also an “all country” ETF – VT – the Vanguard Total World Stock ETF. Here’s the chart of excess returns over VT:

Very few markets managed to stay positive this year. Interesting times indeed!

Code and charts are on github.