Moving averages: Using SMA & EMA as trend filters

Learn how to use moving averages (SMA & EMA) as effective trend filters in trading. A hands-on guide with strategies & examples for beginners.

Moving averages: Using SMA and EMA as trend filters in trading

Moving averages are among the most popular and most frequently used indicators in technical analysis. They help traders recognize the higher-level trend, filter out market noise, and make better entry and exit decisions. Whether you trade stocks, cryptocurrencies, or forex – moving averages are an indispensable tool in your trading toolbox.

In this guide, you’ll get to know the two most important types of moving averages: the simple moving average (SMA) and the exponential moving average (EMA). You’ll learn how they are calculated, how the two differ, and above all how you can use them in practice as trend filters in your trading.

What are moving averages?

A moving average is a technical indicator that smooths the price development of a financial instrument over a certain period. Instead of reacting to every single price bar, the moving average shows you the average price over the last X periods.

Why “moving”?

The term “moving” comes from the fact that the calculated average updates with every new price bar. Old data drops out of the calculation while new data is added. In this way, the average continuously “moves” along with current market action.

The main functions of moving averages

Moving averages fulfill several important functions in trading:

  • Trend identification: They show you whether a market is in an uptrend, a downtrend, or a sideways trend
  • Support and resistance: Moving averages can act as dynamic support and resistance levels
  • Signal generation: Crossovers of different moving averages or of the price can provide buy and sell signals
  • Noise filtering: They smooth short-term price fluctuations and show you the actual direction

Simple moving average (SMA) – The classic average

The simple moving average (SMA) is the most basic form of a moving average. It calculates the arithmetic mean of the closing prices over a certain period.

Calculating the SMA

The formula for the SMA could hardly be simpler:

SMA = (sum of the closing prices over n periods) / n

A practical example: You want to calculate a 5-day SMA. The closing prices of a stock over the last 5 days were:

  • Day 1: €100
  • Day 2: €102
  • Day 3: €101
  • Day 4: €105
  • Day 5: €107

SMA(5) = (100 + 102 + 101 + 105 + 107) / 5 = 515 / 5 = €103

On the next day (day 6), with a closing price of €110, the price from day 1 (€100) is removed from the calculation:

SMA(5) = (102 + 101 + 105 + 107 + 110) / 5 = 525 / 5 = €105

Advantages and disadvantages of the SMA

Advantages:

  • Easy to understand and calculate
  • Treats all data points equally
  • Very reliable in showing long-term trends
  • Less susceptible to sudden price jumps

Disadvantages:

  • Reacts more slowly to current price changes
  • All values have the same weight (a price from 20 days ago counts just as much as yesterday’s)
  • Can deliver delayed signals when the trend changes quickly

Exponential moving average (EMA) – The fast-reacting indicator

The exponential moving average (EMA) is a further development of the SMA. The crucial difference: The EMA weights more recent price data more heavily than older data.

Calculating the EMA

Calculating the EMA is somewhat more complex than calculating the SMA. It is done in two steps:

  1. Calculating the multiplier (smoothing factor):
  • Multiplier = 2 / (n + 1)
  • For a 10-period EMA: 2 / (10 + 1) = 0.1818 (approx. 18.18%)
  1. Calculating the current EMA value:
  • EMA = (current closing price × multiplier) + (yesterday’s EMA × (1 − multiplier))

For the first EMA value, an SMA is usually used as the starting point.

Practical example

Suppose yesterday’s 10 EMA was at €100 and today’s closing price is €105:

  • Multiplier = 2 / (10 + 1) = 0.1818
  • EMA today = (€105 × 0.1818) + (€100 × 0.8182)
  • EMA today = €19.09 + €81.82 = €100.91

As you can see: Although the price rose by €5, the EMA moved by only €0.91. So the EMA reacts faster than an SMA but is still smoothed.

Advantages and disadvantages of the EMA

Advantages:

  • Reacts faster to current price changes
  • Gives more weight to more recent data
  • Better suited to short-term trading
  • Delivers earlier signals on trend changes

Disadvantages:

  • More complex to calculate
  • More susceptible to false signals
  • Can generate too many signals in volatile markets

SMA vs. EMA: Which moving average is better?

The question of which moving average is “better” cannot be answered across the board – both have their place and are used differently depending on trading style and timeframe.

