
Moving averages are one of the most widely used technical indicators. Discover how to use the different types and strategies to identify trends, support and resistance, and more.
A moving average trading strategy is a widely used technical analysis method that uses the moving average (MA) of a security's price to identify potential market trends. The moving average calculates the average price of a security over a specified period. By smoothing out short-term price fluctuations, it can help traders discern the underlying trend and gauge overall market sentiment, as well as spot potential support and resistance, and entry and exit signals.
The moving average is a versatile and easily customisable technical indicator, allowing traders to choose from various types and timeframes to design a personalised strategy. It is calculated by adding the closing prices for a number of periods and dividing the total by that number. As each new period closes, the oldest price drops out, so the average "moves" along the chart.
In the 1920s and 1930s, moving averages gained prominence as a popular trading tool, thanks in part to the work of Richard Schabacker and Robert Rhea, who introduced the concept of trend following. The idea behind this approach is that traders can capitalise on sustained price movements by identifying and following trends using moving averages.
Below are some ways to use the moving average indicator to enhance your trading.
The moving average is available on most trading platforms and appears as a line that follows the price chart. In the chart below, for example, moving averages are drawn as lines following the candles.

Traders can choose between multiple time frames, also known as "look-back" periods, ranging from a few hours to several months. Short-term moving averages (such as 10 or 20 periods) react quickly to price changes and suit active traders, while longer averages (such as 50, 100 or 200 periods) are slower but give a smoother indication of the broader trend.
As their original use suggests, moving averages are widely used to identify price trends. When the price moves – and trades consistently – above a rising moving average, it is considered to signal a potential uptrend, while a price below a falling moving average may indicate a downtrend. The slope of the moving average can also provide information about the momentum of the trend.

Moving averages can also act as dynamic support and resistance levels. In an uptrend, the moving average may act as a support level, where prices tend to bounce off it and continue upwards. Conversely, in a downtrend, it can serve as a resistance level, where rallies tend to stall and prices resume their downward path. Traders watch how price reacts when it touches widely followed averages such as the 50-day or 200-day.
This feature of moving averages can help traders identify entry and exit points and set stop-loss and take-profit orders. Note that ordinary stop-losses do not protect from slippage. A guaranteed stop-loss may be used, but it comes at a fee.

