Long term investment analysis

Disclaimer: Not financial/legal/tax advice.

There are many debates and analyses regarding staying invested in the stock market. In this article, I take a deeper dive into some of the data regarding two sides of the argument, to stay invested during volatile times or not. A series of articles debunking common myths about investment for the long-run, is a series called The Myths of Stocks for The Long Run, written by Lance Roberts, and Michael Lebowitz from Real Investment Advice (RIA). The other side is represented by the article The case to always stay invested posted by JPMorgan.

In The Myths of Stocks for The Long Run, the authors were analysing some of the common myths about investing, namely "time in the market is better than timing the market". This statement is usually true in bull markets, however, at other times, the effects of being in the market can be devastating. Starting an investment in the NASDAQ100 before the dot-com crash would have resulted in a loss that would take around 12 years to breakeven. Similar effects were shown for the S&P500 index in the series of articles. The reason simply is that, major crashes destroy the compounding effect of wealth growth, for example, a 40% crash needs 5 years of 10.8% growth, 3 years of 18.6% growth, or 2 years of 29% growth, just to recover the loss. They managed to show a simple technical strategy that can reasonably avoid the most devastating moves in a bear markets (hence timing the market somewhat), by simply staying in the market as long as the price is above the 12 months moving average.

In The case to always stay invested, the main premise behind the article is that, trying to "time the market" by getting out of the market after volatile events has high chance (of 70%) of timing errors and missing the best performing days, and missing the 10 or 20 best performing days significantly decreases the growth of the portfolio. Missing the best 10 days will cut the annual growth rate from 9.4% to 5.2%, missing the best 20 days will cut it to 2.5%, and missing the best 30 days will cut it to 0.32% (nearly no growth at all).

The main thing I agree with JPMorgan's article about is one should not make emotional decisions in investing. There are many corrections in the market that recover fast enough, taking an emotional decision to sell after a volatile event can lead to near worst-case scenario (selling near the bottom, then the market recovers shortly after). However, the argument laid by the article of JPMorgan is mostly misleading in my opinion, even when the data shown is correct. The reason I find it misleading is that, throughout the history of the S&P500, the best days mostly come in extremely volatile bear markets, almost always after one of the top worst days, or series of days (check the table below, conducted on SPY, which is an ETF tracking the S&P500 since 1993). Hence, one does not magically wrongly time missing the good day without timing missing some of the bad days preceding it. For instance, if we look at the list of top 20 days, according to the argument of JPMorgan, October 2008 and March 2020 look like two of the greatest months to invest, however, they have -16.52% and -13.00% returns, respectively. They are actually the worst and third-worst months of the entire history of SPY. On the other hand, part IV of the first article discussed missing the worst 10 or 20 days, which is also misleading for similar reasons. Perhaps, a better analysis would include missing both best and worst days, or in other words, the most volatile days.

Best 20 days
Date returns (%)
2008-10-13 14.52
2008-10-28 11.69
2020-03-24 9.06
2020-03-13 8.55
2009-03-23 7.18
2008-11-24 6.93
2020-04-06 6.72
2008-11-13 6.23
2008-10-20 6.01
2002-07-24 5.97
2009-03-10 5.96
2020-03-26 5.84
2000-01-07 5.81
1997-10-28 5.77
2022-11-10 5.50
2020-03-17 5.40
2008-11-21 5.39
1998-10-15 5.38
1998-09-08 5.37
2020-03-10 5.17
Worst 20 days
Date returns (%)
2020-03-16 -10.94
2008-10-15 -9.84
2020-03-12 -9.57
2008-12-01 -8.86
2008-09-29 -7.84
2020-03-09 -7.81
2008-11-20 -7.42
1997-10-27 -7.25
1998-08-31 -7.13
2008-10-09 -6.98
2011-08-08 -6.51
2008-11-19 -6.41
2020-06-11 -5.76
2000-04-14 -5.72
2008-11-06 -5.54
2008-10-22 -5.45
2009-01-20 -5.28
2001-09-17 -5.22
2008-10-06 -5.09
2008-10-24 -5.07

Presented Analysis

Missing the best 10 days or worst 10 days are theoretical setups that will rarely occur; probably a good practical alternative is missing the best and worst days altogether. As a result, one should analyse practical strategies that can be applied, and not theoretical scenarios that will rarely manifest, hence I present a modified version of the analysis made by JPMorgan, based on variants of the technical strategy presented by RIA.

The strategies are staying the market when the price is above the 50-days moving average (50 DMA), 100-days, 150-days, 200-days (9 months period), and 250-days (12 months period). The 250-days moving average is a smoothened variant of the 12 months moving average, since it also contains a lot of samples from within the months, not only the closing prices. The benchmark strategy is the classical buy and hold. Furthermore, I extend the theoretical strategies to missing the best, worst, and both 10, 20, or 50 days. I also investigate staying only intraday (only during American exchange market hours, buying at open, selling at close), or the opposite of staying outside the open hours (selling at open, buying at close).

The capital is invested in two fashions, starting from the beginning of 2002 until the end 2021 (20 years in total), either lump sum or Dollar Cost Averaging (DCA). In both cases, dividends are reinvested. The lump sum invests a capital of 1 million dollars at the beginning of the investing period. DCA assumes a monthly gain of 1,000$, that are invested at the beginning of the month.

In this table, we can see the annualised return for the lump sum investment and the dollar cost averaging. The numbers seem to be slightly different than the study by JPMorgan, since they conducted the study on S&P500 index and not on an ETF tracking it.

As hypothesised, avoiding both the best and worst days is generally better than just the buy and hold, as seen by missing the best 50 and worst 50 days, and similarly for 20 or 10. This is probably due to the distribution of negative days in volatile times of the markets; additionally, there is a natural skew in the math of compounding loss, favouring the downside, for instance, a 10% loss followed by a 10% gain is in 1% net loss, a 25% loss followed by a 25% gain is in 6.25% net loss, and a 50% loss followed by 50% gain is in 25% net loss.

Interestingly, the moving averages strategies perform better than missing the worst 10 or 20 days (but not the worst 50). This shows that the moving averages are good indicators of volatile markets, hence they are good filters for the good times to invest. The shorter the period of the moving average, the less it is affected by the lagging effects of the moving average, hence the earlier it will find the beginning and end of bear markets, but also the more likely it will give false-positive signals; it is very frequent that the market falls below a 10 DMA or 20 DMA. Another advantage of the higher period DMAs, due to the lagging effect, if they give false-positive signals, the false-positive signals tend not to have big effects. For example, following the strategy in 2015, the strategy would exit SPY on 20 Aug at 204 and reenter on 28 Oct at 208, and again would exit on 31 Dec at 204 then reenter on 16 Mar at 203, this is a missing 1.4% gains for skipping a 50-months volatile period. As a result, even when the 50 DMA strategy is more profitable, it can also be more volatile, compared to the 200 DMA or 250 DMA.

DCA annualised returns % Lump annualised returns % DCA 20-Year growth factor Lump 20-Year growth factor
Above 50 DMA 22.20 32.55 55.13 280.47
Missing worst 50 days 18.16 24.67 28.15 82.25
Above 100 DMA 15.58 23.48 18.10 67.87
Above 150 DMA 15.45 22.83 17.70 61.06
Above 200 DMA 12.79 19.27 11.10 33.93
Above 250 DMA 11.30 17.34 8.51 24.50
Missing worst 20 days 12.81 17.15 11.15 23.70
Missing worst 10 days 10.51 14.11 7.37 14.01
Missing best and worst 50 days 8.80 10.35 5.40 7.16
Missing best and worst 20 days 8.11 9.80 4.75 6.48
Missing best and worst 10 days 7.72 9.69 4.42 6.35
Buy and hold 7.18 9.33 4.00 5.95
Missing during market-open 5.17 7.52 2.74 4.26
Missing best 10 days 4.85 5.09 2.58 2.70
Missing night moves 2.80 3.64 1.74 2.05
Missing best 20 days 3.51 2.47 1.99 1.63
Missing best 50 days 1.63 -3.23 1.38 0.52

Portfolios growth

Here I show the portfolios' growth for some of the strategies.

Important remarks

  1. The strategies above are not considering the tax situation, where exits are subject to capital gains tax, which will eat a lot of the compounding gains, especially when the strategy gives false positive signals.
  2. The analysis assuming that not being in the market simply means staying in cash, which might be an extreme measure for some investors. RIA suggested that it doesn’t need to be purely in cash, but it can be possibly a period of de-risking, by diversifying in bonds for example, or hedging with options.
  3. The given strategy is a technical strategy, that does not consider any fundamental aspects of the economy and so on, so it is more beneficial to be used as diversifying or augmenting other strategies, rather than using it alone.

The data is acquired from Yahoo Finance.


Created on 2022-09-15 at 10:39