When you should use the SMA:

  • Long-term trading: For swing trading and position trading over weeks and months
  • Trend confirmation: When you want to identify a stable, already established trend
  • Fewer false signals: The SMA filters out short-term volatility better
  • Support/resistance: The 200 SMA in particular is considered an important psychological level

When you should use the EMA:

  • Short-term trading: For day trading and scalping
  • Early signals: When you want to react quickly to trend changes
  • Volatile markets: In cryptocurrencies, where fast reactions matter
  • Combinations: EMAs work well in multi-MA strategies

Many experienced traders use both: the EMA for short-term signals and the SMA for the higher-level trend direction.

Using moving averages as trend filters

Now we come to the practical part: How exactly do you use moving averages as trend filters in your trading?

1. Price position relative to the moving average

The simplest method for determining the trend:

  • Uptrend: The price is above the moving average
  • Downtrend: The price is below the moving average
  • Sideways trend: The price keeps crossing the moving average

Trading rule: Only trade long (buying) when the price is above the MA, and only short (selling) when the price is below it. This simple rule alone can noticeably improve your win rate.

2. The slope of the moving average

Not only the position but also the direction of the MA itself is important:

  • Rising MA: Confirms an uptrend
  • Falling MA: Confirms a downtrend
  • Flat MA: Points to a sideways market

Strongest trend: When the price is above the MA AND the MA itself is rising.

3. Popular moving average periods

Various time periods have become established in the trading community:

Short-term MAs (5–20 periods):

  • 9 EMA, 12 EMA, 20 SMA/EMA
  • For day trading and short-term swings
  • React quickly but are also more susceptible to false signals

Medium-term MAs (21–100 periods):

  • 50 SMA/EMA, 55 EMA
  • The classic for swing traders
  • A good balance between speed of reaction and reliability

Long-term MAs (100–200+ periods):

  • 100 SMA, 200 SMA
  • For long-term investors
  • The 200 SMA is considered the most important trend line in technical analysis

4. Moving average crossover strategies

One of the most popular trading strategies is based on the crossover of two moving averages:

The golden cross:

  • A faster MA (e.g., 50 SMA) crosses a slower MA (e.g., 200 SMA) from below
  • Considered a strong buy signal and the start of an uptrend
  • Watched especially closely on major indices and Bitcoin

The death cross:

  • The faster MA crosses the slower MA from above
  • Considered a sell signal and the start of a downtrend
  • A warning sign of longer corrections

Classic combinations:

  • 9 EMA / 21 EMA (short-term)
  • 20 EMA / 50 EMA (medium-term)
  • 50 SMA / 200 SMA (long-term)

5. Moving averages as dynamic support and resistance

Especially in strong trends, moving averages often act as:

  • Support in an uptrend: The price corrects to the MA and bounces off it
  • Resistance in a downtrend: The price recovers to the MA and is rejected there

Trading tactic: Use the MA as an entry level. Once you have identified an uptrend, wait for a pullback to the 20 EMA or 50 SMA and enter there.

Practical application: A simple moving average trading strategy

Here is a concrete, beginner-friendly strategy that you can implement right away:

The 20/50 EMA trend-following strategy

Setup:

  • Add a 20 EMA (blue) and a 50 EMA (red) to your chart
  • Timeframe: 4-hour or daily chart for swing trading

Long entry (buy):

  1. The 20 EMA is above the 50 EMA (uptrend confirmed)
  2. The price corrects to the 20 EMA
  3. The price bounces off the 20 EMA (shown by a green candle closing above the EMA)
  4. Entry at the open of the next candle

Stop-loss:

  • Below the 50 EMA or the last swing low

Take-profit:

  • At previous resistance or at a ratio of 2:1 to the risk

Short entry (sell):

  • Exactly the reverse: 20 EMA below 50 EMA, price is rejected to the downside at the 20 EMA

This strategy is simple but effective. It keeps you in the trend and makes sure you don’t trade against the higher-level market direction.

Common mistakes when using moving averages

Even though moving averages seem simple, many beginners make typical mistakes:

1. Using too many moving averages

Some traders pack 5, 6, or more MAs into one chart. The result: confusion instead of clarity. Recommendation: Use a maximum of 2–3 MAs at the same time.

2. Wrong timeframe for your trading style

A day trader should not work on the daily chart with a 200 SMA. Make sure your moving averages fit your trading horizon.