Over the years, various types of moving averages have been developed to suit different trading styles and objectives. For instance, the simple moving average (SMA) was followed by the introduction of the exponential moving average (EMA) by J. Welles Wilder Jr. in the 1970s, which gives more weight to recent price data, making it more responsive to current market conditions. In addition, the weighted moving average (WMA) was developed to further emphasise specific periods in the calculation.
Depending on the type, there is a different moving average formula.
Simple moving average (SMA)
The SMA is the most basic and widely used type of moving average. It is calculated by taking the arithmetic mean of a given set of prices or data points over a specified period:
SMA = (P1 + P2 + … + Pn) / n, where P1, P2, … , Pn are the prices of the data points (usually closing prices) and n is the number of periods.
The SMA gives equal weight to each price point and smooths out price fluctuations to reveal the underlying trend. However, it can be slow to react to recent price changes, making it less responsive to sudden market movements.
Exponential moving average (EMA)
The EMA is a more advanced type of moving average that gives more weight to recent price data, making it more responsive to new market information:
EMA = (Close − Previous EMA) × (2 / (n + 1)) + Previous EMA, where Close is the current closing price, Previous EMA is the previous period's EMA value and n is the number of periods. The term 2 / (n + 1) is called the multiplier.
The EMA reacts more quickly to recent price changes, giving traders a faster signal for potential trend reversals or continuations. However, the increased sensitivity may also lead to more false signals than the SMA.
Weighted moving average (WMA)
The WMA assigns different weights to each price point. Like the EMA, it typically places more importance on recent data, but the two differ in the way they calculate the average and assign weights:
WMA = (P1 × n + P2 × (n − 1) + … + Pn × 1) / (n × (n + 1) / 2), where P1 is the most recent price, Pn the oldest and n the number of periods.
Unlike the SMA, which gives all data points equal weight, and the EMA, which uses exponential smoothing, the WMA multiplies each price by a weight factor that decreases as the data gets older. This gives the WMA a quicker response to price changes than the SMA and a more customisable weighting system than the EMA – but, like the EMA, its increased sensitivity can result in more false signals.
The moving average crossover strategy is based on the principle that when two moving averages of different periods cross each other, it indicates a potential change in the market trend.
A crossover occurs when a short-term moving average crosses a long-term one. The short-term average is more sensitive to recent price changes, whereas the long-term average gives a smoother representation of the price trend. When they intersect, it can signal a shift in market sentiment, indicating that the trend might be reversing or accelerating. There are two primary types of crossover:
A bullish crossover occurs when the short-term moving average crosses above the long-term moving average – for example, the "golden cross", when the 50-period crosses above the 200-period. It signifies that recent price momentum is stronger than the historical trend, which may indicate that the market is entering a bullish phase.
Traders typically interpret a bullish crossover as a buy signal, suggesting they may enter a long position or add to an existing one. Bullish crossovers can occur with simple, exponential or weighted moving averages, depending on the trader's preference and strategy.
A bearish crossover happens when the short-term moving average crosses below the long-term moving average – for example, the "death cross", when the 50-period crosses below the 200-period. In this scenario, recent price momentum is weaker than the historical trend, possibly indicating a bearish market phase.
Traders generally interpret a bearish crossover as a sell signal, suggesting they may exit a long position, enter a short position or reduce their exposure to the market. Like bullish crossovers, bearish crossovers can involve any type of moving average.
The moving average envelope strategy consists of three components: a central moving average line, typically a simple moving average (SMA), and two parallel lines, or "envelopes", placed above and below it at a fixed percentage distance. Traders use them to identify overextended price moves and potential reversals within a trend.
This strategy is similar to the Bollinger Bands® indicator. Bollinger Bands place bands two standard deviations above and below a 20-period SMA, so their distance is based on price volatility; prices near the upper band may indicate overbought conditions and near the lower band oversold conditions, while narrowing bands can signal an upcoming breakout. The percentage distance of envelopes, by contrast, can be adjusted depending on both volatility and the trader's risk tolerance.

To determine the optimal percentage distance, traders can observe historical price movements to identify the asset's typical fluctuations, or take a trial-and-error approach, testing various distances.
In practice, moving average envelopes may serve as dynamic support and resistance levels, guiding traders in determining their positions. When the price moves towards or breaches the upper envelope, it may indicate overbought conditions. Conversely, if the price approaches or breaks below the lower envelope, it could signal oversold conditions.
The moving average ribbon strategy uses multiple moving averages to analyse price trends. The ribbon consists of a series of moving averages with varying timeframes, typically from short-term to long-term, providing a comprehensive visual representation of the underlying trend's strength and direction.
To implement it, traders plot a sequence of moving averages, such as SMAs or EMAs, on a price chart. The choice of timeframes depends on the trader's preferences and market conditions. Commonly used periods include 10, 20, 30, 50 and 100 days, although customisation may suit individual strategies better.

