20 Types Of Moving Average Trading Strategies: (Rules And Backtesting) - Quantified Trading Strategies (2024)

Table of Contents
1. Simple moving average (backtest and performance) 2. Exponential moving average (backtest and performance) 3. Hull moving average (backtest and performance) 4. Linear-weighted moving average (backtest and performance) 5. Adaptive moving average (backtest and performance) 6. Smoothed moving average (backtest strategy) 7. Variable moving average (backtest strategy) 8. Weighted moving average (backtest strategy) 9. Zero lag exponential moving average (backtest strategy) 10. Volume weighted moving average (backtest strategy) 11. Triple exponential moving average TEMA (backtest strategy) 12. Variable Index Dynamic Average (backtest strategy) 13. Triangular moving average (backtest strategy) 14. Guppy multiple moving average (backtest strategy) 15. McGinley Dynamic (backtest strategy) 16. Geometric moving average GMA (backtest strategy) 17. Fractal adaptive moving average FRAMA (backtest strategy) 18. Fibonacci moving averages (backtest strategy) 19. Double exponential moving average (backtest strategy) 20. Moving average slope (backtest strategy) Strategy Shop What is a moving average? Simple moving average (SMA) Exponential moving average (EMA) The visual differences between the SMA and EMA What is the best time frame for moving averages? Are the moving averages good indicators? How do you use moving averages? Moving average crossover strategies Moving averages and trend-following: Moving averages and support and resistance: Trading Rules Moving averages and profit targets: Moving averages and stop-losses: Moving averages as filters: Death cross indicator (two moving averages): What is a Golden Cross? Can you use moving averages in indicators? MACD is based on moving averages: Bollinger Bands are based on moving averages: What is the best moving average? What are some other moving averages strategies? Code for moving averages Moving average strategies in trading – main takeaway: FAQ: FAQs

How to use moving average trading strategies is widely discussed and used in the media and likewise frequently used by analysts when making calls about the future. What is a moving average and can we find profitable moving average strategies on stocks? Do moving average strategies work?

Backtests reveal that the most popular moving averages work best for short-term mean reversion and long-term trend-following. However, moving averages serve many purposes, for example as trend filters or for other indicators and strategies. We conclude that the two most used and known moving averages are the best: the simple moving average and the exponential moving average.


In this article, we discuss moving averages, and how you can use them in trading, we test some moving average strategies, and we provide links/articles to 20 different types of moving averages. However, we believe moving averages were much more useful in the past before the personal computer came about. As the markets have become faster and more efficient, the usefulness of moving average strategies has slowly eroded somewhat. Despite this, we find value in “classical” moving averages like the death cross or the 200-day moving average.

Table of contents:

1. Simple moving average (backtest and performance)

Moving averages are one of the most commonly used indicators in technical analysis, and thesimple moving averageis the easiest one to construct. Do you know what it is? Can you make profitablesimple moving average trading strategiesin the markets?

Backtests indicate that you can use simple moving averages for short-term mean reversion and long-term trend-following. Additionally, you can use moving averages as the second parameter in a trading strategy.

A simplemoving average(SMA) is a basic average of the price of an asset over a specified period calculated continuously for any new price data that forms in the time series. Since the price data keeps changing for each session and the average is calculated for each new data, the average changes constantly, which is why it is called a moving average.

2. Exponential moving average (backtest and performance)

There are different kinds of moving average indicators, and theexponential moving average is one of the most commonly used among traders. But do you know what it is? And do you know if an exponential average strategy can be used profitably in the stock market? What are the best settings?

Backtests indicate that exponential moving averages do work: They can be useful for mean-reversion strategies if you use a short number of days in the moving average, and useful for long-term trend following if you use a high number of days in the moving average.

Also referred to as the exponentially weighted moving average, the exponential moving average (EMA) is a type of moving average indicator that places a greater weight and significance on the most recent data points. Thus, it follows the price more closely than the simple moving average.

3. Hull moving average (backtest and performance)

Experienced traders know that the best trading indicators are those that can reduce lag, eliminate noise, and quickly respond to sustained market changes.The Hull Moving Average (HMA)seems to tick those boxes. What do you know about the indicator? Is it possible to find profitableHull moving average strategies?

Yes, Hull moving average strategies do work. Our backtests show that a hull moving average can be used profitably for both mean-reversion and trend-following strategies on stocks depending on the time frame.

Developed by Alan Hull in 2005, theHull Moving Average (HMA) indicator is a combination of weighted moving averages (WMAs) that prioritizes recent price changes over older ones. It is a directional trend indicator, which tries to capture the current state of the market and uses recent price action to determine if conditions are bullish or bearish relative to historical data. The indicator attempts to minimize the lag of a traditional moving average while retaining the smoothness of the moving average line.

