Skip to content
CHARTARMORY

Install app

  1. Use the install icon on the right of the address bar, or choose the app-install option in the browser menu. Chrome and Edge support this on desktop.
  2. Already installed? Open ChartArmory from your home screen or computer’s app list.
CHARTARMORY

App & notifications

Enable notifications

Only your selected topics. We store your push address, encryption keys, language and choices; turning notifications off deletes this subscription.

Push notifications are not supported in this environment.

Tools

Moving averages: SMA and EMA

What an indicator shows—and what it cannot tell you.

What does it measure?

Moving averages smooth a window of prices. SMA gives observations equal weight; EMA places more weight on recent observations.

How to read it

Observe price position, average slope and crosses between different lengths. Being above an average does not guarantee the next price increase.

SMA = (P₁ + … + Pₙ) / n

Hypothetical calculation

Closes of 10, 12, 11, 13 and 14 give a five-period SMA of 12. A new close of 15 replaces the oldest value, 10, and the SMA becomes 13.

How it works

A simple moving average (SMA) adds up the closing prices over the chosen period (for example, 20 days) and divides by the number of periods. An exponential moving average (EMA) gives more weight to recent prices, so it reflects recent changes faster. For example, if five closes are 100, 100, 100, 100 and 150 after a spike on the last day, the 5-period SMA is the plain average of 110. The 5-period EMA, which weights recent values, catches up quickly to a figure higher than 110. They are most widely used to filter out daily price noise and visually check the direction of the current trend and support and resistance zones.

Common beginner mistakes

  • Chasing a buy on a moving-average crossover (golden cross), which appears only after price has already risen a lot, and getting stuck at a short-term high.
  • Treating a single moving average (for example, the 20-day) as a universal rule for every asset and timeframe, expecting it to hold as support, with no stop rule if it breaks.
  • Repeatedly trading in a sideways market where the averages lie flat, mistaking every time candles cross above or below the line for a trend change.

Frequently asked questions

Which is more accurate, the simple moving average (SMA) or exponential moving average (EMA)?

Neither is simply more accurate; they serve different uses. The EMA reflects recent price changes quickly, which helps catch short-term trend reversals early but makes it easier to be whipsawed. The SMA reacts a step slower, but many market participants widely watch the 20, 60 and 200-period lines as key support and resistance.

Why are the 5, 20, 60, 120 and 200-day moving averages the standard numbers?

On a daily chart with five trading days a week, 5 days is one week, 20 days is about one month, 60 days is one quarter (three months), 120 days is half a year, and 200 to 240 days is about a year of average trading prices. Short-term traders mostly use the 5 and 20-day lines, and investors following medium to long-term trends mostly use the 60, 120 and 200-day lines.

How do I tell bullish from bearish moving-average alignment?

Bullish alignment is when the short-term line (for example, the 20-day), medium-term line (60-day) and long-term line (120-day) sit below the current price in that order from top to bottom, all sloping up. It indicates an uptrend is dominant. Bearish alignment is the opposite: the long-term line is on top and the short-term line at the bottom, all sloping down, indicating a downtrend is dominant.

What is moving-average deviation and how do I use it?

It is the ratio showing how far the current price is from a given moving average (for example, the 20-day or 25-day), found by dividing the current price by the moving-average value. Because price sometimes returns toward the average after moving far from it, it is used as a reference for judging how extended a short-term drop or overheated move is in numbers.

Before using it

Longer lengths generally smooth more but respond later. Sideways prices can cross averages repeatedly. Changing SMA to EMA changes the comparison.

Check on your chart

Keep the symbol and timeframe fixed and record your settings. Compare an updating bar with a closed bar. This exercise is not a trade recommendation.

Is EMA always better than SMA?

No. With length 5, the common EMA weight is 2/(5+1)=1/3. If the previous EMA is assumed to be 12 and the new close is 15, the next EMA is 12+(15−12)/3=13. That previous value is a separate example assumption. Faster weighting can respond to both a lasting move and temporary noise. Keep the price source and timeframe fixed when comparing.

Official reference

TradingView — MA ↗