TradeProfy
Loading global marketscrypto live · forex ECB

Popular & new

Most used

New this month NEW

New this month

Education and estimation only. TradeProfy is not a registered investment adviser in any country and does not recommend buying or selling any security, currency or crypto-asset. Leveraged trading can lose money quickly.

EMA vs SMA: moving averages and how traders use them

Moving averages are the backbone of trend analysis and the building blocks of MACD and Bollinger Bands. This guide covers the maths, the lag trade-off, the most watched averages and what crossover tests really show.

Mantu KumarBy Reviewed 7 November 2026How we check our numbers

Key takeaways

  • An SMA weights all N closes equally; an EMA weights recent closes more.
  • All averages lag; longer ones are smoother and slower.
  • The 50- and 200-day averages are widely watched; crosses confirm trends late.
  • Averages work well as filters that keep you on the side of the main trend.
  • Crossover systems depend on a few large trends and are sensitive to costs.

Simple moving average (SMA)

An N-period SMA is the plain average of the last N closes. Every close in the window has the same weight, and the oldest close drops out completely when a new one arrives.

SMA(N) = (Close1 + Close2 + … + CloseN) ÷ N

Exponential moving average (EMA)

An EMA gives the newest close a fixed weight and the previous EMA the rest, so recent prices count more and old prices fade gradually instead of dropping out.

k = 2 ÷ (N + 1)
EMAtoday = Closetoday × k + EMAyesterday × (1 − k)

For a 20-period EMA, k = 2 ÷ 21 ≈ 0.095, so today’s close carries about 9.5% of the weight. TradeProfy starts the EMA from the SMA of the first N closes, which is the most common convention.

Worked example

Five closes: 10, 11, 12, 13, 14. The 5-period SMA is 12. With a 3-period EMA (k = 0.5) seeded at the SMA of the first three closes (11), the next values are 13 × 0.5 + 11 × 0.5 = 12 and 14 × 0.5 + 12 × 0.5 = 13. The EMA sits closer to the latest price (14) than the 3-period SMA (13 as well here, but on uneven data the EMA usually reacts faster).

The lag trade-off

Every moving average lags price, because it is built from past closes. Longer averages are smoother but turn later; shorter ones turn sooner but flip back and forth in sideways markets. An EMA reduces lag compared with an SMA of the same length but is a little more sensitive to single spikes. There is no setting that is both fast and free of noise.

200-day SMA vs EMA on the same close

Suppose both 200-day averages stood at 100 yesterday. Today’s close is 108, and the close dropping out of the SMA window was 96. The SMA rises by (108 − 96) ÷ 200 = 0.06, to 100.06. The EMA rises by (108 − 100) × 2 ÷ 201, about 0.08, to 100.08. The SMA’s move depends on which old close leaves the window; the EMA’s depends only on how far today’s close is from yesterday’s EMA.

The most watched averages

AverageCommon use
20-periodShort-term trend; middle Bollinger Band
50-dayIntermediate trend; pullback reference in uptrends
200-dayLong-term trend filter; widely quoted in market news

On crypto, 200 daily bars cover about 6.5 months; on stocks, which trade about 252 days a year, they cover roughly 9.5 months. Keep that in mind when comparing.

Golden cross and death cross

A golden cross is the 50-day average crossing above the 200-day; a death cross is the reverse. They get headlines because they are rare and easy to explain, but they happen well after the turn in price. They are better read as confirmation that a trend has changed than as an early signal.

Using averages as filters

A common and robust use is as a filter: only take long trades while price is above the 200-day average, or only buy pullbacks while the 50-day is above the 200-day. Filters like this do not find entries but remove trades against the main trend, which is where many strategies lose most.

What crossover backtests usually show

Run the “EMA crossover” rule in the backtester with 20 and 50 on a few markets. Patterns that come up again and again:

  • Win rates are often below 50%: many small losses in choppy periods, a few large wins in trends.
  • Results depend heavily on a handful of big trends. Remove one and the result can flip.
  • Costs matter. On 4-hour or 1-hour bars the rule trades much more often, and fees can consume most of the edge.
  • Compared with buy-and-hold in a strong bull market, the rule usually earns less but with smaller drawdowns.

Moving averages and stops

