Trading Knowledge

What Is the SMA

The SMA is the plain average of the last n closing prices. How to calculate it, read the trend, use three strategies and avoid the usual beginner mistakes.

Look at an experienced trader's chart and a newcomer will usually spot one or more smooth curves running through the candles. There is a good chance that curve is an SMA (Simple Moving Average). The indicator comes from nothing more than adding and dividing, yet it helps traders answer the most important question before every trade: is the price moving up, moving down or going sideways?

Mastering the SMA is therefore a basic step towards trading systematically. The sections that follow cover the calculation, how to read it, choosing a period, strategies, common mistakes and how it is applied in different markets.

The SMA as a noise filter

Prices on a chart rise and fall constantly like waves on the sea, so a trader watching each wave easily loses direction. The SMA acts like a compass: it folds many sessions into one average, so the line it draws is far smoother than price and the market's main direction stands out more clearly.

Defining the SMA

The SMA is the average price of an asset over a set number of sessions. That asset could be a share, a currency pair, a cryptocurrency or a commodity. Traders normally use each session's closing price, since that is the level the market finally settles on.

The number in brackets shows how many sessions the SMA covers. A few familiar examples are:

  • SMA(10): the average closing price of the last 10 sessions.
  • SMA(50): the average of the last 50 sessions.
  • SMA(200): the average of 200 sessions, typically used to view the long-term trend.

Each time a new session closes, the oldest session drops out of the calculation and the new one is added. Because the average keeps shifting forward in time like this, the indicator is called a "moving" average.

Calculating the SMA

The formula

The SMA formula is a plain arithmetic mean: SMA = (P₁ + P₂ + … + Pₙ) / n. Here, P₁ to Pₙ are the closing prices of each session in the window being measured. The value n is the number of sessions, commonly 10, 20, 50, 100 or 200. In other words, traders add up the closes of n sessions and divide by n.

A five-session example

Suppose the last five sessions closed at 10, 11, 12, 13 and 14 in turn. Those five numbers add up to 60, and 60 divided by 5 is 12, so SMA(5) currently equals 12.

On the sixth session the price closes at 15. The first session (price 10) then drops out of the window, leaving 11, 12, 13, 14 and 15 with a total of 65. Divided by 5, the new SMA(5) is 13. So when the price climbs steadily, the SMA steps up with it, reflecting a stable uptrend.

What the SMA tells traders

The direction of the trend

The simplest reading compares the price with the SMA line:

  • Price above the SMA: the market is leaning towards an uptrend.
  • Price below the SMA: the market is leaning towards a downtrend.
  • Price repeatedly crossing back and forth around the SMA: the market is ranging (moving sideways) with no clear trend.

A less noisy picture

Because it averages many sessions, the SMA naturally smooths out small intraday swings. Traders therefore see the real direction of price instead of reacting to every short-lived jolt.

Moving support and resistance

Support is a price zone that tends to halt a fall, while resistance is a zone that tends to halt a rise. With the SMA, these zones are not fixed but travel along with the average. Specifically, when price drops to touch the SMA and bounces up, the line is acting as dynamic support. Conversely, when price rises to touch the SMA and is pushed back down, the line is acting as dynamic resistance.

The SMA compared with other MAs

The SMA is only one of four popular types of moving average. The difference lies in how each type assigns weight, meaning how much each session influences the result:

CriterionSMAEMAWMASMMA
How weight is assignedEvery session equalRecent sessions heavier, exponentiallyOlder sessions lighterAverage smoothed further
Sensitivity to priceSlowFastFairly fastVery slow
Smoothness of the lineHighMediumMediumVery high
Best suited toLong trendsShort-term tradingFast in-and-out tradingLong, steady trends

The table shows that the SMA trades speed for stability. Traders who need quick reactions often switch to the EMA, while trend followers still prefer the SMA because it produces fewer noisy signals.

Choosing an SMA period

The number of sessions, n, decides whether the SMA is quick or slow. The shorter the period, the more closely the line hugs price; the longer the period, the flatter and steadier it becomes. The table below suggests how to choose by trading style:

PeriodCharacterSuited to
SMA10Sensitive, prone to noiseScalpers and day traders
SMA20 to SMA50Balance between sensitivity and stabilitySwing traders (holding for days to weeks)
SMA100 to SMA200Slow, reflects the big trendLong-term investors
The MT5 toolbar with the chart-type button and timeframe buttons from M1 to MN
The MT5 toolbar with the chart-type button and timeframe buttons from M1 to MN

Using the SMA in trading

Finding entries and exits

The most basic use is to treat the SMA as a dividing line. When price breaks above the SMA, traders consider buying; when price falls below it, traders consider selling or closing a buy. This rule works best when the market has a clear trend.

The MT5 market order window with the volume, Stop Loss and Take Profit fields and the Sell and Buy buttons
The MT5 market order window with the volume, Stop Loss and Take Profit fields and the Sell and Buy buttons

Crossover signals