4. Linear-weighted moving average (backtest and performance)

Moving averages are a technical analysis tool that smooths price data over a specific period. They come in different types, and each type has its advantages and limitations. Thelinear-weighted moving average is one of the common ones. But do you know what it is? And do you know if a linear-weighted moving average works? What are the best settings?

Yes, linear-weighted moving average strategies do work. Our backtests show that a linear-weighted moving average can be used profitably for both mean-reversion and trend-following strategies on stocks.

The linearly weighted moving average (LWMA) is a moving average that puts more weight on recent price data in a linear fashion: the most recent price has the highest weighting, with each prior price getting progressively less weight. As a result, for any given period, the LWMA reacts more quickly to price changes than a simple moving average (SMA) and an exponential moving average (EMA).

5. Adaptive moving average (backtest and performance)

We know that traditional moving averages smoothen price series to reduce noise and show the trend. However, when price makes a temporary but significant leap, it can still give the appearance of a false trend. This is why Perry J. Kaufman invented the adaptive moving average. But what is it? Can we make profitableadaptive moving average strategiesin the markets?

Yes, adaptive moving average strategies do work. Our backtests show that an adaptive moving average can be used profitably for both mean-reversion and trend-following strategies on stocks.

The adaptive moving average (KAMA) is a moving average designed to account for changes in market volatility. The indicator closely follows prices when the price swings are relatively small (less volatility or noise) and adjusts to follow the prices less closely when the price swings widen. In essence, the adaptive moving average works like a slow-moving average, as it reduces the influence of outliers, without sacrificing the sensitivity.

6. Smoothed moving average (backtest strategy)

Thesmoothed moving averageis not as common as other moving average indicators, but you will come across it in your trading journey. So, it’s good to know what it means. Can a smoother moving average be used profitably in the stock market?

Yes, smoothed moving average strategies do work. Our backtests show that a smoothed moving average strategy can be used profitably for both mean-reversion and trend-following strategies on stocks.

The smoothed moving average (SMMA) is simply a moving average that assigns weight to price data points over a long period. The indicator takes all prices into account and uses a long lookback period. Although old prices are never removed from the calculation, they have only a minimal impact on the moving average because they are assigned low weight.

7. Variable moving average (backtest strategy)

Traders have always looked for ways to improve the performance of exponential moving average, and using a volatility index (VI) to adjust the smoothing period as market conditions change has given rise to the variable moving average. But do you know what it is? And do you know if avariable moving average strategy works? What are the best settings?

Yes, variable moving average strategies do work. Our backtests show that a variable moving average can be used profitably for both mean-reversion and trend-following strategies on stocks.

A variable moving average (VMA) is an exponential moving average (EMA) that can automatically regulate its smoothing percentage based on market volatility. The idea behind the VMA is to dynamically adapt a moving average to a trend’s volatility. Its sensitivity improves by assigning more weight to the ongoing data, thereby generating a better signal for short and long-term markets.

8. Weighted moving average (backtest strategy)

Some simply call it weighted moving average, while others call it linearly weighted moving average. They are referring to the same indicator, which is one of the most popular and widely used MA indicators on most trading platforms. But what is it? And do you know if a weighted moving average strategy works? What are the best settings?

Yes, weighted moving average strategies do work. Our backtests show that weighted moving average can be used profitably for both mean-reversion and trend-following strategies on stocks.

As the name implies, the weighted moving average puts more weight on recent data and less on past data. This is done by multiplying each period’s price by a weighting factor that decreases linearly you move from recent to old data. Given this unique calculation, the WMA will follow prices more closely than a corresponding simple moving average.

9. Zero lag exponential moving average (backtest strategy)

The moving average is no doubt one of the most widely used technical indicators. While there are different traditional types, many variations are being created all the time to improve on the old versions. The zero-lag exponential moving average is one of the improved versions of the exponential moving average. But do you know what it is? Can we make profitable zero-lag exponential moving average strategies in the markets?

Yes, zero-lag exponential moving average strategies do work. Our backtests show that a zero-lag exponential moving average can be used profitably for both mean-reversion and trend-following strategies on stocks.

The zero-lag exponential moving average (ZLEMA) is a type of exponential moving average that seeks to reduce the inherent lag seen in a typical moving average. It was designed to track the price more closely and give a clearer view of the trend with no lags.

10. Volume weighted moving average (backtest strategy)

Several indicators are used for technical analysis; some of these indicators combine different market data to tell a better story about what the market is doing. The volume-weighted average price (VWAP), which combines both volume and price data, is one such indicator. But what is it? Can we make profitable volume-weighted moving average strategies in the markets? What are the best settings?

