Glossary
Exponential moving average (EMA)
A moving average that gives more weight to recent prices, so it reacts faster than a simple moving average of the same length.
An exponential moving average (EMA) smooths price like any moving average, but it does not treat every period equally. The newest price gets the largest weight and older prices fade out gradually instead of dropping off all at once. As a result, an EMA turns sooner than a simple moving average (SMA) of the same length when price changes direction.
EMAs sit inside many other tools. The MACD indicator, developed by Gerald Appel, is built from the difference between a 12-period and a 26-period EMA, with a 9-period EMA of that difference as its signal line. Short EMAs such as 9, 12, 20 or 21 periods are common on intraday charts; 50- and 200-period averages are widely watched on daily charts of indices and large coins.
The formula
EMA today = (close today − EMA yesterday) × k + EMA yesterday, where the smoothing multiplier k = 2 ÷ (N + 1) and N is the number of periods. For a 10-period EMA, k = 2 ÷ 11 ≈ 0.1818, so each new close moves the average about 18% of the way toward itself. For a 50-period EMA, k = 2 ÷ 51 ≈ 0.0392.
Because each value depends on the previous one, the calculation needs a starting point. A common choice is to seed the first EMA with an SMA of the first N closes. That is why two platforms can show slightly different EMA values for the same asset if their price history starts on different dates; the difference fades as more data accumulates.
How to read it on a chart
Slope first. A rising EMA means recent prices are, on average, higher than earlier ones. A flat EMA that price keeps crossing back and forth usually means a range rather than a trend.
Position second. Price holding above a rising EMA is typical of an uptrend; price below a falling EMA is typical of a downtrend. The distance between price and the EMA shows how stretched the move is relative to its recent average.
Pairs of EMAs are often compared. When a faster EMA crosses above a slower one, the short-term average has overtaken the longer-term one. Crossovers lag by design, because both lines are built from past prices.
EMA versus SMA
The EMA's faster reaction is both its strength and its weakness. It picks up turns earlier, but it also reacts more to single spikes and produces more crossings in choppy markets. An SMA is steadier but slower. Neither is better in general; they answer slightly different questions, and many charts show both.
Common mistakes
Treating an EMA as a price floor or ceiling. Price often pauses near popular averages because many people watch them, but it crosses them all the time.
Optimizing the length to fit past data. A 17-period EMA that worked perfectly last year may have no edge next year.
Forgetting the time frame. A 20-period EMA on an hourly chart covers less than a day of crypto trading; on a weekly chart it covers almost five months.
Common EMA lengths and what they cover
On a daily stock chart, a 20-period EMA covers roughly four trading weeks, a 50-period EMA about ten weeks, and a 200-period EMA a little under ten months of trading days. On a daily crypto chart the same lengths cover 20, 50 and 200 calendar days, because crypto trades every day of the week.
That difference matters when you compare a stock and a coin side by side. A 200-day average on a coin chart covers a shorter stretch of calendar time than a 200-day average on a stock chart. There is no correct length; the useful habit is to know how much time your chosen average represents.
Questions readers often ask
Why does my EMA differ from another platform's? Usually because the two platforms started the calculation from different dates or seeded it differently, or because a crypto platform uses a different daily cut-off time. The gap shrinks as more history is included.
Related terms
Sources
For education only, not financial advice. Crypto assets and stocks are volatile, and leveraged positions can lose more than the money you put in.