The key concept is to observe the alignment and spacing of the moving averages. When they are aligned in ascending order (shortest to longest) and evenly spaced, it may suggest a strong uptrend. If they are arranged in descending order (longest to shortest) and evenly spaced, a strong downtrend is indicated. Trading signals are generated when the moving averages converge, diverge or show a notable change in spacing, as these events may signal potential trend reversals or continuations.
Combining moving averages with momentum indicators and volume can help confirm signals and filter out false ones in choppy markets.
The moving average trading strategy is a popular technical analysis method used to identify potential market trends. By smoothing out price fluctuations, the moving average helps traders discern underlying trends and gauge overall market sentiment.
Traders can customise their strategies by choosing the appropriate time frame and type of moving average, such as the SMA, EMA or WMA. Moving averages can also act as dynamic support and resistance levels and help identify entry and exit points. The key techniques are the crossover, envelope and ribbon strategies.
Moving averages are versatile tools, but because they lag price, they work best in trending markets and when used alongside other forms of analysis. As with any trading strategy, it's essential to perform thorough analysis, use risk-management techniques and continuously monitor the market to adjust your approach as needed. You may also choose to test your strategy on a demo account before risking real money.
Think of asset prices as a fast-moving, winding river. A simple average of the price is like a slow-moving raft: it tells you the general direction of the flow, but it moves too slowly to show the immediate turns. The exponential moving average (EMA) is more like a speedboat – it stays closer to the surface and reacts much faster to every small bend and change in the current. This speed helps traders see trends and changes quickly, which is why the EMA trading strategy is so popular.
The EMA is a line on a price chart that smooths out price data, helping you see the trend more clearly. Like any moving average, it calculates the average price of an asset over a specific period – but it uses a weighting method that places greater weight on the most recent prices, so it reacts to new information very quickly.
This is the main difference between the EMA and the SMA. The simple moving average treats all prices in a period equally: a 10-day SMA gives the first day's price and the tenth day's price the same importance. The EMA gives recent prices more importance, making it a "faster" line that follows the price more closely – a big advantage for active traders, who often use it for shorter-term strategies and to spot trend changes earlier.
The EMA is one of the most popular indicators. Traders use it for three main things: to spot trends (if the price is above the EMA, it is an uptrend), to find support and resistance levels (the EMA line often acts as a price floor or ceiling), and to identify entry and exit points, as the indicator gives clear signals for when to buy or sell.
The EMA calculation is more complex than the SMA. Fortunately, you don't need to calculate it yourself – your trading platform does it for you and places the line on your price chart. However, understanding the formula helps you understand how the indicator works:
EMA = (Closing price − Previous EMA) × Multiplier + Previous EMA
The multiplier is often represented as α (alpha) and ensures that more weight is given to recent prices. To calculate it:
For example, for a 10-day EMA, N = 10, so α = 2 / (10 + 1) = 2 / 11 = 0.1818. This means about 18% of the new EMA's value comes from the closing price.
Shorter EMA periods have a larger α and react much faster, while longer EMA periods have a smaller α – they react more slowly and are smoother.
The two terms are used interchangeably: they both refer to the same calculation, which gives more weight to recent data points.
The EMA is a flexible tool that can be used in many ways. Here's what you need to know.
The EMA is a popular indicator for trend trading, as it clearly shows the market's direction. During an uptrend, the price consistently stays above the EMA line while the line itself keeps rising. In a downtrend, the price remains below a falling EMA line. In sideways markets, the price crosses the EMA line frequently, while the line stays flat.
Traders use the EMA to time their trades. When the price crosses above a rising EMA – or drops to a rising EMA line and bounces up – it is seen as a buy signal. When the price crosses below a falling EMA – or rises to a falling EMA and is rejected – it is taken as a sell signal.
Choose EMA periods based on your trading strategy. Each period has a different purpose.
| EMA period | Common use | Context |
|---|---|---|
| 9 or 10 | Very short-term momentum / quick trend | Fast signals for scalping, day trading or aggressive trading. |
| 12 / 26 | MACD calculation | The MACD is built from these two EMAs; short to medium-term. |
| 20 or 21 | Short-term trend | Used for the main trading period and volatility measurement; day and swing trading. |
| 50 | Medium-term trend | Popular among swing traders and for moderate trend strength. |
| 100 | Long-term trend | Important for position traders and significant support/resistance. |
| 200 | Major long-term trend | The most important line: it defines the major market cycle; position trading. |
Your trading style determines your choice. Shorter EMAs give more signals but also more false signals; longer EMAs are more reliable for trend identification but slower to react.
Different strategies use the EMA in different ways. Consider combining the EMA with other technical indicators to confirm signals. Remember that these strategies do not guarantee profits, and past performance does not guarantee future results.
The EMA crossover is the most popular strategy. It uses a fast EMA and a slow one:
Shorter periods, such as the 9-EMA and 21-EMA, are used for faster signals. This is common in an aggressive EMA trading strategy.
Use the EMA to identify the trend and the RSI to confirm the momentum:

