TradeOgix

Learn › Indicators · Updated 5 December 2026

Moving Averages: SMA, EMA and How to Use Them

A moving average smooths out price to show the underlying direction. It is one of the simplest indicators and one of the most widely used.

What it calculates

A simple moving average (SMA) adds up the closing prices of the last N candles and divides by N. A 20-period SMA on the daily chart is the average close of the last 20 days. As each new candle forms, the oldest one drops out, so the average "moves" with price.

An exponential moving average (EMA) gives more weight to recent prices. It reacts faster to new moves than an SMA of the same length, which some traders prefer for shorter-term trading. The trade-off is that it also reacts more to false moves.

Popular settings

LengthOften used for
9 or 10Very short-term momentum
20 or 21Short-term trend and pullbacks
50Medium-term trend
200Long-term trend; widely watched on the daily chart

Ways traders use moving averages

1. Trend direction

If price is above a rising moving average, the trend is generally up. If it is below a falling one, the trend is generally down. A flat average with price weaving through it suggests a sideways market, where moving averages are less useful.

2. Dynamic support and resistance

In a healthy trend, price often pulls back to an average like the 20 or 50 EMA and bounces. These levels move with price, unlike horizontal lines.

3. Crossovers

When a faster average crosses above a slower one, it can signal momentum turning up; crossing below can signal it turning down. The best-known example is the golden cross (the 50-day crossing above the 200-day) and the death cross (the 50 crossing below the 200).

Limitations

Keep it simple. Five moving averages on one chart usually create confusion, not clarity. Many traders use just one or two, such as the 50 and 200, or the 20 EMA alone.

Add them on TradeOgix

  1. Open a chart and tap fx Indicators.
  2. Choose MA (simple) or EMA (exponential).
  3. Open the indicator's settings to change the lengths and colours.
  4. Your indicator choices are saved and, if you are signed in, synced to your other devices.

This guide is for education only and is not financial advice. Trading carries a high risk of loss.

Practise on TradeOgix charts