With one short SMA and one long SMA, the point where the two lines cross becomes a signal. The two best-known crossovers are:

  • Golden Cross: the SMA50 crosses above the SMA200, suggesting the market may be entering a rising phase.
  • Death Cross: the SMA50 crosses below the SMA200, suggesting the market may be entering a falling phase.

Gauging trend strength

The gap between two SMAs also says a lot. If the SMA20 and SMA50 move further and further apart, the trend is strengthening. Conversely, when the two lines draw closer, momentum is fading and price may be about to turn.

Three SMA strategies

Two SMAs

This strategy uses one short and one long SMA, for example the SMA20 and SMA50. Traders buy when the SMA20 crosses above the SMA50 and sell when the SMA20 crosses below it.

Three SMAs

The three-layer version adds a line in the middle, typically the SMA10, SMA50 and SMA200. When all three line up in order, with the SMA10 on top, the SMA50 in the middle and the SMA200 at the bottom, the market is in a strong uptrend. In a strong downtrend, the order is completely reversed.

SMA combined with RSI

The RSI (Relative Strength Index) is an oscillator that runs from 0 to 100 and shows whether price has been overbought or oversold. Paired with the SMA50, it gives traders two extra signals:

  • RSI below 30, the oversold zone, just as price touches the SMA50: there is a fairly high chance of an upward reversal.
  • RSI above 70, the overbought zone, just as price breaks below the SMA50: the sell signal is more reliable.

Common SMA mistakes

Most false signals from the SMA come not from the indicator but from the way it is used. The three most common mistakes are:

  • Choosing a period that does not match the goal: using a short SMA for long-term investment decisions, or an SMA200 for intraday trading, leaves the signals out of step with the holding period.
  • Looking only at the SMA: a moving average does not reflect volume, volatility or market sentiment, so RSI, MACD or a Volume indicator is needed as a cross-check.
  • Entering before confirmation: beginners often place a trade the moment price touches the SMA, whereas the signal is only reliable once a candle has fully closed on the other side of the line (see how to read candlesticks).

Strengths and limitations

The SMA has three strengths that explain its long life in technical analysis:

  • It is easy to understand and apply, even for beginners.
  • It shows the trend clearly.
  • It is stable and little affected by small swings.

However, that same stability brings limitations:

  • It reacts slowly to new moves.
  • Its signals tend to arrive late when price reverses quickly.
  • It performs poorly in a ranging market, because price keeps crossing the line.

The SMA in different markets

Cryptocurrency

In crypto, traders often use the SMA20 and SMA50 to spot each wave. For example, when the Bitcoin price climbs above its SMA50, many see it as a sign that a new upward cycle may be starting.

Forex

For major pairs such as EUR/USD or GBP/USD, the SMA100 and SMA200 are commonly used to identify the dominant trend.

Stocks

In the stock market, the SMA200 is almost the classic yardstick of the long-term trend. For instance, when Vietnam's VN-Index sits above its SMA200, the market is usually seen as being in a growth phase.

Frequently asked questions

What is the SMA line?

The SMA is a line connecting the average prices of an asset over a set number of sessions. Traders use it mainly to identify the market's trend.

How does the SMA differ from the EMA?

The EMA reacts faster because it gives recent prices more weight. The SMA, by contrast, spreads weight evenly, so it is smoother and better for following long trends.

Does the SMA work well in a sideways market?

Usually not, because it produces many false signals then. Traders who still want to use it should add RSI or MACD as a filter.

Can the SMA be used on any timeframe?

Yes, it works from M1 (one-minute candles) to D1 (daily candles). What matters is choosing a period that fits the timeframe and the holding period.

Is it fine to use several SMAs at once?

Yes, and it is very common. The two-line and three-line SMA strategies both rely on plotting several lines together.

Key takeaways

The SMA is a classic tool that remains useful in modern trading, because it helps traders see the real trend and filter out noise. Its biggest weakness is lag, so signals often come late when price turns quickly. Combined sensibly with RSI, MACD or Bollinger Bands, and with patience for a confirming candle, the SMA can help traders make better-grounded decisions and improve their win rate.

Sources

  • MetaTrader 5 Help, Moving Average page (SMA formula and moving average methods): https://www.metatrader5.com/en/terminal/help/indicators/trend_indicators/ma
  • DCtoptrade (screenshots): https://dctoptrade.vn/

More in Trading Knowledge

View all →

Jesse Livermore's 20 Rules of Speculation

Jesse Livermore grew rich short-selling the crashes of 1907 and 1929. Twenty rules drawn from how he traded, grouped by market, entries, capital and psychology.

BackcomHub · · 4 min read

Four Swing Trading Strategies

Swing trades last from a few days to a few weeks. Four strategies covering trends, ranges, counter-momentum and pullbacks, plus money rules and stop placement.

BackcomHub · · 11 min read

Four Ways to Find Better Trade Entries

A better entry allows a tighter stop-loss and a stronger risk/reward ratio. Four methods: limit orders, end-of-day planning, the TLS checklist and a clear plan.

BackcomHub · · 5 min read