The EMA line rarely stays flat. It moves with the market, which is why it is called a dynamic level. During an uptrend, a rising EMA (such as the 20-EMA) acts as dynamic support, and traders buy when the price pulls back to it. In a downtrend, a falling EMA acts as dynamic resistance, and traders sell when the price rallies to it.
The 200-day EMA is the most respected moving average, showing the long-term health of an asset. The golden rule of this trend-following strategy is to open long trades only when the price is above the 200-EMA, and short trades only when it is below. This helps a trader stay on the right side of the major trend and avoid buying into a long-term decline.
The EMA works best when used with other indicators to confirm signals and avoid false ones.
The moving average convergence divergence (MACD) is built from EMAs and measures the distance between two of them. You can use the EMA to find the trend direction and the MACD to time your entry. For example, if the 50-EMA is trending up, only enter a long trade when the MACD crosses above its signal line.
As described above, the EMA shows the direction, while the RSI shows momentum and overbought/oversold conditions.
When the price bounces off the 200-EMA on high volume, it is considered a very strong signal, as high volume confirms strong institutional interest at that level. For price action, look for candlestick patterns at the EMA: a hammer or a bullish engulfing pattern at the 20-EMA support line is regarded as a high-probability entry signal.
Experienced traders can try more complex EMA variants that aim to reduce lag even further.
The DEMA attempts to remove the inherent delay (lag) of a standard EMA by combining a single and a double-smoothed EMA in its formula. It is a much faster-acting line than the standard EMA.
The TEMA is an even more aggressive variant that uses three EMAs to reduce lag further. It follows the price very closely and suits fast-moving markets, but it can be noisy.
In a choppy market, the EMA can give many false signals (whipsaws). A volatility filter helps: traders often use the average true range (ATR) to filter EMA signals, so the system only opens trades when the market is clearly moving.
The anchored EMA (AEMA) starts its calculation from a significant date or price event, such as a market crash or a major earnings report. It acts as a fixed, long-term benchmark.
The DEMA and TEMA are popular for short-term strategies, such as scalping, on low timeframes, as they react very fast. The anchored EMA is used for long-term analysis, showing the average price paid since a major event.
The EMA works on almost every type of market, although its settings might need slight adjustments.
The EMA is extremely popular in forex trading, as currency markets trade 24 hours a day. The 20-EMA on the 1-hour or 4-hour chart is popular, and the 9-EMA and 21-EMA crossover is a standard strategy.
The 50-day and 200-day EMAs are the most commonly used in stock trading, and institutions watch these lines closely. A move below the 200-day EMA is often a major bearish sign for a stock.
Crypto markets are highly volatile, which makes a traditional SMA too slow. The fast-reacting EMA is better suited here, and shorter EMAs such as the 9, 12 and 26-period are common on lower timeframes.
Commodities tend to trend strongly, and the 50-EMA is useful for riding these trends, acting as dynamic support during strong bull runs in gold or oil.
The main rule is to adjust the period to your timeframe. The 20-period EMA on a daily chart is a 20-day average, while the 20-period EMA on a 5-minute chart covers only 100 minutes (20 × 5).
No indicator is perfect, so it's important to know the pros and cons. The EMA reacts faster to price changes, which reduces lag and gives traders earlier signals than the SMA. It is well suited to trend-following strategies, as its speed allows traders to catch trends early and ride them for longer, and it works on all timeframes – from 1-minute charts to monthly charts.
However, the EMA is prone to whipsaws in choppy markets: its fast reaction causes many false signals when the price is moving sideways, and it may give false signals without confirmation. This is why it is best to confirm its signals with other indicators, such as the RSI or volume.
History shows the power of key EMA levels.
Using the EMA effectively is all about proper setup and discipline.
The Hull moving average (HMA) is a technical analysis tool that measures the average price of an asset over a period of time. In contrast to traditional moving averages (MA), it aims to reduce lag while minimising noise and keeping the line smooth. Here, we look at the indicator's mechanics and how to design your own Hull moving average strategy.
The HMA was created in 2005 by the Australian stock market trader Alan Hull in an attempt to solve the problem of lag in moving averages. As the indicator's creator put it:
"The Hull moving average solves the age-old dilemma of making a moving average more responsive to current price activity whilst maintaining curve smoothness. In fact the HMA almost eliminates lag altogether and manages to improve smoothing at the same time."
The HMA sets itself apart from other moving average types, such as the simple (SMA), weighted (WMA) and exponential (EMA) moving averages, through a calculation that combines the benefits of other moving averages to create a more responsive and smoother indicator.
Although the HMA is easily accessed on most charting and trading platforms, understanding the mechanism behind it can help you use it more appropriately. To calculate the HMA yourself, follow these steps:
In short, the Hull moving average formula is: HMA = WMA(2 × WMA(n/2) − WMA(n), sqrt(n)), where WMA is the weighted moving average, n the number of periods and sqrt the square root.
The HMA is calculated using a selected period, which determines its responsiveness and smoothness. Alan Hull recommends a default period of 16, but traders can experiment to find the best fit for their needs. To choose the right time frame, consider your trading style and the type of market analysis you wish to perform. For example:
Selecting the right parameters and timeframes is a trial-and-error process, so it's essential to test various settings on historical price data before applying them to live trading.
The HMA may be particularly useful for identifying trends, thanks to its smoothness and responsiveness to price changes. To confirm a trend, observe the slope of the HMA line: a rising (upward-sloping) HMA signals a bullish trend, while a falling HMA points to a bearish trend. Traders may enter when the HMA changes direction.
The position of the HMA line relative to the price is informative too. For example, when the HMA is above the price but trending upward, it suggests an uptrend that is likely to face increased resistance. Conversely, when the HMA is below the price but trending downward, it suggests that the downtrend is likely to meet resistance.

