Saturday, December 14, 2019

Dow Theory Special Issue: Hamilton’s insight that the Dow Theory may be applied to many markets seems to be right (II)


Applying the Dow Theory to oil markets while exploring the short side. Towards building a Dow Theory portfolio 

 


In the first post of this new Hamilton saga, I applied the Dow Theory to the oil sector. I took the pair formed by USO (crude oil) and XLE (oil stocks) ETFs. I analyzed the “long” side, that is buying when a primary bull market is signaled and selling and remaining “flat” when there was a sell signal. As you can read in that post, in spite of heavy declining markets, the Dow Theory managed to remain positive while dramatically containing drawdowns.

Today we are going to explore the short side. What would have happened if instead of just going flat when a primary bear market got signalled we would have actually shorted (and covered when a primary bull market was signalled)? This post merely analyses the short side, not the combined performance of going long and short (that is covering and buying when a primary bull market signal is given and selling and shorting when a primary bear market is given). The combined long/short performance will be the subject of another post.

First off, I have to make clear that shorting is not made for everyone. In this post, I made very clear that in most instances is not advisable to short US stocks. Please read the linked post carefully.


From such a post, we can conclude that if the US keeps their persistent upward bias of ca. +8 p.a. and we continue to be subject to shorting fees, paying dividends to the lender, etc., shorting US stocks may result in very modest gains or outright losses.

However, not always are conditions so negative for shorting. What if one were to short S&P 500 futures? In such a case, there aren’t any shorting fees and no need to pay dividends as there is no lender. Basically, we would be confronted with just the upward bias of ca. 8% p.a. of US stock indices (something which on any given year may not be the case and which is not carved in stone and is likely to change as I wrote here)


What if a hedge fund manager were utterly convinced that US stocks indices were not going to deliver more than 1-2% p.a. in the next ten years? What if such a hedge fund manager is not going to short ETFs but S&P 500 futures (even by having full collateral and not leveraging). In such an instance, the only worry would be contango or backwardation (which can benefit or harm one’s position when rollover is due). Hence, in such a setting, shorting, with all caution, could be attempted.

Furthermore, there are many markets with no Godfather. Markets which, unlike US stocks, seem to have no one to prop them up. No plunge protection team. Nada. Nichts. Nothing. Gold, silver, oil, their miners, wheat, corn, soymeal, soy beans, etc. decline with gusto. There is no 8% p.a. upwards bias for those bereft asset classes. They go up and suddenly got clobbered for years. Nobody to step in as a buyer of last resort. Free to fall. Vested institutional interests favor their falling (who wants high commodities?). And fall do them!

Furthermore, outside the US there are many stock indices which regrettably lack any upward bias. Not all countries are as blessed as the USA. Here you have the CAC 40 (French index). In the period spanning from the end of 1999 to 2019 the CAC has basically made zero gains. 

French Stock Index CAC 40. No upward bias from the end of 1999 to date
 
And what about the Spanish IBEX 35 (made of the 35 most important companies of Spain). Well, a similar fate than that of France. In the last 20 years. No gains at all. Even modest losses. Talk about the long term view!

Spanish Stock Index IBEX 35. How not to make any money in 20 years. Quo vadis (where are you going) Spain?


 These two charts are courtesy of Yahoo! Finance

While I try to get outside politics on this blog (even politics get discounted by the markets) one thing seems to be clear. The business of USA is business. In spite of everything, USA remains a good place for goal oriented and entrepreneurial people.

My point is that not all stock indices have a build in upward bias which makes shorting a losing proposition. Even the upward bias of US stock indices may one day come to an end, or at least, take a long a pause.

Even within the US stock universe, not all stocks go up. While I don’t advocate shorting individual stocks (one earnings surprise can wipe you out as shorts have unlimited losing potential), we can see certain stocks ETFs that have persistent down trends, as we have seen for the last 7 and odd years in this blog with precious metals miners ETFs, they are made of stocks but without the fanfare of other industry sectors.

The same applies to oil stocks. At least in the period I tested (2009-2019) the only bias I could see is a negative one.

Shorting, when used judiciously, may add value. On the one hand, it acts as a diversifier. Maybe some markets are declining and their longs result in small losses or very modest gains. However, their shorts are doing great. We cannot know in advance which markets will go up and down in the next years and hence if confronted with a declining market, being short would allow us to extract performance whereas the long side stalls. And I write "stalls" because the Dow Theory even when confronted with declining markets tends to win less or lose little but you are not likely to lose your shirt.

