Creating Trading Strategies Based on Mean-Reversion and Momentum - R Blog - RoboForex (2024)

I think researches on trading systems is the main issue of building trading strategies. Our main goal is to build a strategy, which will be successful in the future and not only on backtests (curve-fitting). That is why I consider it right to start the topic with the description of the two approaches to the creation of trading strategies.

Two approaches for researching of trading systems: data mining and statistics vs market structure research

Creating Trading Strategies Based on Mean-Reversion and Momentum - R Blog - RoboForex (1)

Market structure research

Understanding the essence of inefficiency, which underlies the system earnings. For speculation, the basis of this can be expressed in Buffett's aphorism: “If you've been playing poker for half an hour and you still don't know who the patsy is, you're the patsy.” If you do not know who loses on the exchange, then you lose. You should know it when you trade. To earn money on a system, other traders must lose on this system. Again, trading is a zero-sum game. Understanding the market phenomenon is very different from "dragging opinions onto the market."

First, we formulate a hypothesis about the behavior of one or another type of participant. Then we express this hypothesis in terms of price, volume, and so on. And only then we test this hypothesis on history. If it “came together” exactly as we assumed, then the chances that this is just an accident are extremely low. in this way we get at the same time both the “built-in” robustness and the “trigger”, the performance of which allows us to judge that the phenomenon has died.

For example:

  1. There are some common behavioral patterns of mutual funds, for example, a few days before the end of the month they sell off liquid stocks and in the first two-three days of the beginning of the new month, they buy them back. So, you can identify them and try to build Mean-Reversion trading strategies based on these price movements.
  2. In Brazil in 2014 there were frosts and the price of coffee was increased significantly. It was like a big coffee crop loss. Those who had access to data on the volume of Brazilian coffee for export in export certificates saw that the volumes prepared for export did not fall much. *For export, you must first obtain a certificate (you must provide information about the volume and batch of coffee for analysis). In other words, farmers saw that frost damage was not so strong and boldly sold coffee. Price then returned to previous levels.

Advantages of this approach:

  • Understanding the process, its mechanisms
  • Ability to start and stop trading in time

Disadvantages of this approach:

  • The complexity of research (a lot of extra nonprice information)
  • The complexity of monitoring

Data mining and Statistics approach

Data mining is a subset of computer science. It joins branches of computer science, machine learning, a subcategory of artificial intelligence, and database systems, with statistics. It is the process of discovering information in large data sets. The goal of data mining is to transform a data set into understandable and usable information.

You can develop and research strategies using machine learning techniques for any market or timeframe using Price and Nonprice data. You can generate and verify millions of different entry and exit conditions, order types and price levels, to find best performing strategies according to your selection criteria – for example, Net profit, Return vs Drawdown, Sharpe ratio, etc.

The source of fitting could be a set of absolutely random coincidences, or some long-lasting factor that acted on a significant part of the test period, but not the fact that it will continue in the future. Examples, long bullish trends and the advantage of long trading systems.

"Don't Confuse Genius With A Bull Market" (с).

But there may be other examples - such as a long flat period or trend, etc. Of course, one can argue here that any system uses a favorable phase that has been protracted for it and there are no guarantees that this will continue. And you can only be a bull in a bull market if you know when to stop. If the allocation of favorable phases for the system is formalized and implemented in the form of system filters, then this is good. But everything can not be formalized and know in advance. For this, there are criteria for rejecting the system, out of sample validations, etc.

See also: Trading Strategies That Were a Revolution: Trading Chaos-2 by Bill Williams

Advantages of this approach:

  • Research Speed
  • Simplified monitoring byformal criteria
  • You can trade dozens of strategies in parallel

Disadvantages of this approach:

  • Additional costs for disappearing inefficiencies (lag to start and stop trading)
  • Not understanding of market microstructure.

Mean-reversion vs. Momentum strategies

Creating Trading Strategies Based on Mean-Reversion and Momentum - R Blog - RoboForex (2)

Momentum and Mean-reversion are 2 global classes, which include almost any trading system. These are two opposites. It’s property of price to continue movement versus the property of price to reverse back.

Who loves physical analogies, then for Momentum has the property of physical bodies to continue moving even after the initial impulse has ceased to act, and Mean-reversion is like a pendulum that by impulse passes the equilibrium point, are forced to return it.

They both seem to be opposite of each other but they both work well. The reason that is possible they work at different time horizons. If you generalize, the reason is that investors behave a certain way.