Yes, volume-weighted moving average strategies do work. Our backtests show that a volume-weighted moving average can be used profitably for both mean-reversion and trend-following strategies on stocks.

The volume-weighted average price (VWAP) is an indicator that traders use to determine the average price that a financial instrument has traded, based on volume and price. The volume-weighted average price is calculated by multiplying the sum of price and volume, then dividing the result by the total volume. VWAP is important because it provides traders with insight into the trend and its strength.

11. Triple exponential moving average TEMA (backtest strategy)

One of the not-so-common moving average indicators used by traders is the triple exponential moving average (TEMA). It is an important trend indicator used by traders to identify trends more closely than a traditional moving average. But do you know what it is? And do you know if a triple exponential moving average strategy can be used profitably in the stock market?

Yes, triple exponential moving average strategies do work. Our backtests show that a triple exponential moving average can be used profitably for long-term trend-following strategies on stocks.

The triple exponential moving average, TEMA, is a trend following indicator used by analysts. It is formulated by creating multiple exponential moving averages (EMA) of the original EMA to reduce some of the lag. It helps to reduce price volatility to make the trend easier to identify.

12. Variable Index Dynamic Average (backtest strategy)

Over the years, chartists have developed indicators to help them analyze the market better. While there are many of these indicators, a few stand out for their usefulness. One of such is theVariable Index Dynamic Average. Do you know what it is? Can we make profitable Variable Index Dynamic Average strategies in the markets? What are the best settings?

13. Triangular moving average (backtest strategy)

Moving averages are the most common and useful technical indicators in forex trading, owing to their effect in smoothening out price movements and showing the actual direction of the trend. There are various types of moving averages. Apart from the common ones you know, such as the Simple Moving Average (SMA) and Exponential Moving Average (EMA), there is also the Triangular Moving Average (TMA) – the moving average we cover in this article. But do you know what it is? And do you know if a simple average works to trade profitably in the markets? What are the best settings?

Yes, triangular moving average strategies do work. Our backtests show that a triangular moving average can be used profitably for both mean-reversion and trend-following strategies on stocks.

Triangular moving averages are similar to the simple moving average (SMA). It can provide a smooth line like the simple moving average. However, the triangular moving average is averaged twice to create an extra smooth and steady average line.

14. Guppy multiple moving average (backtest strategy)

Trend traders are always looking for trading opportunities by analyzing the price chart. This includes spotting a trend early as well as knowing when a reversal is about to occur. Interestingly, the Guppy Multiple Moving Average can be helpful in that aspect. But do you know what it is? Can you make profitable Guppy multiple moving average strategies in the markets? What are the best settings?

The Guppy multiple moving averages indicator shows one of the lowest returns for crossovers among the different moving averages, but the long-term average gains per trade show decent returns close to 9% per trade.

The Guppy Multiple Moving Average, GMMA, is a technical indicator that uses moving average ribbons to provide a potential sign of a breakout in the price of a security. It uses multiple exponential moving averages (EMAs) to capture the difference between the current price and the average price over different periods. A convergence of the moving averages is associated with a significant trend change.

15. McGinley Dynamic (backtest strategy)

Different types of moving averages are used in technical analysis. However, the McGinley Dynamic indicator stands out for its attempt to solve a problem inherent in moving averages that use fixed time lengths. It’s a type of moving average that is designed to improve existing moving averages. But do you know what it is? Can we make profitable McGinley Dynamic strategies in the markets?

Yes, McGinley Dynamic Indicator (moving average) strategies do work. Our backtests show that a McGinley Indicator (moving average) can be used profitably for both mean-reversion and trend-following strategies on stocks.

The McGinley Dynamic indicator is a moving average that was invented by John R. McGinley, a renowned market technician, to track the market. It is a better indicator than most moving average indicators as it improves upon moving average lines by adjusting for shifts in market speed.

16. Geometric moving average GMA (backtest strategy)

There are different ways of getting the moving average of a time series. While the simple and exponential methods of calculating the moving average are more common in the trading world, it is also possible to get the geometric mean of the price series. But what does the geometric moving average entail? Can we make profitable geometric moving average strategies in the markets? What are the best settings?

Yes, simple moving average strategies do work. Our backtests show that a geometric moving average can be used profitably for both mean-reversion and trend-following strategies on stocks.

The geometric moving average is a type of moving average that calculates the geometric mean of the previous n-periods of the price time series. Unlike the simple moving average that uses the arithmetic mean to continuously calculate the moving average as new price data comes in, the geometric moving average uses the geometric mean formula to get the moving average of the price data as new ones come in. Since the geometric mean has a compounding effect, investors usually consider it a more accurate measure of returns than the arithmetic mean.

17. Fractal adaptive moving average FRAMA (backtest strategy)

Many new forms of moving averages have been created, but not all of them are easy to calculate. The fractal adaptive moving average is one of those unique moving averages, but it offers great prospects. Let’s take a look to find out what it is. Can we make profitable fractal adaptive moving average strategies in the markets? What are the best settings?

Yes, simple moving average strategies do work. Our backtests show that a simple moving average can be used profitably for both mean-reversion and trend-following strategies on stocks.

The fractal adaptive moving average (FRAMA), developed by John Ehlers, is an intelligent and adaptive moving average that takes advantage of the fact that price movements assume the fractal configuration and, as such, dynamically adjust its lookback period based on this fractal geometry. It follows price closely when there are significant moves while remaining flat if the price ranges.

18. Fibonacci moving averages (backtest strategy)

Moving averages are one of the most useful technical indicators. This is because they are simple and flexible while offering useful information about the trend, as well as support and resistance zones. There are many types of moving average indicators, but in this post, we will be looking at the Fibonacci moving average. What it is? Can we make profitable Fibonacci moving average strategies in the markets?

Fibonacci moving averages are difficult to calculate, and we only find them valuable when using long-term moving averages.

The Fibonacci moving average (FMA) is a type of moving average that calculates many exponential moving averages using lookback periods from the Fibonacci sequence on both highs and lows to form a dynamic support/resistance zone. It works like a typical moving average but tends to provide more support/resistance reaction zones.

19. Double exponential moving average (backtest strategy)

Traders are always looking for an edge in the market. While some employ the use of chart patterns, others simply trade based on indicators. An example of such an indicator is the double exponential moving average (DEMA). But do you know what it is? And is it possible to develop profitable double exponential moving average strategies?

Yes, double exponential moving average strategies do work. Our backtests show that a double exponential moving average strategy can be used profitably for both mean-reversion and trend-following strategies on stocks.

The double exponential moving average (DEMA) is not as commonly used as the other types of moving averages. The DEMA gives more weight to the most recent price. This weighting results in a more reactive moving average, which is useful to short-term traders to profit from the market.

20. Moving average slope (backtest strategy)

Finding good signals in the random chaos called the financial market is not an easy job and as such, one has to seek out every possible way to analyze the markets. In the search for an edge in the market, people create more indicators from existing ones. One of such derivative indicators is the moving average slope. And now, you may be wondering what that is. You might also wonder how you can make profitable moving average slope strategies in the markets? What are the best settings?

Yes, moving average slope strategies do work. Our backtests show that a moving average slope can be used profitably for both mean-reversion and trend-following strategies on stocks.

The moving average slope is an indicator created by subtracting the moving average level n-periods ago from the current moving average level and dividing by the time interval. For instance, you can get a 5-day slope of a 50-day simple moving average of the daily closing price by subtracting the value of the 50-day moving average 5 days ago from today’s value of the same 50-day moving average and dividing the difference by 5 days. The indicator is a great attempt at spotting when the price might be about to change direction by studying the strength (momentum) of the moving average.

Did we miss one of your favorite moving averages? Let us know and we will add it.

One thing we learned from all these tests is above all one thing: The best moving averages are the simple moving average and the exponential moving average. They also happen to be the easiest, simplest and most preferred. Moreover, moving averages also work best in longer time frames, preferably on daily bars and candlesticks. This means that day trading is not optimal for moving averages, but swing trading is.

What do we base our conclusion on? It’s based on our experience and backtests for each moving average. You find a complete list of all moving averages with links at the end of the article.

The best strategies can be found in our….

Strategy Shop

Backtested trading strategies

Yes, I’d like to make money!

What is a moving average?

First, we need to establish what a moving average is. It might be obvious to most readers, but our experience is that traders’ mathematical abilities are poor.

So what is a moving average? Below are the two most used moving averages: simple moving average and exponential moving average. Let’s start with the simplest and most used:

Simple moving average (SMA)

A simple moving average is an average of a time series of numbers that adds observations to the average as time goes by, while the last numbers in the time series get excluded from the calculations. Here is an example of an average of ten observations:

10, 9, 11, 13, 5, 6, 7, 9, 3, 2

To find the average, you add all the numbers together (which is 75) and divide by the number of observations (10). Thus, the average is 7.5.

As we add observations, the calculation change:

10, 9,11, 13, 5, 6, 7, 9, 3, 2, 13, 8

The above sequence has two more observations, and the two first observations in bold are excluded from the calculation.

The above is called a simple moving average. A simple average puts equal weighting on all observations. However, if you don’t want to put equal weightings on all observations, you can use an exponential moving average:

Exponential moving average (EMA)

Perhaps the second most used moving average is the exponential moving average.

