Moving averages I
If you could keep only one indicator on your chart for the rest of your trading life, most seasoned traders would keep this one. The moving average is the most-used line in all of technical analysis — and yet "an average of price" hides almost everything that makes it useful.
Because there are two kinds that behave differently, and three specific settings that half the market is watching at the same moment you are. This lesson is the deep end on what a moving average is; the next one is all about how to trade with it. Take your time here — this is foundational.
A moving average (MA) takes the average of the last several closing prices and plots it as a single point. Do that for every candle, connect the dots, and you get a smooth line that glides along underneath the price. The "moving" part is literal: as each new candle closes, the oldest price drops out of the calculation and the newest drops in, so the average is recomputed and the line inches forward.
The number of candles it averages is called the period or lookback. A 20-period MA averages the last 20 closes; a 200-period MA averages the last 200. That single setting controls everything about the line's personality. A short period hugs the price tightly and reacts fast; a long period sits far away and turns slowly. Same formula, wildly different behavior, decided entirely by the period.
What is a moving average actually for? One job: to strip out the noise so you can see the underlying direction. Remember from the timeframes lesson that raw price is jumpy — full of little wiggles that mean nothing. Averaging smooths those wiggles into a clean line, answering a simple question at a glance: which way is price generally leaning, and how steeply? If the line rises, the recent balance favors buyers; if it falls, sellers. It converts a jittery mess into a readable slope.
And keep the last lesson firmly in mind: an MA is a pure lagging indicator. It's built entirely from prices that already happened, so it can only ever tell you where the balance has been, never where it's going next. That lag isn't a defect to fix — it's the whole point. Smoothing requires looking backward, and looking backward means being a step behind. Everything about using MAs well comes down to respecting that trade-off.
There are two flavors you'll actually use, and the difference is how they weight the prices they average.
A simple moving average (SMA) treats every price in its window equally. In a 20-period SMA, the close from 20 candles ago counts exactly as much as yesterday's close. That makes the SMA very smooth and steady — but also slow, because a stale three-week-old price is still dragging on today's value with full weight. When you want a calm, uncluttered read on the bigger trend, the SMA's stubbornness is a feature.
An exponential moving average (EMA) does the same job but weights recent prices more heavily, fading the influence of older ones. Because it leans on the latest candles, the EMA reacts faster — it turns sooner and hugs the price more closely. That responsiveness is great when you want early warning of a shift, but it comes at a cost you already know: reacting faster means reacting to more noise, so the EMA gives more false turns. It's the classic indicator trade-off from the last lesson, made concrete. Earlier means twitchier; smoother means later.
Neither is "better." Many swing traders use an EMA for the shorter, reactive lines they watch day to day, and an SMA for the long-term line where steadiness matters more than speed. What you must never do is stare at two of them and wonder why the "fast" one gave a signal the "slow" one didn't — that's not a contradiction, that's literally what they're built to do.
You can set an MA to any period, but three have become near-universal, and that shared attention is exactly what makes them matter. Like the support and resistance levels from Module 2, a moving average becomes partly self-fulfilling: when a huge share of traders are all watching the same line, their reactions to it make it real. These are the three:
Think of them as three zoom levels of the same idea, echoing the timeframes lesson: the 20 is the near tide, the 50 is the season, the 200 is the climate. Each answers "which way is price leaning?" over a different horizon. The real power shows up when they agree — when the 20 is above the 50 is above the 200 and all three slope up, the short, medium, and long-term balances all favor buyers at once. That alignment is one of the cleanest pictures of a strong trend you'll ever get.
Two pictures make this concrete. First, watch how an SMA and an EMA of the same period react differently to the very same price:
same price · SMA (steady, later) vs EMA (responsive, sooner)
Now the second picture: the 20, 50, and 200 stacked on a trending stock. Notice how they fan out in order and all lean the same way — the signature of a strong, aligned uptrend:
20 · 50 · 200 stacked and rising = an aligned uptrend
Moving averages are gorgeous in a trend and a disaster in a range. When price chops sideways, a moving average sits right in the middle of the mess and gets sliced back and forth — price crosses it, you get a "signal," it reverses, another "signal," and so on. In choppy conditions an MA doesn't just fail to help; it actively generates a stream of false signals that will bleed you through the over-trading tax from Module 1. Half of using MAs well is knowing to ignore them when the market has no trend.
Two more honest limits. First, the "magic" of 20/50/200 is mostly the self-fulfilling attention we described — which cuts both ways, because everyone's stops cluster near obvious MAs, making them prime spots for a fake-out. Second, resist the temptation to hunt for the "perfect" period by testing dozens on old data. A 47-period EMA that looks flawless on last month's chart is curve-fitting, and it will fail you the moment the market changes. Stick to the common settings precisely because they're common. And never forget the lag: by the time an MA confirms a move, part of that move is already behind you. It's a tool for reading trend and staying on the right side of it — not for calling tops and bottoms.
None of that makes moving averages weak. It makes them specific. Used as a trend filter — is price above or below the line, is the line rising or falling, are the three stacked in order — an MA is one of the most reliable reads on a chart. Used as a magic buy/sell trigger in a directionless market, it's a shredder. The whole skill is applying the right tool to the right conditions, which is exactly what the next lesson builds: turning these lines into actual trading decisions.
Open the Lab and add a 20 EMA and a 50 SMA to a chart. First, just watch them move: notice the EMA clinging to price while the SMA lags behind and stays calmer. Find a sharp turn and confirm with your own eyes that the EMA reacts first and the SMA follows — the trade-off, live.
Then add the 200 and ask where price sits relative to it: above (bullish backdrop) or below (bearish)? Finally, the important half — hunt down a sideways, choppy stretch and watch price whipsaw across the averages again and again, throwing off signal after useless signal. Burn that image in. Knowing when a moving average is lying to you is worth more than any setting you could pick.
Open the Lab →- A moving average smooths price into a readable slope; its period sets its personality (short = fast and close, long = slow and far). It's a lagging trend tool, not a predictor.
- SMA weights all prices equally — steady but late; EMA weights recent prices more — responsive but twitchier. Earlier always means noisier.
- The 20, 50, and 200 matter partly because everyone watches them; stacked in order and sloping the same way, they mark an aligned trend. But MAs whipsaw badly in ranges — ignore them when there's no trend.