3. Using moving averages as the sole signal

MAs are trend filters, not complete trading systems. Always combine them with other factors: support/resistance, volume, price action, momentum indicators.

4. Not paying attention to market context

In strong trends, MAs work excellently. In sideways markets, they produce many false signals. Learn to recognize the market context.

5. Ignoring the lag of moving averages

MAs are lagging indicators – they are based on past data. A golden cross often signals that a trend has already begun. Don’t expect perfect lows or highs.

Summary: The most important insights

Moving averages are one of the most valuable tools for traders of all experience levels. Here are the most important points once more at a glance:

Key takeaways:

  • Moving averages smooth price data and help you recognize the higher-level trend
  • SMA treats all data equally and is suited to long-term trading and stable trends
  • EMA weights current data more heavily and reacts faster to price changes – ideal for short-term trading
  • Price above MA = uptrend, price below MA = downtrend – a simple but effective rule
  • Popular periods: 20, 50, 100, and 200 (SMA or EMA depending on preference)
  • Crossover strategies such as the golden cross and death cross are established signals for trend changes
  • Use MAs as dynamic support/resistance, especially in strong trends
  • Combine MAs with other analysis techniques for better results
  • Less is more: 2–3 MAs are enough, avoid overloading your chart

Moving averages don’t replace your trading strategy, but they are an excellent filter for positioning yourself on the right side of the market. With some practice, you will intuitively recognize when an MA is acting as support or resistance and when a crossover actually signals a trend change.

Frequently asked questions (FAQ)

Which moving average period should I use as a beginner?

As a beginner, I recommend that you start with the 50 SMA or 50 EMA. This period is versatile, neither too fast nor too slow, and is watched by many traders worldwide. On the daily chart, the 50 MA gives you a good overview of the medium-term trend. In addition, you can add the 200 SMA to keep an eye on the long-term trend. This combination of two MAs is a good starting point without overloading your chart.

Is the SMA or EMA better for beginners?

For getting started, the SMA (simple moving average) is often the better choice. It is easier to understand, produces fewer false signals, and shows you stable, reliable trends. The EMA reacts faster, but for beginners that can also lead to more confusion and hasty trades. Once you have developed a good feel for trends, you can switch to the EMA or combine both: the EMA for entry signals and the SMA for the higher-level trend direction.

Do moving averages work equally well in all markets?

Moving averages basically work in all markets (stocks, forex, cryptocurrencies, commodities), but their effectiveness depends on the market environment. In strong, trending markets, they are excellent. In sideways phases (range markets), on the other hand, they produce many false signals because the price keeps crossing the MA without a real trend developing. So learn to distinguish between trending and ranging markets. As a rule of thumb: If the MA is flat and the price crosses it often, you are probably in a range – in that case, you should be more careful with MA signals.

Can I also use moving averages for day trading?

Yes, absolutely! For day trading, you simply use shorter timeframes and faster MAs. Popular combinations for day traders are:

  • 9 EMA and 21 EMA on the 5-minute or 15-minute chart
  • 20 EMA and 50 EMA on the 15-minute or 30-minute chart

Day traders mostly prefer the EMA over the SMA because it reacts faster to price changes. But note: The shorter the timeframe, the more market noise you have and the more false signals can occur. That makes it all the more important to combine MAs with other indicators or price action patterns.

How can I combine moving averages with other indicators?

Moving averages are trend filters and work best in combination with other tools:

  • With momentum indicators (RSI, MACD): The MA shows you the trend, the RSI shows you whether the market is overbought/oversold. Only trade in the trend direction of the MA when the momentum indicator confirms.
  • With volume: A breakout above an important MA (e.g., 200 SMA) on high volume is a stronger signal than one without volume confirmation.
  • With support/resistance: When the price approaches an MA that coincides with a horizontal support/resistance level, the significance of this level increases.
  • With candlestick patterns: A bullish reversal pattern (e.g., a hammer) right at the 50 EMA in an uptrend is a strong buy signal.

Combining different analysis methods considerably increases the quality of your trading signals and reduces false signals.

Next steps: Open your trading platform now and add a 20 EMA and a 50 SMA to your chart. Over a few days or weeks, observe how the price behaves relative to these moving averages. Note down patterns that you notice. This practical observation is the best way to develop an intuitive understanding of moving averages.

Good luck with your trading!