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) | |
|---|---|---|
| Calculation | All candles weighted equally | Recent candles weighted more |
| Response | Slower and smoother | Faster |
| False signals | Fewer | More |
| Suits | The broader trend | Faster 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
- 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.
- 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.
- 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.
- 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.