The USO/XLE example of this post is a clear example of the value added by shorting. Picture yourself as an investor in 2009 (when my exercise began). You were bullish on commodities because the preceding 10 years had been bullish. You decide to apply the Dow Theory by only going long. Thereafter, you have to suffer a secular bear market and your longs suffer. As we saw in the previous post by going only long the Dow Theory would have managed to make a modest +5% while buy and hold lost money. However, such an outperformance cannot hide that +5% in 10 years is a very modest result. Not to blame on the Dow Theory but on a market that had hair curling declines. However, as we shall immediately see, if the investor had shorted, he would have made a respectable gain (the tide was on his side).

The take away is this: We don’t need to predict the future. Just to properly apply the Dow Theory and the very trend will take care of ourselves.

All in all, my opinion on shorting can be summarized as follows:

1.      In general, I don’t recommend shorting individual stocks (exception: very short term trades lasting few days and under very specific circumstances).

2.      In general, I don’t recommend shorting US stock indices. Hitherto, the odds have been stacked against you. Upward bias, shorting fees and paying dividends to the lender make it a long term losing proposition. 

3.      However, shorting S&P 500 futures may in some specific instances be thinkable.

4.      Specific US stocks ETFs may be suitable candidates for shorting (but keep in mind shorting fees and dividends to be paid to the lender).

5.      Shorting stock indices of other countries (especially through their futures) may be a good way of getting short exposure to one’s portfolio without confronting an upward bias.

6.      Shorting commodities (which would be through futures) seems plausible. No upward bias, no shorting fees, no dividends to pay and just having to worry about contango and backwardation, rollover and liquidity,all of these issues which the trading desk of any hedge fund worth its salt masters to perfection.

After this somewhat lengthy introduction, let’s analyse what would have been the performance of applying the Dow Theory to the USO/XLE pair by going short when a primary bear market was signalled and covering and going flat when a primary bull market was signalled.

·        Total short trades taken: Five. The average duration of each trade is less than one year, as declines tend to be faster than rallies.

·        Maximum drawdown short (closed trades): -27.03%. Please mind that given the asymmetry between being long and short, one is more likely to experience higher drawdowns (and losing trades) when being short. A decline from 100 to 50 entails a loss of 50% when being long. A rally from 50 to 100 entails a loss of 100% when being short. This is why, one should construct portfolios, that is diversifying one's capital across many markets so that one can take shorts but any specific losing trade doesn't decimate one's capital. Portfolio construction under the Dow Theory is a field which I hope to explore in future posts.

·        Maximum drawdown buy and hold: -64.33%

·        Maximum rally buy and hold: When comparing drawdowns, and when being in a short only mode, it is good to measure the magnitude of the largest upward swing (the tide against our shorts) during the time we had shorts. Our last short in this test was closed (covered) on 4/12/2016. As you can see from the spreadsheet below USO rallied a whopping 97.51% from 2/18/2009 to 4/29/2011. XLE rallied a remarkable 165.71% from 3/2/2009 to 6/23/2014. Thus, even if, for the whole period considered, there was a downward bias which resulted in a net loss for buy and hold, there were strong rallies which had to be confronted by the shorts taken according to the Dow Theory. All in all, the short side wasn’t easy either. A quite "noisy" market nothing like the calm seen with US interest rates or US stock indices.



·        Final capital buy and hold (starting at 100): 90.93. Hence buy and hold lost for an allocation of 50% to each ETF ca. 9.1%. There were strong rallies but also strong declines with a global negative outcome.

·        Final capital Dow Theory (starting at 100): 156.75, which translates to an outperformance versus buy and hold of ca. 6.5% p.a. (annualized). It also represents an annual performance of ca. +4.6% annualized. Please mind that the negative “gravitational” force against long positions has been favorable for shorts during the period tested, as there was a maximum decline of -64.33%. We also observe, that by being short when there was an predominantly bearish tide resulted in making positive returns.


All in all, shorting in markets (USO/XLE) which lack upwards bias would have resulted in positive returns. The maximum drawdown experienced by the Dow Theory when shorting was also much smaller than that of buy and hold.

Here you have a breakdown of the trades taken.



 
In the next post, I’ll show the performance if both long and short positions had been taken. In that post I will also display the charts containing all Dow Theory signals.

Until then cogitate this post and the preceding one.

Sincerely,
The Dow Theorist


 


Friday, December 6, 2019

