Moving averages: a trend filter, not a signal

How simple and exponential moving averages work, why every crossover lags, and how to use them as a trend filter and dynamic support instead of a buy or sell button. EUR/USD and gold examples.

TA 2: Intermediate Lesson 3 of 6 · 3 min read

⚠️ Risk warning: CFDs and leveraged forex are complex instruments with a high risk of losing money rapidly. Most retail accounts lose money. This content is education only, not investment advice or a recommendation.

EUR/USD H4: the moving averages filter the trend, the crossover comes late1.10131.10751.1138EUR/USD · H4EMA 20SMA 50Flat EMA, price crosses it again and againTop 1.1150EMA 20 crosses below SMA 5023 bars after the topEMA 20 (blue) reacts faster; SMA 50 (gold) is smoother and slower. Both lag price.
EUR/USD H4: the moving averages filter the trend, the crossover comes late Illustrative chart: drawn data, not real prices.

A moving average (MA) is the average closing price of the last n bars, recalculated on every bar. It smooths out noise so you can see direction. Because it only uses past prices, it always lags: that is the price you pay for smoothness.

SMA and EMA

  • A simple moving average (SMA) gives every bar the same weight. The SMA 50 is the average of the last 50 closes.
  • An exponential moving average (EMA) gives recent bars more weight, so it turns sooner, and also gets faked out more.
  • Common lengths are 20, 50 and 200. There is nothing special about them except that many traders watch them.

Three honest uses

  • Trend filter: price above a rising MA 50 or 200, look mainly for long setups; below a falling one, mainly for short setups; a flat MA with price crossing back and forth means there is no clear trend.
  • Dynamic support or resistance: in a steady trend, pullbacks often pause near a short MA such as the EMA 20. Treat it as a zone, not a line.
  • Slope: the angle of the MA describes trend strength better than any crossover.

Why crossovers disappoint

A "golden cross" (short MA crossing above long MA) or "death cross" (crossing below) is just two lagging lines meeting. By the time they cross, much of the move is often over. In a range, the lines cross again and again, and each cross is a losing signal if traded mechanically.

Worked example: EUR/USD, H4. The figure uses drawn prices. EUR/USD trends up above a rising EMA 20 and SMA 50 and tops at 1.1150. For the next twenty bars it chops between about 1.1100 and 1.1150 and crosses the EMA 20 many times: the filter is saying "no clear trend". The EMA 20 finally crosses below the SMA 50 about 23 bars after the top, when price is already near 1.1050, roughly 100 pips lower. A trader using that cross as a sell signal would have entered after most of the move.

Common misuse

  • Trying many MA lengths until one "fits" past data. That is overfitting; it rarely fits the future.
  • Treating a touch of the MA as a reason to enter without any price-action confirmation or stop.
  • Using MA crossovers in ranges, where they whipsaw.

This lesson is educational. Moving averages describe past prices; no crossover predicts the next move.

🛠️ Practice task

Use a real chart. This is for practice, not for placing a trade.

  1. Open EUR/USD on H4 in TradingView or MT5 and add an EMA 20 and an SMA 50. The Invvex EUR/USD page shows the current price.
  2. Mark each period where both averages slope clearly in one direction, and each period where they are flat and tangled.
  3. Find the last three EMA 20 / SMA 50 crossovers. For each, measure how far price had already moved from the last swing high or low.
  4. Repeat on gold (XAU/USD) H4. Do pullbacks in its trends pause near the EMA 20?
  5. Write your own one-line rule for using the MAs as a filter (not as an entry signal).

🎯 Mark this chart

Study the drawing, pick the letter, then check. This exercise does not count toward your progress; the quiz below does.

Gold H4: where does the moving-average filter say "no trend"?3,9093,9443,978XAU/USD · H4EMA 20SMA 50ABDC
Gold H4: where does the moving-average filter say "no trend"? Illustrative chart: drawn data, not real prices.
Gold H4. In which box is the moving-average filter saying "no clear trend"?

Show answer

B: price crossing a flat EMA 20 back and forth. In B the EMA 20 is flat and price sits on both sides of it: a range. A is a clear uptrend and C a clear downtrend. D is a single break that may or may not start a new trend.

Gold H4: where does the moving-average filter say "no trend"?3,9093,9443,978XAU/USD · H4EMA 20SMA 50ABDC✓ No clear trend
Solved: B, a flat EMA with price crossing it repeatedly Illustrative chart: drawn data, not real prices.

✍️ Quick quiz

Check what you learned. Your answers stay in this browser.

1. Why does every moving average lag price?

Show answer

Because it is calculated only from past closes. Any average of past prices trails the current price. An EMA lags less, but still lags.

2. Price keeps crossing a flat EMA 20 back and forth. What is the filter telling you?

Show answer

No clear trend: a range. A flat average with price on both sides describes a range, where crossover signals whipsaw.

3. What is the main weakness of MA crossovers as signals?

Show answer

They often come after much of the move, and whipsaw in ranges. Two lagging lines meet late, and in sideways markets they cross repeatedly.

4. You test 15 MA lengths and keep the one with the best past results. What is the risk?

Show answer

Overfitting: it fits the past by chance and may not work going forward. Choosing parameters to fit history is overfitting. Keep standard settings and test honestly.