What Is a Moving Average?
A moving average is one of the most fundamental technical indicators in trading. It calculates the average price over a defined number of past periods and updates with each new price. This smooths out short-term price fluctuations and reveals the underlying trend.
The two most common variants are the Simple Moving Average (SMA) and the Exponential Moving Average (EMA), which differ in how they weight past prices.
Simple Moving Average (SMA)
The SMA calculates the arithmetic mean of closing prices over a specified number of periods. Each price is equally weighted:
SMA = (P1 + P2 + ... + Pn) / n
A 20-period SMA adds the last 20 closing prices and divides the sum by 20. With each new price, the oldest value drops off and the new one is added.
Advantage: The SMA is stable and less susceptible to short-term spikes. Disadvantage: It reacts more slowly to current price changes since all periods are equally weighted.
Exponential Moving Average (EMA)
The EMA assigns greater weight to more recent prices and therefore reacts more quickly to current price movements. The calculation uses a weighting factor that causes the influence of older prices to decrease exponentially.
EMA = Close Price x Multiplier + EMA (Previous Day) x (1 - Multiplier)
The multiplier is calculated as: 2 / (Periods + 1)
Advantage: Faster response to new price data, less lag. Disadvantage: More prone to false signals in choppy (sideways) markets.
Common Period Settings
Different period settings provide different information:
- 9/10 EMA: Short-term trend, popular among scalpers and day traders
- 20/21 EMA: Standard for short-term momentum, roughly equivalent to one trading month
- 50 SMA/EMA: Medium-term trend, widely watched by institutional traders
- 100 SMA: Transition between medium- and long-term trends
- 200 SMA: Long-term trend, one of the most closely watched indicators in equity markets
Application in Trading
Trend Identification
The simplest use: if price is above the moving average, the trend is up. If it is below, the trend is down. Professional traders also watch the slope of the moving average — a steeply rising average signals strong momentum.
Dynamic Support and Resistance
Moving averages often act as dynamic support or resistance zones. In uptrends, price frequently finds support at the EMA/SMA and bounces higher. In downtrends, the moving average acts as resistance.
Crossover Signals
When a shorter moving average crosses above a longer one (Golden Cross), it is interpreted as a bullish signal. The reverse scenario (Death Cross) is considered bearish. The 50-SMA and 200-SMA combination is the best known.
Limitations of Moving Averages
Moving averages are lagging indicators. They are based on past data and can only signal trend changes with a delay. In sideways markets without a clear trend, they frequently generate false signals (whipsaws), as price repeatedly crosses the average without establishing a sustained trend.
Experienced traders therefore never use moving averages in isolation but always in combination with other analysis methods such as order flow, volume analysis, or market structure.
FAQ
EMA or SMA — which is better?
There is no definitive answer. The EMA is better suited for short-term trading due to its faster response. The SMA provides more stable signals for longer-term analysis. Many traders use both in combination.
What is the best setting for day trading?
The 9-EMA and 21-EMA are particularly popular among day traders. For higher-timeframe orientation, the 50-SMA or 200-SMA on the daily chart is frequently added.
Do moving averages work in all markets?
Moving averages work best in trending markets. During sideways phases, they lose effectiveness and generate numerous false signals. Identifying the current market phase is therefore critical.