Some traders trail a stop under a rising average, such as the 20-day EMA. This keeps them in trends and exits after a meaningful pullback. The distance between price and the average changes over time, so the risk per trade changes too. Recalculate the position size from the actual stop distance with the Trade Planner rather than using a fixed number of units.

Calculating lag: how late is each average?

A useful rule of thumb is that an N-period simple moving average lags price by about (N − 1) ÷ 2 bars. A 20-day SMA therefore reflects, on average, where price was about 9.5 days ago, and a 200-day SMA where it was about 100 days ago. An EMA with the same N has, on paper, the same average lag of (N − 1) ÷ 2 bars, but because its weights are heaviest on the newest bars it responds to a fresh move noticeably sooner. In practice, a 20-day EMA turns a few days before a 20-day SMA after a sharp reversal.

AverageApproximate lag (SMA)Today’s close weight (EMA)
104.5 bars18.2%
209.5 bars9.5%
5024.5 bars3.9%
20099.5 bars1.0%

Other moving averages

  • Weighted moving average (WMA). Linear weights: the newest close gets weight N, the oldest weight 1.
  • Wilder’s smoothing. An EMA with a weight of 1 ÷ N instead of 2 ÷ (N + 1). RSI and ATR use it, which is why a 14-period Wilder average is about as smooth as a 27-period standard EMA.
  • Volume-weighted average price (VWAP). Weights each price by volume and usually resets each session. See the VWAP and volume guide.

A three-average trend template

Many trend traders use a simple stack: price above the 20-day, the 20-day above the 50-day, and the 50-day above the 200-day describes a strong uptrend; the reverse order describes a strong downtrend; anything mixed is a transition or a range. The stack does not tell you when to buy, but it tells you which kind of setup to look for. In an aligned uptrend, pullbacks to the 20- or 50-day average are the classic places to plan an entry. When the stack is mixed, crossover systems tend to whipsaw, and range-trading tools become more relevant.

Worked example of an average-based trailing stop

You buy ETH/USDT at 3,000 with an initial stop at 2,820 (180 below). After two weeks the 20-day EMA has risen to 3,150 and price is at 3,380. You move the stop to just under the EMA, at 3,130, which locks in 130 of profit per coin. If price keeps trending, the EMA rises and the stop follows. If price closes below the EMA, you exit. The method lets the trend decide the exit, but you accept that you will give back part of every move.

Using averages on TradeProfy

In Advanced Charts, the ƒx menu includes SMA and EMA at common lengths. Asset pages such as Bitcoin show price against its 50- and 200-day EMAs by default and report the distance from the 200-day in the statistics panel. The screener classifies every tracked market as an uptrend, downtrend or mixed based on the 50- and 200-day EMAs, so you can find aligned markets quickly.

Find markets in an uptrendThe screener labels every market by its 50- and 200-day EMAs. Filter for uptrends in one click.
Open the screener →

Key terms

SMA
Simple moving average: the plain mean of the last N closes.
EMA
Exponential moving average: recent closes weighted more.
Lag
How far behind price an average reacts, about (N − 1) ÷ 2 bars on average.
Golden cross
The 50-day average crossing above the 200-day.
Death cross
The 50-day average crossing below the 200-day.
Education only. This guide explains how an indicator or method works. It is not a recommendation to buy or sell anything, and past patterns do not predict future prices. Trading, especially with leverage, can lose money quickly.

Frequently asked questions

Is EMA better than SMA?

Neither is better in general. An EMA reacts faster to recent prices; an SMA is smoother and less affected by single spikes. Choose one and test it on your market.

What does price above the 200-day average mean?

The latest close is higher than the average close of roughly the last 200 trading days. Many traders read it as a long-term uptrend, but it is a description, not a forecast.

Why do moving average signals come late?

They are averages of past prices, so they can only turn after prices have already moved.

What is the best moving average for day trading?

There is no universal best. Short averages such as 9 or 20 on intraday charts are popular, but they produce many signals and costs add up. Test before relying on any setting.

What is a golden cross?

The 50-day moving average crossing above the 200-day moving average. It confirms that recent prices have risen relative to the longer trend, usually well after the turn.

Mantu Kumar, founder of TradeProfy

Written and maintained by Mantu Kumar

Mantu builds the TradeProfy calculators and checks every formula with worked examples. Each page lists its data sources and assumptions. TradeProfy explains costs and maths but never tells you what to buy or sell.

Read Mantu’s profile · How we check our numbers