Algorithmic Crypto Trading VII: Regime Filter

In the previous blog posts, we discussed why trading crypto and adopting a systematic/algorithmic approach can be beneficial. In the upcoming blogs, we will delve into more specific topics that apply to these systematic approaches. In this blog, we will begin with the regime filter.

Why do you need a regime filter?

Developing a strategy that works in all market conditions is challenging. In this blog, we will demonstrate how to create a basic regime filter that can help identify bull and bear markets in crypto.

A regime filter determines the broader market trend. Certain strategies perform better when aligned with this trend. For example, being long on crypto when the broader market is trending up, but staying in cash when the broader market trend is down.

This concept is not new and has been used for decades in the stock market. For those trading S&P 500 equities, the 200-day moving average (MA200) is the most popular regime filter for the index itself. It’s as simple as identifying a bull market when the price is above the MA200 and a bear market when it’s below.

Let’s compare the results of the regime filter on the index to a buy and hold approach.

MA200 on S&P 500
MA200 on S&P 500
Buy and Hold Approach
Buy and Hold Approach

It’s evident that using the regime filter can reduce risk, minimize time spent in the market, and experience lower drawdowns. Although the absolute profit is lower, you won’t be tempted to sell your shares during a 50%+ drawdown, unlike with a maximum drawdown of 21% when using the MA200.

Applying the Regime Filter to Crypto Trading

In this blog, we will keep the focus on crypto and simplify the concept as much as possible. I will show you how to create a favorable regime for trading crypto.

To quote one of America’s most successful stock traders, Mark Minervini: “To trade with ease, you must learn to wait patiently until the wind is at your back. Why not wait for a breezy day to set sail?”

The Influence of Bitcoin on the Market

In the crypto world, everyone claims that Bitcoin is king and the market follows its lead. Let’s find out if this is really the case and if we can utilize it to determine the broader market trend.

So, let’s conduct a quick test.

For this test, we will use the spot non-survivorship bias data from Binance (we will explain this concept in detail later in this series).

We will also employ a simple moving average, which is popular in stock trading, as a regime filter. Let’s use the 50-day moving average (MA50) for crypto since a shorter moving average suits the volatile and fast-moving crypto market.

MA50 on BTC
MA50 on BTC

You might think it’s too simple to work. However, let’s examine the results from November 1, 2017, onwards on BTC only.

MA50 on BTC
MA50 on BTC

We outperform holding BTC by 5 times, indicating that it definitely works in identifying trends in BTC. It’s also the most basic form of a trend following strategy.

Now, let’s return to our experiment to see if BTC influences the market.

To test this theory, we will buy the top 15 most traded pairs on Binance when BTC closes above its MA50 and sell when BTC closes below its MA50. This should provide a clear indication of whether the wind is in our favor or not.

Top 15 if BTC > 50ma
Top 15 if BTC > 50ma

Look at this! We are in the market 45% of the time and experience approximately 55% drawdown, which is much lower than the buy and hold approach. We can verify if this regime offers favorable trading conditions by reversing the buy and sell conditions.

Top 15 if BTC < MA50
Top 15 if BTC < MA50

It’s evident that it’s not a good time to buy crypto when BTC is below its MA50.

Theory is confirmed: BTC is king and dictates the market!

Imagine how much easier you made it yourself when creating a strategy to find good entries to buy or short, when you already gave yourself such favorable regimes!

Regime filter on a Mean Reversion strategy

Now, let’s test this entire approach on a classic mean reversion strategy called RSI2 by Larry Connors.

The conditions for this strategy are quite simple:

Buy: RSI(2) < 5 and the regime is bullish.

Exit: Close price (C) > 5-day moving average (MA5).

Let’s test it on a small portfolio of 5 pairs, prioritizing the entry of pairs based on the highest trading volume on Binance.

First, let’s test it without the regime filter:

RSI2 no regime filter
RSI2 no regime filter

And now, let’s test it with the regime filter:

RSI with regime filter
RSI with regime filter

Conclusion

You can clearly see how trading with the wind at your back can be incredibly helpful.

By incorporating a regime filter that aligns with the broader market trend, you can significantly improve your trading outcomes. It allows you to take advantage of favorable conditions and avoid unfavorable ones.

It’s important to note that while we demonstrated a straightforward method to create a regime filter in this blog, there are many other ways to determine a regime.

In conclusion, the regime filter is a valuable tool in algorithmic crypto trading. It helps identify bull and bear markets, reduces risk, minimizes drawdowns, and improves overall trading performance.

In the next blog post, we will explore more advanced techniques that can be employed in systematic crypto trading. Stay tuned for further insights!

Remember, in the world of algorithmic crypto trading, waiting for the wind to be at your back can make all the difference.

Disclaimer: All information provided by Robuxio.com is intended solely for the purpose of studying topics related to crypto trading and is in no way intended as a specific investment or trading recommendation. We are not a registered broker or investment advisor. I mention specific financial products, especially cryptocurrencies, always and only for the purpose of studying crypto trading. We are not responsible for the specific decisions of individual readers of this presentation. Trading and investing in financial instruments (and cryptocurrencies in particular) is high risk. The decision to trade cryptocurrencies is the responsibility of each individual and only they are fully responsible for their decisions. Never engage in trades that you do not fully understand the merits of. Remember, the crypto exchange has rules that you need to understand before risking your own money!

Share the Post:

Related Posts

Themes by WordPress

Your Exclusive Newsletter Edge

Don’t miss out on Robuxio’s latest research.

We care about your data in our privacy policy.

Sure you have enough info to get started?

Please select the type of investor you represent:

Webinar Submit form Languages
Trend Catcher Portfolio
Pattern Portfolio