VWAPVWAP (Volume Weighted Average Price) is the average price a security has traded at throughout the session, weighted by volume — it's the most important intraday indicator for day traders, serving as a real-time measure of fair value and…Read definition → made sense to Sam after Lesson 27: VWAP Explained. It starts fresh every morning and weighs every trade by its size. But the other line on his chart, the 20-period average he kept in Lesson 24, behaved differently. It carried yesterday's candles into today, and on Monday morning it sat stubbornly below price long after XYZ had jumped.
Then there was the forum screenshot. It showed a "9 EMA" and a "20 EMA" hugging price far more tightly than his line did.
Same idea, an average of recent prices, but three different lines. Which one is right?
In 30 seconds
- A Moving AverageA moving average smooths out price data by calculating the average closing price over a set number of periods — it filters out noise and identifies the trend direction, with the stock above the MA interpreted as bullish and below as…Read definition → is the average closing price over a set number of recent candles, recalculated as each new candle closes.
- A simple moving average (SMA) weights every candle equally; an Exponential Moving AverageAn exponential moving average (EMA) is a moving average that weights recent price data more heavily than older data — making it faster to react to new price movement than a simple moving average of the same length.Read definition → (EMA) gives the newest candles more weight, so it reacts faster and also flips more often.
- On intraday charts many day traders use short EMAs such as the 9 and 20; on daily charts, the 50- and 200-day SMAs are the widely watched context lines.
- Moving averages summarize past prices. They help in trending markets and mislead in choppy ones, and the exact setting matters far less than reading the slope.
In this lesson you'll learn how SMAs and EMAs are built, why one turns faster than the other, which settings day traders commonly watch, and when moving averages stop helping. If you're new, start with Lesson 24: Basic Indicators, where Sam cut eleven indicators down to two.
What is a moving average?
A moving average is the average closing price over a fixed number of recent candles. It "moves" because each time a new candle closes, the newest price joins the average and the oldest one drops out.
Think of the average temperature over the last 10 days. One freak hot afternoon barely moves it, so it shows you the season instead of the day. A moving average does the same for price: it smooths out single candles so you can see which way things are drifting.
The number in the name is how many candles it covers. A 20-period moving average on a 5-minute chart averages the last 20 five-minute closes, which is 100 minutes of trading. The same setting on a daily chart averages 20 days. As Lesson 26: Chart Timeframes showed, a setting means nothing until you know the timeframe.
How does a simple moving average (SMA) work?
A simple moving average (SMA) adds up the closing prices of the last N candles and divides by N, so every candle in the window counts exactly the same. A 10-period SMA of closes at $50, $51, $52 and so on is just their plain average.
That equal weighting makes the SMA smooth and steady. It's also what makes it slow. When price jumps to a new level, the SMA only catches up as old candles leave the window one by one. A 20-period SMA needs 10 new candles at the new price to cover half the distance, and all 20 to cover it completely.
How does an exponential moving average (EMA) work?
An exponential moving average (EMA) is an average in which each candle's weight shrinks the older it gets, so the most recent closes count the most. Each new value is a blend: a fixed share of the latest close plus the rest from the previous EMA value.
The size of that share comes from the period. Schwab's thinkorswim documentation, for example, sets it at 2 divided by (length + 1) (thinkorswim). For a 9 EMA, that's 2 / 10 = 20% of the newest close; for a 20 EMA, about 9.5%. Statisticians call this exponential smoothing: past values get weights that shrink step by step and never quite reach zero (NIST).
An everyday version: an SMA is asking ten friends for a restaurant tip and counting every vote equally. An EMA still listens to all of them, but trusts whoever ate out last night more than whoever went last month.
You don't need the formula. You need what it causes: the EMA turns sooner after a change, and it gets fooled sooner by moves that don't last.
EMA vs SMA: how much faster is the EMA?
The EMA is faster because new prices carry more weight, and the difference is easy to measure. Imagine XYZ jumps 50 cents to a new level and stays there. Here's how many 5-minute candles each line needs to cover half of that jump:
Candles needed to close half of a sudden 50-cent jump
Math: after k candles, an EMA has covered 1 minus (1 minus weight) to the power k of the jump; an SMA has covered k / N of it.
- Weighting
- SMA
- Every candle in the window equal
- EMA
- More weight on recent candles
- Reaction to change
- SMA
- Slower
- EMA
- Faster
- In a steady trend
- SMA
- Smooth, steady line
- EMA
- Hugs price more closely
- In choppy markets
- SMA
- Fewer false flips
- EMA
- More false flips
- Common day trading use
- SMA
- Daily context lines (50, 200)
- EMA
- Intraday trend lines (9, 20, 21)
| SMA | EMA | |
|---|---|---|
| Weighting | Every candle in the window equal | More weight on recent candles |
| Reaction to change | Slower | Faster |
| In a steady trend | Smooth, steady line | Hugs price more closely |
| In choppy markets | Fewer false flips | More false flips |
| Common day trading use | Daily context lines (50, 200) | Intraday trend lines (9, 20, 21) |
Neither one is better. Faster means earlier signals and more false ones; slower means fewer false ones and later signals. That trade never goes away.
Which moving average settings do day traders use?
Day traders most often watch short EMAs on intraday charts and longer SMAs on daily charts. Those settings are popular because they're popular: many traders use them, so they're widely watched, which is a reason to know them rather than proof they work.
- Line
- 9 EMA
- Usually on
- 5-minute chart
- What it summarizes
- Roughly the last 45 minutes
- How traders read it
- Short-term momentum; strong trends often stay on one side of it
- Line
- 20 EMA
- Usually on
- 5-minute chart
- What it summarizes
- Roughly the last 100 minutes
- How traders read it
- The intraday trend; its slope says up, down or flat
- Line
- 50-day SMA
- Usually on
- Daily chart
- What it summarizes
- About a quarter of trading days
- How traders read it
- The medium-term trend
- Line
- 200-day SMA
- Usually on
- Daily chart
- What it summarizes
- About a year of trading days
- How traders read it
- The long-term trend; heavily watched
| Line | Usually on | What it summarizes | How traders read it |
|---|---|---|---|
| 9 EMA | 5-minute chart | Roughly the last 45 minutes | Short-term momentum; strong trends often stay on one side of it |
| 20 EMA | 5-minute chart | Roughly the last 100 minutes | The intraday trend; its slope says up, down or flat |
| 50-day SMA | Daily chart | About a quarter of trading days | The medium-term trend |
| 200-day SMA | Daily chart | About a year of trading days | The long-term trend; heavily watched |
Is 20 better than 21? No meaningful difference. The difference between neighboring settings is tiny next to the difference between a trending and a choppy market. Pick standard settings and leave them alone long enough to learn how they behave.
How do day traders read moving averages?
Day traders read moving averages for four things: the slope, which side of the line price is on, how price behaves when it pulls back to the line, and whether a faster line crosses a slower one.
Slope first. A rising 20 EMA says the intraday TrendA trend is a sustained directional movement in price over time — an uptrend is characterized by a sequence of higher highs and higher lows, a downtrend by lower highs and lower lows — and correctly identifying the current trend direction…Read definition → is up, a falling one says down, a flat one says there's no trend to follow. Slope is the most useful single reading.
Price above or below. Price holding above a rising average suggests buyers are in control. Many traders only look for long trades in that condition.
Pullbacks to the line. In a trend, price often drifts back toward a moving average before moving on. Like VWAP and the levels from Lesson 22: Support and Resistance, it's a place to watch. Price can just as easily slice through it. Lesson 77: Pullback Basics turns this into a plan.
Crossovers. When the 9 EMA crosses above the 20 EMA, recent prices have risen faster than the slightly longer average. It confirms a change that has already happened; by the time the lines cross, part of the move is gone.
On daily charts, the 50-day crossing the 200-day has names: a "Golden CrossA golden cross is a bullish technical signal that occurs when a shorter-term moving average (typically the 50-day SMA) crosses above a longer-term moving average (typically the 200-day SMA) — it signals a potential shift from bearish to…Read definition →" when it crosses up, a "death cross" when it crosses down. They describe trends that unfold over months, which makes them background for a day trader. Nobody should buy at 10 a.m. because of one.
Do moving average signals actually work?
The research is mixed, which is itself the lesson. A well-known study of the Dow Jones Industrial Average from 1897 to 1986 found that simple moving average rules produced buy signals followed by better returns than sell signals (Brock, Lakonishok and LeBaron, 1992).
A follow-up study then adjusted for a big problem: when researchers test many rules on the same data, some will look good by luck. After that correction, the best-looking rules lost their edge in the years after the original sample (Sullivan, Timmermann and White, 1999). Both studies used daily index data, not 5-minute stock charts, and neither included modern trading costs.
So treat moving averages as a way to describe the trend you're in. They don't tell you what happens next.
When do moving averages fail?
Moving averages fail in choppy, sideways markets, because they're built to follow trends and there's no trend to follow. Price crosses the line back and forth, fast and slow averages tangle together, and every cross looks like a signal that reverses minutes later. Traders call this a whipsaw.
The warning signs are easy to spot once you look for them:
- the 20 EMA is nearly flat
- price crosses it several times in half an hour
- the 9 and 20 EMAs are wound around each other instead of separated
When you see that, the moving averages are telling you there's no trend. Your best response is to wait for slope and separation to come back. Lesson 79: Trend vs Range covers how to tell the two kinds of market apart.
A flat moving average is still telling you something: that nothing is happening.
Sam swaps his average (hypothetical)
On Tuesday, Sam puts three lines on his 5-minute XYZ chart for one morning, just to compare: his old 20 SMA, a 20 EMA and a 9 EMA. No orders.
Hypothetical: three averages on one XYZ morning
Illustrative example- A jump
XYZ breaks above the old $53.35 to $53.40 ceiling and closes the 5-minute candle at $53.70, about 50 cents above where it sat all morning.
- 9 EMA halfway there
The 9 EMA has already covered about half the jump. The 20 EMA and 20 SMA are still well below price.
- 20 EMA halfway
The 20 EMA reaches the halfway mark. The 20 SMA gets there around 10:50.
- The chop
XYZ goes sideways between $53.55 and $53.75. The 9 and 20 EMAs cross four times. The SMA stays smoother but tells him nothing new either.
He keeps the 9 EMA and 20 EMA, deletes the SMA from his 5-minute chart, and writes his reading order on a card: "Slope first. Then which side price is on. A cross in chop is noise." He leaves the 50- and 200-day SMAs off his daily chart for now; his marked levels already do that job, and he isn't adding lines without a reason.
Hunting for the perfect setting
Your turn: watch an EMA catch up
Moving average practice (15 minutes, no orders)
Check your understanding
Check your understanding
What's the main difference between an SMA and an EMA with the same period?
Both average closing prices. The SMA weights every candle in its window equally; the EMA weights the newest most. Volume weighting and daily resets belong to VWAP.
Check your understanding
On a 5-minute chart, roughly how much time does a 20-period moving average cover?
20 candles times 5 minutes each is 100 minutes. On a daily chart, the same setting covers 20 trading days.
Check your understanding
The 9 and 20 EMAs have crossed four times in 30 minutes and the 20 EMA is flat. What's the best reading?
Moving averages follow trends. Flat, tangled lines mean there's no trend, so crosses tend to reverse quickly. Changing the setting doesn't fix the market.
Key takeaways
- A moving average smooths the last N closes; its meaning depends on the timeframe it's on.
- SMAs weight every candle equally and turn slowly; EMAs weight recent candles more and turn faster, with more false flips.
- Common settings are the 9 and 20 EMA intraday and the 50- and 200-day SMA on daily charts.
- Read slope first, then position, then pullbacks; crossovers confirm what already happened.
- In flat, choppy markets moving averages whipsaw, and research on moving average rules doesn't support treating them as predictions.
Frequently asked questions
Why is my EMA slightly different from the one on another platform?
Should a moving average use the closing price?
What's the difference between the 9 EMA and the 9 SMA?
What is a golden cross?
Are there other types of moving average?
Up next: what does volume say about who's pushing?
Sam's averages now show which way XYZ is drifting. But at 10:00, the jump above the ceiling came on the tallest volume bar of the day, while last Wednesday's flag breakout came on only average volume and failed within 20 minutes. Same price move, very different fuel. How do you read buying and selling pressure in the volume bars? Lesson 29: Volume Analysis answers that.
Disclaimer
Article Sources
- NIST/SEMATECH e-Handbook of Statistical Methods: Single Exponential Smoothing - How exponential smoothing gives older values shrinking weights.itl.nist.gov
- thinkorswim (Charles Schwab): ExpAverage - The EMA formula and its 2 / (length + 1) weighting.toslc.thinkorswim.com
- Brock, Lakonishok and LeBaron (1992), Simple Technical Trading Rules and the Stochastic Properties of Stock Returns, Journal of Finance - Moving average rules on Dow data from 1897 to 1986.ideas.repec.org
- Sullivan, Timmermann and White (1999), Data-Snooping, Technical Trading Rule Performance, and the Bootstrap, Journal of Finance - Correcting for testing many rules on the same data.ideas.repec.org