Dow Theory Special Issue: Hamilton’s insight that the Dow Theory may be applied to many markets seems to be right



 Applying the Dow Theory to oil markets and towards building a Dow Theory portfolio


Hamilton was Charles Dow understudy, and writer of the book The Stock Market Barometer

As I have written here, Hamilton was of the opinion that the Dow Theory may be applied to other markets. Based on that insight, when I started this blog, I wanted to apply the Dow Theory to precious metals, interest rates, and occasionally, even to Chinese stocks.

As I wrote in my previous post, from eyeballing the charts I know that my applying the Dow Theory to the pairs SLV/GLD and SIL/GDX has outperformed buy and hold since August 2012 while dramatically reducing drawdowns (when I started the blog). In order to draw final conclusions, I have to wait, though, until the current swing for those markets makes their final lows. As readers of this blog know, in order to properly compare the Dow Theory and buy and hold performance, we need to wait until the final lows of the primary bear market are made (the further decline following the primary bear market signal). However, we don’t know the final lows until the next primary bull market signal is given. Hence, I still have to wait some months to give final figures.
 
Therefore, while I wait the final figures of outperformance for precious metals whose trades have been publicly made known on this blog in real time, I decided to apply the Dow Theory to the energy sector. My premise was as follows. Oil stocks should more or less move in tandem with their underlying commodity. If oil is weak, oil stocks should, more or less, be weak too. Hence, I took USO (crude oil) and XLE (oil stocks) ETFs. While maybe not the best pair to apply the Dow Theory, I did it as per the following rules:

·        At least 15 trading days on both indices in order to declare a secondary reaction.

·        At least 1/3 minimum retracement, save when it has been a very long secondary reaction (i.e. 50 days, etc.) and retracement for both indices nears 1/3.

·        At least two days pullback/rally after the secondary reaction to setup the ETFs for a primary bull or bear market signal.

·        Both the secondary reaction and the subsequent pullback/rally must exceed the minimum movement (volatility adjusted). Hence, negligible movements, even if the satisfy the time requirement, do not qualify.

·        Both for buy and hold and the Dow Theory I divided the hypothetical trading capital by two. One half for USO and the other half for XLE.

·        I calculated the results and drawdowns in two different ways: One way, by only going long and being in “cash” (out of the market) when there was a sell signal. The other way, by going short when a sell signal was given, and covering and going long when a buy signal was given.

As you can see, I applied a “classical” Dow Theory flavor. I didn’t apply Schannep’s, as I just had two indices.

First off, I’ll analyze the results by just taking long trades and being out of the market when a sell signal is given. In another post, I will discuss results (truly good, by the way) when shorted when a sell signal was given.

The test spans from 08/05/2009 (first long taken) to 08/11/2018 (last long closed). Since 08/11/2018, the Dow Theory did not signal any new long position.

Here you have the highlights:

·        Total long trades taken: six. Since the test spans ca. 10 years, we have a “typical” classical Dow Theory duration for the average trade, which is more than one year.

·        Maximum drawdown buy and hold: -64.33%

·        Maximum drawdown Dow Theory (closed trades): -17.95%

·       Final capital buy and hold (starting at 100): 90.93. Hence buy and hold lost for an allocation of 50% to each ETF ca. 9.1%

·       Final capital Dow Theory (starting at 100): 105.28, which translates to an outperformance versus buy and hold of ca. 1.5% p.a. (annualized). Please mind that the negative “gravitational” force against long positions has been very strong during the period tested, as there was a maximum decline of -64.33%. Confronted with such a bearish force, the Dow Theory managed to remain positive by going long. This is a huge accomplishment.

·     Hence, the Dow Theory reduced the maximum drawdown by 72.08% when comparing the drawdown of buy and hold to that of the Dow Theory. This dramatic drawdown reduction confirms what I have repeatedly asserted: The main source of the Dow Theory outperformance is loss avoidance. Hence, when markets (as US stock indices in the last 10 years) lack significant drawdowns, the Dow Theory will surely underperform. However, “underperform” does not entail “losing”, just winning less.

·      Therefore, Hamilton seems to be right. While I want to perform more tests to extraneous markets, it seems that the Dow Theory may be successfully applied to other markets.

Here you have the breakdown of the trades taken and other interesting data:
Trades taken by applying the Dow Theory to oil ETF (USO) and oil stocks ETF (XLE)

 
 
Starting and final capital for buy and hold and the Dow Theory
 
Maximum drawdown comparison between buy and hold and the Dow Theory

This exercise has been useful, as I have always thought that US stocks have behaved too nicely for the last 120 years. By “nicely” I mean that there have been few drawdowns and their depth was quite mitigated. By “nicely” I also mean that even in those rare occurrences of big drawdowns (i.e. 1932, 1974, 2000-2002, 2008-2009, and to some extent October 1987) the Dow Theory was “nice” enough to signal a bear market before the really big declines occurred. As I wrote here, there is no guarantee that the Dow Theory (or for that matter any trend following method) can get us out in time when markets become unruly, as Chinese stocks behaved in August 2015 (see here and here, if you want to see scary market action even when applying the Dow Theory). Hence, it is a good exercise to apply the Dow Theory to many markets, and especially markets that have experienced deep declines before a primary bear market signal was signalled. What if 2008 had not been preceded by a relatively soft decline at first (secondary reaction) followed by a rally (setup for primary bear market completed), and would have declined overnight by more than 30% with no prior warning? When one applies the Dow Theory to precious metals, oil markets (as with this post), wheat/corn, etc., one can experience first-hand much more unruly markets. What if one day US stocks behaved like that? Are Dow Theorists and trend followers in general prepared to weather such a storm? Personally, I don’t like to fake reality and say, “well this will probably never happen to US stocks, after all the Fed will take care of an orderly decline” or say something like this “the US is different, such drastic declines are unheard of”. In markets everything is possible. It is your capital (or your client’s) what is at stake and I just don’t want to hope for the best. I must mentally rehearse worse scenarios ahead than those previously seen. Maybe I am paranoid, but the best offence is good defence. Drawdown reduction is key to long term investment survival.

 I just see two ways to play defence against markets that get “unruly” and experience drastic declines before a primary bear market signal is given.

The first line of defense is to diversify across time frames. This idea is not new but it is worth repeating: We can trade the very same markets with alternative definitions of secondary reactions. Hence, we can split our trading capital between two different ways of applying the Dow Theory. For instance, one demanding strictly 3 weeks confirmed and 1/3 retracement and performing volatility adjustments so that there is a minimum movement; and other one, just requiring 10 or 8 days for a secondary reaction to exist and giving away the 1/3 requirement (as does Schannep) and being less strict with the minimum volatility adjusted movement. By splitting the capital between two alternative ways of applying the Dow Theory (one more reactive, with smaller losing trades, but with a lower profit factor, and the other one less reactive, with better long term profit factor but more prone to occasional big losing trades) one is more likely to avoid a monster losing trading when markets become crazy.


The second line of defence is to diversify your capital across many markets. As an example, one could devote 1/5 to US stock indices, 1/5 to precious metals, 1/5 to energy, 1/5 to US interest rates and 1/5 to agriculturals (i.e. pairs as wheat/corn, soybean/soy meal, etc.). Thus, if you are caught wrong footed, your losses will be, nevertheless, smaller. A 30% loss (or drawdown resulting for some consecutive losing trades, or just by one monster losing trade) when one has just allocated 20% of his capital to the unruly pair of markets is just a 6% loss for the whole portfolio, which is bearable (and quite likely some other market will be winning, hence further mitigating the 6% loss). The key is diversification, as all futures hedge fund manager know. No futures hedge fund manager in his right senses would ever attempt to apply his trend following method to just one market, no matter how good past performance has been in the past. However, we, Dow Theorists, seem to be blinded by the generous Dow Theory record when applied to US stock indices. While I have not yet applied the Dow Theory to, i.e. French or Spanish stocks indices in the last 15 years, one thing I know is that, their charts look quite pathetic, nothing short of the booming pattern seen in US stock indices. What if one day the US becomes like those old Europe laggards? What if one day the US manages to screw its own economy up by imitating the failed policies of some old Europe countries? Would it then be so easy to make 7% p.a. by just being buy and hold? And how would the Dow Theory perform under such conditions?

Well, enough for today, I feel this has been a good “stress test” as we have seen that even when confronted with a profoundly bearish environment, the Dow Theory managed to even make some modest gains. Off course, there is no guarantee to make positive results even under strong secular bear markets. However, it seems clear that the Dow Theory will most probably do better than buy and hold or even many trend following systems based either on moving averages or breakout systems.

In the second post of this Hamilton saga, we will see what would have happened if we had shorted. As an appetizer: Very positive results. While I am not friend of shorting US stocks, it may make sense in some markets. More about this in a future post.

Sincerely,
The Dow Theorist