Opposite to a simple moving average, an exponential moving average puts more weight on the most recent observations and the calculations are a bit more cumbersome than a simple moving average. As a result of this method of calculating the average, the EMA will follow prices more closely than a corresponding SMA.

If you want to go into more detail about the EMA, we recommend our separate article about the EMA where we also backtest exponential moving average strategies.

The visual differences between the SMA and EMA

The difference between the averages looks like this:

The 50-day EMA reacts faster than the SMA, clearly indicated in the chart above, precisely EMA’s aim.

What is the best time frame for moving averages?

There is, of course, no best time frame for a moving average. You can’t possibly fit a one-time time frame into a lot of different markets. Moreover, results vary from market to market (from asset class to asset class).

However, as a general rule, stocks are mean revertive in the short term and trending in the long term. Thus, mean-reversion works well on short moving averages, meaning you can buy when the close crosses below the moving average and sell when it closes above the moving average. This strategy works pretty well for less than 15 days.

At the same time stocks tend to move up in the long-term due to inflation and productivity gains, and this is a case for trend-following. Further down in the article we have a list of both different moving averages and examples of moving average stategies.

Are the moving averages good indicators?

Moving averages are extremely popular among traders. This must indicate they are very beneficial?

Well, it depends. We have mixed results depending on both the time frame and asset class. As mentioned above, moving average strategies are good for many assets as short-term contrarian (mean-reversion) strategies, and moving averages are a handy tool to define trends in the market.

For example, the Lucas Management Trend-Following Index (MLM Index) uses only a simple moving average to construct an index for trend following in certain commodities (can it get any simpler than that?). The index has shown very good risk-adjusted returns for many decades. We covered this in an article about does trend following work?

How do you use moving averages?

In this section, we briefly list the most common uses of the averages:

Moving average crossover strategies

Traders are often introduced to moving averages when learning technical analysis, as they are some of the most common indicators. While there are many ways to use moving averages, the moving average crossover strategy is one of the easiest to learn and use. But what is the strategy about?

The moving average crossover is simply a trading strategy the crossing of one moving average over another to generate trading signals. For example, when a short-period moving average crosses above a long-period moving average, a buy signal is generated, and when it crosses below, a sell signal is generated.

A moving average crossover can also refer to a point on a price chart where a short-period moving average crosses above or below a long-period moving average. When the short one crosses above the long one, it is called a golden cross and is often seen as a buy signal. On the flip side, when the short one crosses below the long one, it is called a death cross and is often seen as a sell signal.

All types of moving average indicators, such as the EMAs, SMAs, LWMAs, and so on, can be used for this strategy. Even a combination of different types can be used. Whichever the case, the rules for entry and exit are usually the same.

Moving averages make it easier to view trends while smoothing out volatility. The moving average crosser strategy tries to show when the trend is changing direction. The faster, short-period moving average reacts faster to changes in price direction and, as such, follows the price more closely than the long-period moving average. This is just one of many ways you can define trends, though.

Moving averages are available across multiple trading platforms and are always easily available. You can simply search for any moving average indicator you want on your platform and attach two of them to your chart. Then select the period settings you want for the moving averages.

Below is an example of a moving crossover (the 50-day moving average crosses below the 200-day moving average):

The pitfall of the moving average crossover lies in the moving average itself (as with all moving averages). All moving averages are plagued by the lag factor because they make use of past price data.

Moving averages and trend-following:

This is a label that, just like most of the trading topics, is loosely defined. What exactly is trend-following? We use the definition in Curtis Faith’s The way of the Turtle (page 22):

In trend-following, the trader attempts to capitalize on large price movements over the course of several months. Trend followers enter the trades when markets are at historical highs or lows and exit when a market reverses and sustains that movement for a few weeks.

Curtis Faith was part of the famous Turtle experiment in the 1980s. Below are some of the strategies mentioned in his book The Way of The Turtle:

  • Donchian trend: Entry is done when the price sets a 20-day high and when an exponential moving average of 25 days is above the 350-day average. The exit is when the 25-day EMA crosses below the 350-day EMA.
  • Dual moving average: Go long when the 100-day SMA crosses above the 350-day SMA. Opposite for short (which is also the exit for longs). Thus, the strategy is always in the market.
  • Triple moving average: Buy when the 150-day SMA crosses above the 250-day SMA, but only when both averages are above the 350-day SMA. Exit when the 150-day SMA crosses below the 250-day SMA.

These strategies are easy to test. We tested on several ETF’s and the result is like this:

  • Donchian Trend: The S&P 500 has 9 trades since 1993 and returned a CAGR of 8.3% with 86% of the time invested. The drawdown was slightly better than buy and hold. Gold returned 5.81% vs. 8.6% for buy and hold but with slightly less drawdown. We tested only longs.
  • Dual moving average: For all our ETFs, the strategy is inferior to buy and hold with small improvements in the maximum drawdown.
  • Triple moving average: Same results as for the dual moving average.

