A moving average is the average price of an asset over a fixed number of periods, recalculated with every new candle. It smooths noise so the general direction is easier to see. It does not predict price: it reacts with a delay to what has already happened. The two most common types are the simple moving average (SMA), which gives every close the same weight, and the exponential moving average (EMA), which gives more weight to recent closes.
SMA vs EMA
| Feature | SMA | EMA |
|---|---|---|
| Weight of data | Equal for all closes in the window | Higher for the most recent |
| Reaction speed | Slower | Somewhat faster |
| Noise | Less sensitive to a single close | More sensitive |
| Calculation | Sum ÷ number of periods | Updated with a smoothing factor |
Practical example: 5-period SMA
With illustrative closes of 10, 12, 11, 13 and 14: 10 + 12 + 11 + 13 + 14 = 60; 60 ÷ 5 = 12. When a close of 15 arrives, the 10 drops out: 12 + 11 + 13 + 14 + 15 = 65; 65 ÷ 5 = 13. The average rises because recent closes are higher.
Practical example: 3-period EMA
The smoothing factor is α = 2 ÷ (N + 1) = 2 ÷ 4 = 0.5. With illustrative closes of 10, 12 and 11, taking the first close as the starting value (10), each new value is α × close + (1 − α) × previous EMA:
| Close | Calculation | EMA |
|---|---|---|
| 10 | starting value | 10 |
| 12 | 0.5 × 12 + 0.5 × 10 | 11 |
| 11 | 0.5 × 11 + 0.5 × 11 | 11 |
The initialisation method differs between platforms, so the first values may differ from those on your chart. The numbers are an exercise, not market data.
How they are read
- Price position: price above the average describes recent closes higher than the average; below, the opposite.
- Slope: a rising or falling average summarises the direction of the period observed.
- Crossover of two averages: a short one crossing a long one describes a recent change in behaviour. It is a description, not an order.
- Reaction zone: some people watch whether price reacted near an average before; it is not obliged to repeat.
Limits worth knowing
- It is a lagging indicator: it confirms late.
- In sideways ranges it produces frequent crossovers that lead nowhere.
- It changes with the period and timeframe chosen; there is no universal value.
- Events on the economic calendar can break any reading.
- It is derived from price: it adds no independent information.
See how it combines with other tools in the technical analysis guide, the RSI and the MACD, which is built from exponential averages.
How AIM helps
AIM is AIMPATFX's quantitative artificial intelligence. AIM Market organises the observable bias of a chart, scenarios, invalidation and objectives conditional on the data you provide; simulated scenarios are expressed as "X of N scenarios" and do not guarantee outcomes. AIM Risk calculates the mathematical position size using the risk you choose; see risk management. Read the quantitative methodology. The decision and the risk are the user's.
Frequently asked questions
Which moving average period is best?
There is no universal one. Short periods react sooner and create more noise; long ones filter more and confirm later.
Is the EMA better than the SMA?
Not necessarily. It responds faster to recent changes, but also to isolated moves.
Does an average crossover tell me when to trade?
No. It describes a recent change in behaviour; the decision and the risk are yours.
Does it work for forex, gold and indices?
It can be calculated on any price series; its usefulness changes with liquidity and volatility.
Sources and review: conceptual content with no market figures, adapted on 16 October 2026; check the formula and initialisation in your platform's documentation. Educational content; trading CFDs carries a risk of loss.



