← All guides

Moving averages — and their real limits

By Najm FX (NFX) · 8 min read · Analysis · Published

Short answerA moving average takes the average price over a set number of candles and draws it as a line: an SMA weights every candle equally, while an EMA gives more weight to recent candles so it reacts faster. The best known use is the crossover of two averages. Its main limit is lag: it confirms a trend after it has started, and in a sideways market it produces repeated false crossovers — which is the same reason trend robots fail during ranging periods.

The moving average is the oldest and best known indicator, and the basis of most trend indicators. It is deceptively simple — and understanding its limits matters more than understanding its formula.

What it does

It takes the average closing price of the last N candles and draws it as a line. Averaging removes the momentary jitter and makes the broader trend clearer.

A 20 average on H1 is the average of the last 20 hours. Price above the line? Upward bias. Below it? Downward bias. It is that simple.

SMA or EMA?

SMA (simple)EMA (exponential)
CalculationAll candles weighted equallyRecent candles weighted more
ResponseSlower and smootherFaster
False signalsFewerMore
SuitsThe broader trendFaster entries

There is no "better" — there is a trade-off: an EMA catches the reversal earlier but gives more false alarms. An SMA is calmer but lags more.

Choosing the period

  • 9 – 20: short term — sensitive, for quick entries and exits.
  • 50: medium term — the most widely used for defining the trend.
  • 100 – 200: long term — defines the big picture trend.

These numbers are common because many traders use them, so they become levels the market pays attention to — not because there is any mathematical magic in them.

The crossover method

The best known use: two averages, one fast and one slow.

  • The fast crosses above the slow → an upward signal.
  • The fast crosses below the slow → a downward signal.

A common example: EMA 50 with EMA 200.

The core limit: lag

An average is calculated from past prices. By its nature it reacts after the move has happened — not before. By the time it gives you an upward signal, part of the move is already over.

This is not a flaw — it is the definition. The problem starts when a trader expects it to predict.

Where exactly it breaks: the sideways market

In a market that chops with no direction, the averages cross back and forth constantly. Every cross gives a signal, and most are false. The result: a string of small consecutive losses that eats the account gradually.

This is exactly what happens to trend robots during ranging periods — the robot is working correctly, but the conditions are not its conditions.

How to work with the limits

  1. Identify the market state first. Before taking a crossover signal, ask: is the market trending or ranging? There are indicators that measure trend strength and help with that question.
  2. Read two timeframes. Read the broader trend on H4 and only take crossover signals on M15 when they point the same way as the larger one.
  3. Do not rely on the average alone. Use it to define the trend, and take the entry point from something else — a support level, a pullback, or a candle pattern.
  4. Always use a stop loss. An average does not tell you when to get out if you are wrong.

The cleanest use

The simplest and sturdiest use of an average is as a trend filter. Example — price above the EMA 200? You only take buy trades. Below it? Sells only. That way you use its strength (defining the trend) and avoid its weakness (timing the entry).

A moving average is a reading tool, not a complete trading system. Our library has 245 trend indicators — all built on the same idea with different variations, and all sharing the same limit: they lag, and they weaken in a sideways market.

Author: Najm FX (NFX) Arab trader and founder of Yakuzza. He builds trading tools and uses them before publishing them, and shares analysis and tutorials on the Najm Forex YouTube channel.
About YakuzzaYouTube channel

More guides

How to install an indicator on MetaTrader 5 — step by step A complete guide to installing any ex5 or mq5 indicator on MetaTrader 5: where the file goes, why it sometimes does not show up, and how to fix that in a minute. How to install a robot (Expert Advisor) on MetaTrader 5 and run it properly Installing an Expert Advisor step by step, enabling algo trading, the button that keeps the robot idle if you miss it — and what to check before running it with real money. Types of trading robots — and the real risk of each one Grid, martingale, scalping, trend, breakout: how each type works and exactly where it breaks. The plain talk you will not find on sales pages. How to calculate the right lot size — risk management in numbers The formula that sets your trade size from your balance and stop loss, with worked examples, and how to find the pip value of any pair from your platform. Trading gold XAUUSD — why it is different and how to handle it Gold is not a normal currency pair: higher volatility, a wider spread, and a reaction to the dollar and interest rates. What to know before trading it and how to set up for it. How to test a robot on a demo account properly (and how real differs) Opening a demo account on MetaTrader, exactly what to watch during the test, and the four differences that make a demo result different from a real one. Timeframes M1 M5 M15 H1 H4 D1 — which one suits you What each MetaTrader timeframe means, how many signals it gives, how much screen time it needs, and why running a tool on a timeframe it was not built for ruins its result. Smart money and liquidity — what an Order Block and a Liquidity Sweep really are A clear explanation of smart money concepts: order block, liquidity sweep, break of structure, fair value gap — and how to read them on the chart without the jargon. Indicator vs robot (Expert Advisor) — what the difference is and which you need An indicator analyses and tells you; a robot executes for you. The difference explained in detail, which one suits your situation, and why confusing them costs money. Spread, commission and swap — the real cost of every trade The three costs that eat into your profit on every trade, how to see them in your platform, and why they decide whether your strategy is profitable at all.

Everything here is educational, not investment advice. Leveraged trading carries a high risk and you can lose your entire capital. Test any tool on a demo account first, and never risk money you cannot afford to lose.