Trend-following works best for commodities, like sugar, coffee, cotton, gasoline, etc. We have never found any value in trend strategies related to stocks or the stock market unless you use a very long time frame of at least 100 days. On the contrary, mean-reverting strategies work best on stocks, like for example this strategy:

  • RSI(2) on Nasdaq (QQQ)

Moving averages and support and resistance:

A pretty common feature is to use moving averages as support and resistance levels, which is often of great interest for analysts in the media. Unlike support and resistance in classical technical analysis, the support and resistance of moving averages are dynamic: they change.

Let’s find out if there is any value in MAs and support:

Trading Rules

THIS SECTION IS FOR MEMBERS ONLY. _________________Click Here To Get A Trial Access 20 Types Of Moving Average Trading Strategies: (Rules And Backtesting) - Quantified Trading Strategies (4)Click Here To Get Access To Trading Rules

The results are pretty good: CAGR is 3.41% but with many fewer trades:

Unfortunately, it’s not the moving average crossover that makes the strategy decent, but the RSI.

Moving averages and profit targets:

One other use of moving averages is to use them as profit targets or stop-losses. For example, when a price hits a moving average, you exit the trade. We find many strategies on the internet that use this kind of target, but we have never managed to find them much useful except for short-term exits based on strength.

Moving averages and stop-losses:

If you buy above a moving average, you can use the same moving average as a stop-loss. Thus, you are using a dynamic stop loss because the moving average obviously fluctuates with the price of the instrument you are trading. It’s normally trend-following strategies that use averages as stop-losses.

Moving averages as filters:

Moving averages are mostly used as a filter for other indicators or variables. For example, if the S&P 500 is above the 200-day moving average, it’s bullish, and bearish if it’s below the average. Some analysts claim markets show different price behavior depending on where the price is compared to a certain moving average. Do quantified tests verify this? Let’s do some testing:

The table below shows the average gain in percent in the S&P 500 from close to close when it’s over or below the n-day moving average:

SPYAboveUnder
5-day0.020.09
10-day0.020.09
25-day0.030.08
50-day0.030.08
100-day0.030.07
200-day0.040.05
GLDAboveUnder
5-day0.040.04
10-day0.050.02
25-day0.040.04
50-day0.030.05
100-day0.040.05
200-day0.050.03

The first row indicates the S&P 500 has a 0.02% average return from the close of today until the close of tomorrow when the close today is below the 5-day simple moving average. Clearly, the S&P 500 performs the best when it’s below the average. The index is clearly mean-revertive. Below is the equity curve when the S&P 500 is below the 5-day average:

The equity curve when the S&P 500 is above the 5-day average looks like this:

Opposite, gold shows slightly different tendencies where long-term trends are more prevalent.

Death cross indicator (two moving averages):

The Death Cross is frequently mentioned in the media. What is it?

The indicator’s logic is as follows: when a short-term moving average crosses below a long-term moving average, we can expect lower prices, hence the name “death”. Usually, a 50 and 200-day moving average is used.

A death cross is when these two moving crossovers indicate a possible imminent bear market, and is the opposite of a golden cross. The Death Cross, a rather gloomy title, is frequently mentioned by pundits in the financial media, and, perhaps surprisingly, it does serve as a somewhat useful trading indicator or strategy.

What is a Golden Cross?

A golden cross is the opposite of a death cross – when a short term moving average crosses above a longer moving average. Normally, the 50-day and 200-day moving averages are used.

Can you use moving averages in indicators?

Yes, some indicators are based on moving averages:

MACD is based on moving averages:

MACD is an abbreviation for Moving Average Convergence Divergence. The indicator uses two moving averages: typically, it’s a 12-day and 26-day period. We have no idea why these days are used, but you can change to whatever time frame you prefer. The MACD is the difference between the two averages and oscillates around zero. Below is how it looks like on a chart:

Some years ago we made a strategy based on the indicator with promising results:

  • MACD-histogram strategy

Bollinger Bands are based on moving averages:

Another famous indicator is the Bollinger Bands, developed by John Bollinger. The indicator uses a moving average and adds two bands over and under two standard deviations away from the moving average. You can set the number of days to what you want, and likewise incorporate the size of the standard deviation as you please. The default standard deviation is normally two.

The Bollinger Band is a volatility filter. A standard deviation of two captures 95% of the past movement within those two bands. However, the assumption is that price action forms a normal distribution, which is often not the case, hence the expression “fat tails”, “tail risk“, etc.

Here is a chart with Bollinger Bands included:

What is the best moving average?

Over the years we have backtested all moving averages there are. There are plenty of moving averages to choose from, but which are good and bad? Here is a list of the ones we will backtest and look at the historical performance in trading strategies in this article. We use multiple settings in all of our backtests.

Here you can find all our Backtested Moving Average strategies in one place. Everything is data-driven and evidence based of course.

What are some other moving averages strategies?

For your convenience, we have covered all moving averages with both detailed descriptions and backtests.

Here you can find all our Moving average strategies.

Code for moving averages

We have provided code for all of the moving averages above in Amibroker and some in Tradestation. You can find most of the code on the link that contains most of our free trading strategies:

  • Code and logic for all trading strategies

In the free articles, we have also many articles that show which indicator works best with moving average.

We receive enquires if we have python code, but unfortunately, we don’t.

We are also considering making a PDF file or e-book about our research at a future date. Please register your e-mail if you want to get more info about this or if you simply want to get trading related posts in your inbox.

Moving average strategies in trading – main takeaway:

Are moving average strategies good or bad? All our backtests (also including the linked articles) indicate that short-term moving averages serve most use as a mean reversion or contrarian indicator. For long-term time frames, it’s the opposite: trend-following works best.

FAQ:

Which are the most popular and effective moving averages in trading, and why?

A moving average is a technical analysis indicator that smoothens price data to create a single flowing line. In trading strategies, it is widely used to identify trends, filter noise, and generate buy or sell signals based on its crossovers with the price. The simple moving average (SMA) and the exponential moving average (EMA) are considered the most popular and effective moving averages. They are widely used due to their simplicity and adaptability to market changes.

Can moving averages serve as trend filters or indicators for various trading strategies?

Yes, moving averages can serve as trend filters and indicators for a variety of trading strategies, providing valuable insights into market trends and helping traders make informed decisions. The death cross occurs when the short-term moving average crosses below the long-term moving average, signaling a potential downtrend. The 200-day moving average is a widely used indicator to assess the long-term trend; crossing it can indicate a significant market shift.

What are exponential moving averages, and how can they be utilized for mean-reversion and trend-following strategies?

Exponential moving averages give more weight to recent price data. They are effective for mean-reversion with a short period and trend-following with a longer period, as shown by backtests. EMAs react more quickly to recent price changes compared to SMAs. This sensitivity is beneficial for identifying short-term reversals in mean-reversion strategies. The ability of EMAs to adapt to trends makes them suitable for trend-following strategies.

20 Types Of Moving Average Trading Strategies: (Rules And Backtesting) - Quantified Trading Strategies (2024)

FAQs

20 Types Of Moving Average Trading Strategies: (Rules And Backtesting) - Quantified Trading Strategies? ›

What is the 20 EMA trading strategy? The 20-day exponential moving average(EMA) strategy is a technical analysis strategy that uses the 20-day EMA to generate buy and sell signals for trading securities. It uses 20-EMA to identify short-term market swings in the price of a security.

What is the 20 EMA rule? ›

What is the 20 EMA trading strategy? The 20-day exponential moving average(EMA) strategy is a technical analysis strategy that uses the 20-day EMA to generate buy and sell signals for trading securities. It uses 20-EMA to identify short-term market swings in the price of a security.

What is the 20 EMA bounce strategy? ›

To identify market trends using the 20 EMA Bounce Forex Trading Strategy, you need to observe the price in relation to the 20 exponential moving average (EMA). If prices are consistently closing above the 20 EMA, it indicates an uptrend. If prices are closing below the 20 EMA, it suggests a downtrend.

What is the 20 moving average in trading? ›

The most commonly used moving average is a so-called simple moving average (SMA), which is the average closing price of a given security over a specific number of days. For example, you can find a stock's 20-day SMA by adding its prices over 20 days, then dividing that number by 20.

How do you calculate a 20 day moving average? ›

To calculate the moving averages, we take the average of the closing price for those number of days. For example, a 20day simple moving average is nothing but the arithmetic mean of the 20 day closing price of the stock, similarly for 50day, 100 day and 200 day respectively.

Which is better 9 EMA or 20 EMA? ›

If the 9 ema is over the 20, the price is bullish. If the 20 is over the 9, the price is bearish. When the 9 and 20 are close together, and it's difficult to differentiate them, the stock is indecisive. Pay attention to ema crossovers, which signify potential reversal setups.

What is the 9 20 trading strategy? ›

One such strategy that has gained traction among experienced traders is the 9:20 AM short straddle. This dynamic approach involves selling both a call option and a put option with the same strike price and expiration date, allowing traders to potentially profit from market movement, regardless of the direction.

What happens when 20 day EMA crosses 50 day EMA? ›

A common trading strategy utilizing EMAs is to trade based on the position of a shorter-term EMA in relation to a longer-term EMA. For example, traders are bullish when the 20 EMA crosses above the 50 EMA or remains above the 50 EMA, and only turn bearish if the 20 EMA falls below the 50 EMA.

What is the strategy of 20 EMA and 50 EMA? ›

If the 20-EMA is above the 50-EMA, the trend is bullish. If the 20-EMA is below the 50-EMA, the trend is bearish. For negative 20/50-EMA crossovers in the intermediate-term, the 20/50/200-EMAs can be used together to determine if a bearish crossover is a sell (sell/short) or neutral (hedge or cash) trend change.

What EMA do most traders use? ›

The most commonly used EMAs by forex traders are 5, 10, 12, 20, 26, 50, 100, and 200. Traders operating off of the shorter timeframe charts, such as the five- or 15-minute charts, are more likely to use shorter-term EMAs, such as the 5 and 10.

What is the 20 moving average pullback? ›

The two EMAs for the pullback crossover are 20 and 50.

If the 20 line moves above the 50 line, it provides a bullish signal. A bullish signal indicates an upward trend in the market, establishing an entry point. On the other hand, if the 20 line moves below the 50, it gives a bearish signal.

What is the 10 and 20 moving average strategy? ›

Because the 10 EMA follows price action more closely than the 20 EMA, when it's on top it's signaling that the market is in an uptrend. On the flip side, when the 10 EMA is below the 20 EMA, we only want to be looking for selling opportunities as this often represents a downtrend.

What is the best moving average for day trading? ›

#3 The best moving average periods for day-trading
  • 9 or 10 period: Very popular and extremely fast-moving. Often used as a directional filter (more later)
  • 21 period: Medium-term and the most accurate moving average. ...
  • 50 period: Long-term moving average and best suited for identifying the longer-term direction.

What is the best moving average trading strategy? ›

The best way to trade moving average is to use the crossover strategy, where a shorter-period moving average crossing above a longer-period moving average generates a bullish signal, and vice versa for a bearish signal. This method helps indicate potential changes in the market trend.

What is the golden cross moving average? ›

What is a Golden Cross? A Golden Cross is a basic technical indicator that occurs in the market when a short-term moving average (50-day) of an asset rises above a long-term moving average (200-day). When traders see a Golden Cross occur, they view this chart pattern as indicative of a strong bull market.

What is the 3 30 formula in trading? ›

This rule suggests that a stock's price tends to move in cycles, with the first 3 days after a major event often showing the most significant price change. Then, there's usually a period of around 30 days where the stock's price stabilizes or corrects before potentially starting a new cycle [1].

What happens when 20-day EMA crosses 50-day EMA? ›

A common trading strategy utilizing EMAs is to trade based on the position of a shorter-term EMA in relation to a longer-term EMA. For example, traders are bullish when the 20 EMA crosses above the 50 EMA or remains above the 50 EMA, and only turn bearish if the 20 EMA falls below the 50 EMA.

How do you use EMA 20 and 50? ›

Step #1: Plot on Your Chart the 20 and 50 EMA. Step #2: Wait for the EMA Crossover and for the Price to Trade above the 20 and 50 EMA. Step #3: Wait for the Zone Between 20 and 50 EMA to Be Tested at Least Twice, Then Look for Buying Opportunities.

What is the difference between EMA 10 and EMA 20? ›

The weighting given to the most recent price is greater for a shorter-period EMA than for a longer-period EMA.4 For example, an 18.18% multiplier is applied to the most recent price data for a 10-period EMA, while the weight is only 9.52% for a 20-period EMA.

What is the 21 EMA strategy? ›

The 21-day exponential moving average (EMA) can be a powerful tool for investors. Though it is most powerful in a bull market, it has plenty of use during bear markets as well. Like the commonly used 50-day moving average, the 21-day takes the closing prices of the past 21 sessions and averages them out.

Top Articles
California’s “Stand Your Ground” Rule Clarified
Best General Liability Insurance in California (2024)
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Pearson Correlation Coefficient
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
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Nfsd Web Portal
Selly Medaline
Latest Posts
Article information

Author: Aron Pacocha

Last Updated:

Views: 6527

Rating: 4.8 / 5 (68 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Aron Pacocha

Birthday: 1999-08-12

Address: 3808 Moen Corner, Gorczanyport, FL 67364-2074

Phone: +393457723392

Job: Retail Consultant

Hobby: Jewelry making, Cooking, Gaming, Reading, Juggling, Cabaret, Origami

Introduction: My name is Aron Pacocha, I am a happy, tasty, innocent, proud, talented, courageous, magnificent person who loves writing and wants to share my knowledge and understanding with you.