The HMA crossover strategy uses two HMAs of different lengths – a shorter period (e.g. 10) and a longer period (e.g. 50) – and generates signals when they cross. The shorter HMA responds more quickly to price changes, while the longer one gives a smoother picture of the overall trend.
When the shorter HMA crosses above the longer HMA, it signals a potential bullish trend; when it crosses below, it suggests a possible bearish trend.
To improve the accuracy of the strategy, traders can add rules or filters – for example, entering a trade only when the crossover comes with a significant increase in trading volume, which may further confirm the trend's strength. Other technical tools, such as the RSI or MACD, can also help confirm crossover signals.
The HMA breakout strategy focuses on identifying and trading breakouts from established support or resistance levels, which may signal the beginning of a strong trend.
The first step is to identify significant support and resistance levels on the price chart. These levels typically form when the price reaches a high or low point several times, creating a horizontal barrier. The HMA can then be applied to help determine the overall trend direction and gauge the strength of the breakout.
A breakout occurs when the price moves beyond the established support or resistance level, confirmed by the HMA. For instance, if the price breaks above resistance and the HMA also moves above it, it may signal a bullish breakout. If the price breaks below support and the HMA follows, it may suggest a bearish breakout. To increase reliability, traders can use additional indicators, such as Bollinger Bands® or the average true range (ATR).
The HMA is a valuable technical analysis tool that gives traders a responsive and smooth indicator for analysing price action. Developed by Australian stock market trader Alan Hull, it aims to address the lag and noise associated with traditional moving averages such as the SMA, WMA and EMA.
Choosing the appropriate parameters and timeframes is crucial, and traders are encouraged to experiment with different settings to find the best fit for their trading style. Alan Hull recommends a default period of 16, but other lengths can be explored as well. The HMA can be used for trend identification, trend reversals, support and resistance, and in combination with other indicators – two popular approaches being the crossover and breakout strategies.
Traders should also be aware of the risks: as a lagging indicator, it relies on historical price data that cannot guarantee future returns, it can generate false signals in choppy or range-bound markets, and selecting the right parameters can be challenging.
The ALMA trading strategy is an approach built on the Arnaud Legoux moving average (ALMA), a technical analysis indicator that calculates the average price of an asset over a specific period using a Gaussian distribution function. Created by the French mathematicians Arnaud Legoux and Dimitris Kouzis-Loukas in 2009, it aims to provide a responsive and smooth moving average while reducing lag and noise.
Although the ALMA indicator is available on most charting and trading platforms, understanding the calculation behind it can help traders use it effectively. The ALMA formula is based on a weighted sum using a specified time period and a Gaussian filter offset, with the weights determined by a Gaussian distribution function. The average is applied in a way that minimises the lag often associated with traditional moving averages.
In short, the default ALMA formula is: ALMA = (weighted sum of prices) / (sum of weights), where:
When setting up ALMA parameters, consider your trading strategy and time horizon. The indicator has three key components – window size, offset and sigma – which can be named differently on various platforms; on some, for example, they are called period, shift and deviation.
Note that the standard deviation is not directly involved in the ALMA calculation; however, one of the indicator's parameters, sigma, refers to the deviation used in the Gaussian distribution function.
Traders can experiment with various window sizes to find the right balance between responsiveness and noise reduction, and test their settings on a demo account to examine the signals. Always conduct your own due diligence before trading, and never trade more money than you can afford to lose.
There are several ways to use the indicator – for trend analysis, for example, or paired with other technical analysis tools for a fuller picture.
The ALMA can help identify the direction of the price trend. When the lowest point of each candlestick is below the ALMA line, it suggests a potential bearish trend; if the lowest point is above the ALMA line, it indicates a possible bullish trend. The wider the distance between the candlesticks and the ALMA line, the stronger the trend, while a narrowing gap could signal a potential reversal.
When the ALMA line begins to change direction relative to the price, it can give early warning of a potential trend reversal. For instance, if the price moves from consistently trading above the ALMA line (a bullish trend) to crossing below it, it could signal a shift towards a bearish trend. Similarly, if the price moves from consistently trading below the ALMA line to crossing above it, it may suggest a shift towards a bullish trend – the ALMA line repositions from below to above the price, or vice versa.

