EMA explained: how the exponential moving average works
The EMA is a moving average that cares more about the last few candles. That makes it quicker to turn. It also makes it quicker to be wrong.
What the EMA is
EMA stands for exponential moving average.
Like any Moving average, it smooths the closing prices into one line. The difference is the weight.
- A simple moving average (SMA) treats all candles in the window the same.
- An exponential moving average gives the newest candles more weight, and older candles less and less.
So when price turns, the EMA turns sooner than the SMA of the same length.
How it's worked out
The EMA uses a "multiplier" based on its length:
- Multiplier = 2 ÷ (length + 1)
For a 20 EMA, that's 2 ÷ 21 = 0.095, about 9.5%.
Each new candle, the EMA moves 9.5% of the way from its old value toward the new close:
- New EMA = old EMA + 0.095 × (close − old EMA)
A worked example
The 20 EMA is at 100. The next candle closes at 110.
- Close − old EMA = 110 − 100 = 10
- 10 × 0.095 = 0.95
- New EMA = 100 + 0.95 = 100.95
Now compare a 20 SMA. If the candle dropped from the window also closed near 100, the SMA moves by (110 − 100) ÷ 20 = 0.50.
So the EMA moved almost twice as far on the same candle. That's the "faster" you hear about.
The common lengths
Traders tend to use a few lengths, mostly because other traders watch them too.
| Length | Often used for |
|---|---|
| 9 | Very short-term moves on intraday charts |
| 20 or 21 | Short-term trend, pullbacks in a trend |
| 50 | Medium-term trend |
| 200 | Long-term trend, often on the daily chart |
There's nothing magic about any of them. A 21 EMA isn't more accurate than a 23. It's just more common.
Faster is not always better
Here's the trade-off.
- Faster line: reacts sooner to a real turn.
- Faster line: also reacts sooner to noise.
In a choppy, sideways market, a short EMA flips up and down constantly. Price crosses it again and again. Every cross looks like a signal. Most of them aren't.
Speed cuts both ways. An EMA that catches turns early also catches fake turns early.
For a side-by-side, see EMA vs SMA.
How traders use the EMA
- Trend filter. Price above a rising 50 EMA leans up. Below a falling one leans down. Some traders only take trades in that direction.
- Pullback area. In a steady uptrend, price often dips back toward the 20 or 21 EMA before moving on. Often, not always. See the pullback trading strategy.
- Crossovers. A faster EMA crossing a slower one (for example 9 over 21). These come late and give many false signals in ranges.
- Slope. A flat EMA usually means no trend. The angle can tell you more than the cross.
What the EMA can't do
- It lags. Every moving average is built from past closes. Even the fast one is behind price.
- It isn't a wall. Price doesn't "bounce off" an EMA like a floor. Sometimes it pauses there. Often it slices through.
- It doesn't know about levels. It has no idea where price turned before, or where the news is.
Where it fits with our method
We read trend from the turning points first: higher highs and higher lows, or the reverse.
An EMA can be a handy visual helper:
- If the turning points say "uptrend" and price is above a rising 50 EMA, both agree.
- If they disagree, the market is mixed. That's a reason to wait.
What we don't do is put the Stop loss just under an EMA. The line moves every candle, and it has no memory of where buyers stepped in. We put the stop past the last turning point on the chart, then size from the math with the position size calculator.
And breaks follow our usual rule: a candle body has to close past a marked level. A wick through the EMA means little.
Common mistakes
- Trading every EMA cross. In a range, that's a cross every few candles.
- Using five EMAs at once. More lines, same closing prices. The chart gets harder to read.
- Treating the 200 EMA as a promise. Price often reacts near it. It also often ignores it.
- Changing lengths until the past looks perfect. That's fitting history. It rarely holds.
- Putting the stop right at the EMA. It's a moving target with no link to where price turned.
Try it today on TradingView
About 10 minutes.
- Open a daily chart. Add "Moving Average Exponential" from Indicators. Set length 21.
- Add a second one: "Moving Average" (simple), also length 21. Make it a different colour.
- Find a sharp turn. Count how many candles earlier the EMA turned than the SMA.
- Find a sideways stretch. Count how many times price crossed the EMA.
- Note both counts in your trading journal. Faster turns, more crosses: that's the trade-off in numbers.
Want to see it in motion? Use bar replay so the EMA builds candle by candle and you can't peek at what's next.
Questions
What is the difference between EMA and SMA?
The SMA weights every candle in the window equally. The EMA gives newer candles more weight, so it turns sooner. That also makes it react more to noise.
Which EMA is best for day trading?
Many day traders watch the 9 and 20 or 21 EMA on intraday charts. No length is "best". The common ones are useful mainly because many people watch them.
What does the 200 EMA mean?
It's a long-term average of price. On a daily chart, price above a rising 200 EMA is often read as a long-term uptrend. It's a filter, not a signal.
How is the EMA calculated?
Each candle, it moves part of the way toward the new close. The part is 2 ÷ (length + 1). For a 20 EMA that's about 9.5% each candle.
Does price bounce off the EMA?
Sometimes it pauses near it, especially in a steady trend. It often cuts straight through too. Treat the EMA as an area to watch, not a wall.
Want the next step? We'll walk you through it.
Four free lessons by email, one every few days — each with a 10-minute exercise on a real chart.
Send Me the Free Lessons 4 short emails · No spam · Unsubscribe anytimeOr see the whole method, step by step:
See What’s Inside the Course Try everything free first. Decide when you're ready. · Open the free chart tool (works in the TradingView phone app)One chart idea a day, in plain English. Follow along: