It has been almost 11 years since the first official Bitcoin trades in July of 2010. It's price has experienced quite a run. Although controversial, cryptocurrencies have firmly taken hold of the current investing landscape, won hearts and minds of groups of investors, suggesting they are here to stay for longer than many have anticipated. As more data becomes available, it is interesting to check on them from a historical, quantitative and trading perspective.
All data below comes from the extremely useful charting and up-to-date market data site Stooq, via their cryptocurrency screener and historical data functionality. At the moment [May 2021] there have exactly 110 cryptocurrency data series available, of which I've excluded stablecoins pegged to a specific fiat currency (mostly USD) and one particular coin exhibiting frequent severe price jumps, to arrive at a total of 102 assets. The complete list is accessible here.
The total number of listed cryptocurrencies worldwide is over 5000 assets. It is possible to access historical price data of most of these coins (solving the problems of database bias and survivorship bias), but it is beyond the scope of this short exercise.
For illustration purposes, the chart below is constructed around Bitcoin (BTC), as this is the first and still most actively traded cryptocurrency. All other coins' prices have been rescaled to start at the exact price point that Bitcoin was on the day of their first trade. This enables convenient comparisons between the coins and BTC. Select any of the cryptocurrencies from the list below, the coins are sorted in order of appearance (date of first available data). Data ends at May 5, 2021.
A very fun feature is sliding along the time axis below the chart, with markers showing the exact time of first data for each coin.
Acknowledging the popularity of cryptocurrencies in recent times, especially among young investors, it is not surprising to see that long term returns among most coins are extremely positive. After all - an asset class is often most popular after a series of good returns. Cryptos are also very volatile. So a question arises: could these colossal returns be improved still - or at least not be watered down too much, while retaining some downside protection - by an algorithmic approach?
One of the simplest ways to improve a passive, buy & hold result, is what can be summed up as a simple Moving Average (MA) strategy. The advantage of such a strategy is not market timing; it will not time the market perfectly. To the contrary, it will usually react in a delayed manner, buying after some upside momentum has already been observed, and selling long after the price of the asset has peaked. It's main feature is, however, downside protection.
One could sum up the strategy as "don't disturb when the asset is appreciating in price (stay long), but stay out during price depreciations". A broader analysis of the pros and pitfalls of such an approach can be found on the Philosophical Economics article as an intro to a more sophisticated (but related) trading strategy.
For our purposes here it's important to understand that the length of the moving average window is not crucial - this parameter represents a trade-off between faster reaction times (but more false signals, therefore more whipsaws and more trading costs) and higher accuracy (therefore less whipsaws and less frequent trades, but slower reaction times, risking missing some of the important upside/downside movement). For this study I've used the popular choice of a 50-day moving average.
The chart below (Fig. 2) shows an example of such a simple moving average strategy on the Litecoin cryptocurrency data. The black line represents the asset (similar to a passive buy & hold), the green one is a 50-day moving average strategy with a simple binary rule:
Hold asset long when the price is above the MA, stay neutral otherwise.
All results below referred to as "Moving Average strategy" or "MA strategy" refer to only this simple procedure.
There are, of course, multiple ways to improve on such a strategy and make the results more appealing, but that's not the point. The objective is to show how just a simple procedure can improve results, without the need of more complex rules. One needs to remember, this exercise is only theoretical and for educational purposes, it is not a complete trading strategy.
First of all because of the high risk of overfitting. By testing out all historical data in-sample, and not performing out-of-sample tests, we're actually producing just an optimized backtest, not a real test of close-to-real-life-as-possible situations.
Secondly, the data selected for the backtest already has inherent survivorship bias, as we backtest here only on coins that still exist. It is reasonable to assume that such a strategy running on real assets in the past would result in at least some of the coins losing all their value completely and ceasing to exist (bankruptcy on some of the capital involved).
Thirdly, it is not at all clear if the coins were actually investable in the past (sufficiently liquid, and at all available to investors at the exchange dates and prices stated in the data). The transaction costs are assumed to be negligible, which surely is not the case, but on the other hand - the number of transactions is fairly low, so the costs in respect to the growth rates in this case might be relatively negligible.
And lastly, these being cryptocurrencies, it's important to remember these are highly volatile and speculative instruments, resulting in extreme fluctuations and multiple high-range drawdowns. Sometimes price spikes in orders of magnitude. As is evident from the maximum drawdown (maxDD) column below almost unilaterally reaching above 90%, often reaching as high as 97%. The CAGR rates reported are also insanely extreme, and it would be overly optimistic to expect such high growth rates from these same instruments going forward (although, of course, not impossible).
For keeping the results at least partly comparable, and the CAGR a bit more realistic, in the following analysis I've included only coins having at least 3 years of data. This period includes a cryptocurrency bear market in the years 2018-2020. Thanks to this, the CAGR and drawdown rates are comparable, as for the younger cryptocurrencies the full extent of possible drawdowns hasn't yet been experienced. That brings the total from all 110 assets available on Stooq, to 56 assets.
Selected stats of the cryptocurrencies are presented in Table 1. A qualitative analysis follows.
All data is from start of available cryptocurrency data (earliest Jul 17, 2010 for Bitcoin) to May 5, 2021.
Note: here the data is sorted by Market Value at end of the studied period, May 5th, 2021.
|Coin||Full name||First trade date||CAGR
|BAT||Basic Attention Token||2017-06-01||69.6||-88.2||106.4||-75.3||36.8|
The data from table 1 has been visualized in a graph form below. These are exactly the same numbers, just presented in bars. Below each coin there are means for maximum drawdown, CAGR, and excess CAGR of the moving average strategy compared to passive buy & hold.
More than a decade has passed since the first cryptocurrency (bitcoin) trades and transactions have been made. From a toy-idea, to a trillion dollar asset class, cryptocurrencies have flourished in the current tech-savvy, low interest rate environment. Yet they remain the most volatile assets publicly available. It will be very interesting to observe how this asset class develops.
It's interesting that the same simple methodology employed in other asset classes (equities, commodities) has some merit here as well. Of course, the above strategy is just a toy model, plagued with imperfections (risk of overfitting, survivorship bias, high growth rate in the early-adoption phase that would be hard to recreate in future trading environments -- to name a few). But it does show that quantitative (and more importantly: simple) trading strategies have potential even in the relatively young environment of cryptocurrency trading.
Regarding the moving average strategy, the most visible improvement over a passive buy & hold approach is in reducing drawdowns. A mean maximum drawdown of a pure buy & hold strategy is a colossal 95.4% - the reduction to 80.5% might not seem like much, but it's helpful to look at it this way: an asset needs to gain almost 22x (2200%) to undo the loss of a -95.4% drawdown. An asset needs to gain 'only' 5.1x (510%) to rebuild after a -80.5% drawdown. It is a substantial difference.
It's harder to judge the gain in CAGR -- the starting mean value of 133% is colossal already, so the "improvement" to 195% is hard to compare qualitatively. I've included the CAGR numbers just for comparison and for clarity, but it's obvious the future actual observed growth rates of these more popular coins will be much lower.
As stated earlier, the strongest aim of a moving average strategy is reducing the extent of drawdowns, staying out of the asset while a severe downtrends develops. This might be a potentially very useful feature if any sustained and prolonged downturn for all cryptocurrency assets was to develop. On the other hand, the most demanding scenario for such a strategy is a prolonged, lengthy consolidation phase, which usually results in a lot of whipsaw and sub-optimal opening and closing of positions. The strategy makes more sense, the more 'trending' an asset class tends to be (both up- and down-trending).
As always, be advised that constructing a true, real-time trading strategy needs much more work than a simple in-sample backtest. At the most importance is data quality - gathering correct data, the handling of incomplete data, data spikes, and so on. A very important issue of trading costs remains. And at last, the specific portfolio construction and rebalancing scheme is of great importance regarding risk management of such a potential investing strategy. Risk management remains much more important than favorable signal generation or market timing.