Moving Averages: A Practical Guide

VembitAugust 19, 2026

Moving Averages: A Practical Guide

The moving average is probably the most widely used indicator in trading. It sits on almost every chart, from EUR/USD to gold to Bitcoin, and for good reason: it turns a jagged price series into a smooth line that makes the underlying direction easier to see.

It is also widely misused. Moving averages lag price by design, they whipsaw in sideways markets, and crossovers that look perfect in hindsight often fail in real time. This guide covers how they are calculated, which settings traders commonly use, and the practical ways to apply them. If you need a quick definition first, see What is a moving average?

TL;DR

A simple moving average (SMA) is the plain average of the last N closes; an exponential moving average (EMA) weights recent prices more, so it reacts faster. Common periods are 20, 50 and 200. Moving averages work best as a trend filter (trade in the direction of the slope), as dynamic support and resistance in trending markets, and occasionally as crossover signals. They work poorly in ranges. Use them alongside market structure and fixed risk rules, not as a standalone system.

How Moving Averages Are Calculated

Simple moving average (SMA)

Add the last N closing prices and divide by N. For illustration, if gold's last five daily closes were $2,310, $2,320, $2,305, $2,330 and $2,335, the 5-day SMA is $11,600 / 5 = $2,320. Tomorrow, the oldest close drops out and the newest is added, so the line "moves".

Exponential moving average (EMA)

The EMA applies a weighting multiplier of 2 / (N + 1) to the newest price. For a 20-period EMA, that is 2 / 21, or about 9.5%. Each new value is:

EMA today = (Close today x multiplier) + (EMA yesterday x (1 - multiplier))

Because recent prices count more, the EMA turns sooner than the SMA after a change in direction. The trade-off is that it also reacts more to noise.

TypeReacts to new pricesBest for
SMASlower, smootherLong-term trend filters (for example the 200-day)
EMAFaster, more responsiveShort-term trend tracking and pullback entries

Choosing a Period

There is no "correct" setting, but some periods are widely watched, which is partly why they matter:

  • 20 EMA / SMA: short-term trend, roughly a month of trading days on a daily chart. Popular for pullback entries.
  • 50 SMA / EMA: medium-term trend; often used on daily and 4-hour charts.
  • 200 SMA: the long-term trend. Many traders treat a market above its 200-day SMA as being in a broad uptrend and below it as a broad downtrend.

Shorter periods hug price and give more signals, many of them false. Longer periods filter noise but lag more. Choose based on your holding period: a swing trader holding for days has little use for a 9-period line on the 1-minute chart.

Use 1: The Trend Filter

The simplest and arguably most useful application is to only take trades in the direction the average is sloping.

  • Price above a rising 50 EMA: look for long setups only.
  • Price below a falling 50 EMA: look for short setups only.
  • Average flat and price crossing back and forth: likely a range, so trend tactics are less suitable.

This rule does not tell you when to enter. It simply keeps you from fighting the prevailing direction, which removes a large share of poor trades.

Use 2: Dynamic Support and Resistance

In a steady trend, price often pulls back to a moving average and bounces. Traders use this as an area of interest, not an exact price.

For illustration, suppose USD/JPY is trending higher on the 4-hour chart and pulls back to its 20 EMA near 150.20. A trader waits for a bullish candle off that area, buys at 150.40 and places a stop at 149.90, below the most recent swing low rather than just below the line. That is 50 pips of risk. At 150.00, one standard lot of USD/JPY is worth roughly $6.67 per pip (100,000 x 0.01 / 150), so a 0.3-lot position risks about 50 x 0.3 x $6.67, or roughly $100.

Practical tip: Anchor your stop to market structure, such as the last swing low, rather than to the moving average itself. Price routinely pokes through the line before resuming the trend.

Use 3: Crossovers

A crossover happens when a faster average crosses a slower one. The best known are:

  • Golden cross: the 50-day SMA crosses above the 200-day SMA, read as a bullish long-term shift.
  • Death cross: the 50-day crosses below the 200-day, read as bearish.

Crossovers are easy to test and easy to automate, but they are slow. By the time a 50/200 cross appears on BTC/USD or gold, a large part of the move has often already happened. In choppy markets, faster crossovers such as the 9 and 21 EMA can flip back and forth repeatedly, producing a string of small losses.

Many traders use crossovers as a context signal (the regime has changed) rather than an entry trigger.

Common Mistakes

  • Using them in ranges. When the average is flat, its signals are mostly noise.
  • Stacking too many lines. Five averages on one chart usually means one of them will "work" in hindsight, which teaches nothing.
  • Optimising the period. Tuning a 37-period EMA to fit last year's chart rarely holds up going forward.
  • Forgetting the lag. An average is built from past prices. It describes the trend; it does not predict it.
  • Ignoring risk. A clean moving-average setup still needs a defined stop and a sensible position size.

Risk note: If you trade forex, commodities or crypto with leverage, remember that leverage magnifies losses as well as gains. A trend-following trade can reverse sharply on news, and you can lose deposited funds quickly.

Try it yourself: pick a market from Vembit's prices page, apply a 50 EMA and a 200 SMA to its chart, and scroll back through several months. Note where the 50 EMA acted as support in trends and where it was useless in ranges. Then compare it with indicators covered in RSI and MACD Without the Noise.

Key Takeaways

  • SMAs average the last N closes equally; EMAs weight recent prices more and react faster.
  • The 20, 50 and 200 periods are widely watched and suit short, medium and long-term views.
  • The most reliable use is as a trend filter: trade in the direction of the slope.
  • Moving averages can act as dynamic support and resistance, but anchor stops to structure.
  • Crossovers lag and whipsaw in ranges; treat them as context rather than entries.

This article is for educational purposes only and does not constitute financial advice. Trading crypto, forex and commodities involves significant risk, and you should only trade with funds you can afford to lose.