Trend-Following (Momentum) strategies have a long track record of performance. The famous expression "Trend is your friend", it refers to Momentum. One-sided, but written for the trend stock market of the last century.

Mean-reversion, especially at shorter time frames, works well. Let’s look at trend-following strategies

Why do trend-following strategies work?

Trend-following works when you look at the trend in returns over the last year or so. If you look at shorter durations like the trend over the last month and try to follow that you might lose your shirt. When Trend-Following strategies work, they usually have big gains. But when they don’t work they have small losses. This is called a “positive skew”.

A few Momentum metrics

  1. The forced sales/ purchases of assets of various types of funds (volume traded).
  2. Time Series momentum. The past return of price series is positively correlated with future returns.
  3. Limitations on liquidity. To enter or exit a large size, the trader is forced to split it into pieces. As a result of its periodic trades, a movement is formed on a certain time frame.
  4. Temporary liquidity failures at certain levels or at certain points in time. When there is low liquidity to sell, for example (limit orders if on an exchange), then even relatively small purchases will cause a significant up-pulse.

What is Mean-reversion strategies

Mean-reversion works because of short-term demand-supply imbalance. Usually, people employ mean-reversion strategies at short timeframes (minutes or days or even microseconds. The microsecond part of the trade would be HFT. It could be pair trading, spread trading, arbitrage, and quasi-arbitrage are the same; they open positions with a strong divergence in asset prices.

Mean-reversion strategies would have small gains but big losses. it is supposed to work most of the time and to avoid the big losses we need to have very strict mechanized risk management.

A few Mean-reversion metrics

  1. Low volatility (FX midnight time).
  2. The temporary strength of the limit order side versus the market order side. This is usually the case in round-the-clock markets at certain times.
  3. The entrance of many participants (not only speculators) is followed by exit (closing of these positions). For example, most intraday stock traders who entered a long position will sell it at the end of the trading session. It will create the opposite movement.

Are there generalized mathematical models?

There are several models - the Hurst Exponent, H-volatility and some others, which immediately contain the Momentum and Mean-reversion models as well as 3 intermediate states. There is, for example, such a model as cointegration, for which its creators received the Nobel Prize. This is a generalized model of Mean-reversion.

Example of Stocks up-trend momentum long strategy

You can find inhttps://rtrader.umstel.com/. This strategy is based on an algorithm that allows you to identify the beginning of momentum buy on the 30-minute chart, going in the up-trend direction.

  • AAPL, Min 30 timeframe.
  • Long entry signal: The last three bars are opening above the previous one, closing above the previous one. EMA(14) > EMA(50).
  • And the difference between EMA(14) to EMA(50) less than 3%.
  • Exit signal: Take Profit = 100 ticks, Stop Loss = 50 ticks or SMA(9) <cross EMA(14)
  • Order volume: 100 shares.
  • Time: Working days, 16:40-22:40.

In the next article, we will speak about building and testing algorithmic strategies in more detail.

See you soon!

Open Trading Account


Creating Trading Strategies Based on Mean-Reversion and Momentum - R Blog - RoboForex (2024)

FAQs

How to build a mean reversion trading strategy? ›

In this strategy, traders start by identifying two related instruments that have historically moved together, such as two stocks in the same industry or two currencies in the same region. They then calculate the historical relationship between the two instruments, such as by calculating the spread between their prices.

What is momentum and mean reversion strategy? ›

Momentum strategies harness the power of trends to predict future price movements. On the other hand, mean reversion strategies are grounded in the idea that price or returns tend to revert to the mean after experiencing extreme movements.

What is the simplest most profitable trading strategy? ›

One of the simplest and most widely known fundamental strategies is value investing. This strategy involves identifying undervalued assets based on their intrinsic value and holding onto them until the market recognizes their true worth.

Which trading strategy makes the most money? ›

One of the ways beginners can implement the most profitable trading strategies effectively is by embracing the buy-and-hold strategy. This involves researching companies with solid fundamentals and stable earnings, then holding their stocks for a long time without being swayed by short-term market fluctuations.

What are the best indicators for mean reversion trading? ›

Technical indicators such as Bollinger Bands®, regression channels, Keltner channels, and Envelopes each have their own formula and attempt to notify traders when the price is near extreme levels and may revert.

What is the win rate for mean reversion strategy? ›

In 414 trades, the strategy yielded 0.79% return/trade on average, with a win rate of 69% and a profit factor of 1.98. The original rules were clear: Compute the rolling mean of High minus Low over the last 25 days; Compute the IBS indicator: (Close - Low) / (High - Low);

What is the best momentum strategy? ›

Momentum trading strategies capitalize on the continuation of existing market trends by buying securities in an uptrend and selling them as they peak, embodying the 'buy high, sell higher' philosophy and often relying on technical indicators over fundamental analysis.

What is the momentum trading strategy algorithm? ›

A Simple Momentum Trading Strategy

This algorithm uses two moving average lines. The two moving averages are the slow-line, or the slow-moving average with a larger lookback period, say 50 days. And the fast-line, or the fast-moving average with a smaller lookback period, say 10 days.

What is the mean reversion technique? ›

Mean reversion is a financial theory that suggests asset prices will eventually return to their long-term mean or average. This concept is grounded in the belief that asset prices and historical returns will gravitate toward a long-term average over time.

Which trading strategy has highest probability of success? ›

One strategy that is quite popular among experienced options traders is known as the butterfly spread. This strategy allows a trader to enter into a trade with a high probability of profit, high-profit potential, and limited risk.

Which trading strategy is most accurate? ›

Trend trading strategy. This strategy describes when a trader uses technical analysis to define a trend, and only enters trades in the direction of the pre-determined trend. The above is a famous trading motto and one of the most accurate in the markets.

What is the most successful trading pattern? ›

Here's our list of 10 popular and reliable stock chart patterns used in technical analysis:
  • Head and shoulders pattern.
  • Double top and double bottom pattern.
  • Triangle patterns.
  • Flags and pennants patterns.
  • Cup and handle pattern.
  • Wedge pattern.
  • Rounding tops and bottoms pattern.
  • Inverse head and shoulders pattern.
Feb 28, 2024

What is the most consistently profitable option strategy? ›

1. Bull Call Spread. A bull call spread strategy is driven by a bullish outlook. It involves purchasing a call option with a lower strike price while concurrently selling one with a higher strike price, positioning you to profit from an anticipated gradual increase in the stock's value.

Which trading style is most profitable? ›

The defining feature of day trading is that traders do not hold positions overnight; instead, they seek to profit from short-term price movements occurring during the trading session.It can be considered one of the most profitable trading methods available to investors.

Does mean reversion trading work? ›

Many successful traders and investors do believe mean reversion works but it depends on your goals and style of trading. Mean reversion doesn't happen straight away, it can take a long time for the market to correct itself – if at all – so traders who use the method will need to be patient.

How do you model reversion to the mean? ›

Calculating mean reversion involves a series of statistical and quantitative steps to measure how far an asset's price has deviated from its historical mean. First, historical price data is gathered for the respective asset. The time frame can vary based on the investor or trader's time horizon.

What is the RSI mean reversion strategy? ›

The 10-period RSI Mean Reversion trading strategy involves the Relative Strength Index (RSI), a momentum oscillator that measures the speed and change of price movements. For this strategy, traders typically set the RSI to a 10-period setting and establish overbought and oversold limits at 80 and 20, respectively.

What are the mean reversion tools? ›

A mean reversion trading system requires a trading platform​ with mean reversion tools, such as regression lines, moving averages, MACD or PPO indicators, and the ability to compare assets for pairs trading. For example, to carry out a pairs trade, select one of the instruments from the pair that you are interested in.

Top Articles
OneNote vs. Obsidian: Which note-taking app is better?
Manage and Pay Your Bills Online
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Craigslist Mexico Cancun
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
Things To Do In Atlanta Tomorrow Night
Non Sequitur
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Cvs Sport Physicals
Mercedes W204 Belt Diagram
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Selly Medaline
Latest Posts
Article information

Author: Fredrick Kertzmann

Last Updated:

Views: 5507

Rating: 4.6 / 5 (46 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Fredrick Kertzmann

Birthday: 2000-04-29

Address: Apt. 203 613 Huels Gateway, Ralphtown, LA 40204

Phone: +2135150832870

Job: Regional Design Producer

Hobby: Nordic skating, Lacemaking, Mountain biking, Rowing, Gardening, Water sports, role-playing games

Introduction: My name is Fredrick Kertzmann, I am a gleaming, encouraging, inexpensive, thankful, tender, quaint, precious person who loves writing and wants to share my knowledge and understanding with you.