The ALMA can also serve as dynamic support and resistance, as it adapts to changing price action. When the price is above the ALMA line, the line may act as support, suggesting the price could bounce off it and move higher. When the price is below the ALMA line, it could act as resistance, indicating the price might face downward pressure and reverse lower.
Traders who follow this approach may consider a long position when the price approaches the ALMA line from above, treating it as potential support, and a short position when the price approaches it from below, treating it as potential resistance.
The ALMA can be combined with other moving averages with different calculation methods and timeframes to potentially improve the quality of signals. It can also be used with indicators such as the relative strength index (RSI), the parabolic stop and reverse (SAR) and Bollinger Bands® to confirm a trend and determine its strength.
This strategy combines the smoothness and responsiveness of the ALMA with the more traditional EMA. To set it up, plot three moving averages on your chart: a long-period ALMA (for example, 100 days) and two short-term EMAs (for example, 10 and 15 days).
The ALMA serves as the primary trend filter, dictating whether long or short positions are taken depending on whether the price is above or below it, while the 10 and 15-day EMAs provide bullish or bearish crossover signals. For example, when the ALMA is below the price and the 10-day EMA crosses over the 15-day EMA, this can be considered a bullish signal. When the ALMA is above the price and the 15-day EMA crosses over the 10-day EMA, this can be considered a bearish signal.
ALMA provides a smooth and responsive moving average by using a Gaussian distribution function to weight the data points within a specified period. Its calculation method reduces lag and noise, setting it apart from other moving average types. Traders can use it for trend identification, trend reversals and dynamic support and resistance, and a common strategy combines the ALMA with two EMAs.
While ALMA offers smoothness, filtering capabilities and reduced lag, traders should be aware of potential risks, such as false signals and the need to combine it with other indicators and price action analysis. For traders who decide to use the ALMA strategy, understanding the calculation behind the indicator is key to decision-making.
The moving average convergence divergence (MACD) is a momentum indicator that shows the relationship between two EMAs, typically the 12- and 26-period. The MACD line is the difference between them, and a 9-period EMA of the MACD line is plotted as the signal line.
Crossovers of the MACD and signal lines, moves above or below zero, and divergence between MACD and price are all used as trading signals.
The average directional index (ADX) measures the strength of a trend, regardless of its direction. It's plotted alongside the positive (+DI) and negative (−DI) directional indicators.
An ADX reading above 25 generally indicates a strong trend, while a reading below 20 suggests a weak or ranging market.
A falling ADX after a strong trend can signal that the trend is losing momentum and may reverse.
Combining ADX with support and resistance levels can help confirm whether a breakout is likely to hold.
ADX shows trend strength but not direction, so it's commonly paired with moving averages or the directional indicators to decide whether to go long or short.
Technical indicators help traders interpret price action, but none are infallible. Combining several tools with a clear plan and disciplined risk management gives the best chance of consistent results.