Moving averages explained: SMA, EMA, crossovers and trend
Moving averages explained in plain English: SMA vs EMA, the 20, 50 and 200, reading trend, crossovers and their lag, and using an average as support.
Key takeaways
- A moving average smooths price into one line, and its slope and position tell you the trend more clearly than single candles.
- Use the 20, 50 and 200 for short, medium and long trends, and read them together: price above a rising 20 that sits above the 50 is an uptrend.
- Crossovers always arrive late and whipsaw in ranges, so treat moving averages as a trend filter and a place to look, not as a buy button.
In this article
A moving average is the average closing price over a set number of recent candles, redrawn after every candle so it forms a smooth line under or over price. Traders use it to see the trend at a glance: if the line is rising and price is above it, buyers are in control, and if it is falling with price below it, sellers are.
Moving averages are worth learning right after candlesticks and support and resistance, because most strategies on this site use them as a filter.
What is a moving average?
Single candles are noisy. A moving average takes the last few closes, averages them, and plots one point. When the next candle closes, the oldest close drops out, the new one comes in, and the line moves forward. That is why it is called “moving”.
The number in the name is the length. A 20-period moving average on a 1-hour chart averages the last 20 hourly closes. The length is counted in candles, so the timeframe changes what the line means.
SMA vs EMA: what is the difference?
There are two common types. A simple moving average (SMA) gives every close in the window the same weight. An exponential moving average (EMA) gives more weight to the newest closes, so it turns faster when price changes direction.
A small worked example with 5 closes
Closes: 100, 102, 101, 104, 108. Sum = 515. The 5-period SMA is 515 ÷ 5 = 103.
The next candle closes at 110. The 100 drops out, so the new sum is 525 and the SMA becomes 105.
An EMA uses a multiplier of 2 ÷ (length + 1). For 5 periods that is 2 ÷ 6 = 0.333. Starting from 103, the new EMA is
103 + 0.333 × (110 − 103) = 103 + 2.33 = 105.33.
Both lines rose, but the EMA moved further toward the new price. That is the whole difference: faster reaction, at the cost of
being pushed around more by single candles.
Neither type is better. The SMA is steadier and is what Bollinger bands use. The EMA reacts sooner and is what this site uses for trend checks. Pick one and stay consistent.
Which moving average lengths should you use?
You can use any length, but three are watched by so many traders that they have become reference points.
- 20: the short-term trend. In a strong move price often dips back to the 20 and bounces. It is the line used in the trend pullback setup and the middle of the Bollinger bands.
- 50: the medium-term trend. It moves slowly enough to ignore a normal pullback but turns when a trend really changes. On the daily chart it covers roughly two and a half months of crypto trading.
- 200: the long-term trend. On the daily chart it is the line many people use to separate a bull market from a bear market. Buying the dip only makes sense while price holds above it.
Shorter lengths give more signals, most of them noise. Longer lengths give fewer, later ones. The numbers are not magic. They matter partly because so many people watch them.
How do you read a trend with moving averages?
Look at three things, in this order.
1. The slope
A rising average means recent closes are higher than the ones dropping out of the window. A falling one means the opposite. If the line is flat, there is no trend to follow.
2. Price above or below
Price closing above a rising average is the normal state of an uptrend. Price closing below a falling average is the normal state of a downtrend. Price crossing back and forth over a flat average every few candles is a range, and a range calls for different tools, such as range trading.
3. The stacking
When the faster average sits above the slower one, the recent trend is stronger than the older one. This site uses one fixed definition for the bigger timeframe: it is trending up when the close is above its 20 EMA and the 20 EMA is above the 50 EMA. Flip both conditions and it is trending down. Anything else is mixed, and mixed is a reason to size down or wait.
Moving average crossovers: signal or trap?
A crossover is when a faster average crosses a slower one. When the 50-day crosses above the 200-day it is often called a “golden cross”. The reverse is a “death cross”. The idea is that the short-term trend has turned and the long-term trend is following. Crossovers are the core of trend following: buy on the cross up, sell on the cross down, and let the few long trends pay for everything else.
The catch is lag. An average is built from past closes, so by the time two of them cross, the move has already started. You never get the bottom or the top. You get the middle, if there is a middle.
The second catch is whipsaws. In a sideways market the two lines tangle and cross back and forth. Each cross is a small loss plus fees. A crossover system only works if the trends it catches are long enough to cover those losses, and nothing guarantees that.
Where moving averages help
- They turn a messy chart into a clear trend direction.
- The rules are objective and easy to write down and test.
- They keep you on the right side of long trends.
- They show where pullbacks in a trend often slow down.
Where they let you down
- Every signal arrives after the move has started.
- They whipsaw repeatedly in ranges.
- A sudden news move can blow straight through them.
- Results change a lot with the length and timeframe chosen.
Using a moving average as dynamic support
Horizontal support sits at a fixed price. A moving average in a trend acts like support that moves up with the market. In a clean uptrend, price often pulls back to the 20 EMA, pauses, and moves on.
It is a zone to watch, not a level that must hold. The useful signal is what price does there: a candle that touches the average and then closes back above it says buyers defended it. A close well below it, especially below the 50 as well, says the pullback is turning into something bigger.
Sizing a pullback to the 20 EMA
Account $10,000, risk 1% = $100. BTC pulls back to its 20 EMA near $60,000, and a green candle closes back above it at $60,400.
The pullback low is $59,600 and the ATR is $500, so the stop goes 0.2 ATR lower: $59,600 − $100 = $59,500.
Stop distance = $60,400 − $59,500 = $900, which is 1.8 ATR, inside the 0.25 to 4 ATR band.
Position size = $100 ÷ $900 = 0.111 BTC, about $6,700 of exposure.
Round-trip fees at 0.1% each way are about $121 per BTC, or 0.13 R, under the 0.3 R cap. Target 1 must be at least 1.5 R away:
$60,400 + $1,350 = $61,750 or higher.
The stop and target rules here are the ones every setup on the site shares. They are explained in managing a setup and where to put a stop loss. For how much to risk in the first place, see how much to risk per trade.
Other averages you will meet: VWAP and the Bollinger middle band
VWAP (volume-weighted average price) is an average too, but each price is weighted by how much traded there, and it usually resets each day. That makes it a rough measure of what the average trader paid today. Price above VWAP means the day's buyers are ahead. The VWAP reclaim setup buys a close back above it in an uptrend.
Bollinger bands are built on a moving average. The middle band is the 20-candle SMA, and the upper and lower bands sit 2 standard deviations above and below it. When price stretches to an outer band and snaps back, the middle band is the natural first target, which is how Bollinger reversion uses it.
Common mistakes
- Treating a cross as a guaranteed signal. In a range most crosses fail, and each one costs a small loss plus fees.
- Changing the length after every loss. Tuning the average to fit the last few trades makes the past look great and tells you nothing about the next trade.
- Using a moving average on a flat market. When the line has no slope there is no trend, so trend rules only produce noise.
- Acting before the candle closes. Price can cross the average mid-candle and finish back on the other side, so a cross only counts at the close.
- Placing the stop exactly on the average. Price often pokes through a busy line before turning, so a stop sitting on it gets hit by ordinary noise.
- Ignoring the bigger timeframe. A bullish cross on a 15-minute chart inside a daily downtrend is fighting the larger flow of the market.
What to check
- Which way is the average sloping? Rising, flat or falling decides whether trend tools apply at all. If it is flat, look for a range strategy instead.
- Is the bigger timeframe trending up? Check that its close is above the 20 EMA and the 20 EMA is above the 50 EMA. If not, a long trade is going against the larger trend and deserves a smaller size or a pass.
- Has the candle closed? Only count a cross or a reclaim once the candle has finished. Mid-candle moves often reverse.
- How far is price from the average? Price far above a rising 20 EMA is stretched, and buying there puts the logical stop a long way off. Waiting for a pullback toward the line gives a tighter, cleaner stop.
- Is the market ranging? If the fast and slow averages have crossed several times recently, crossover signals are likely to whipsaw. Stand aside until one side clearly takes over.
- Where is the stop, really? Put it past the swing low or the structure plus a 0.2 ATR buffer, not on the moving average. Then size the position from that distance.
- Did you test the exact version you will trade? SMA or EMA, which lengths, which timeframe, fees included. Small changes give very different results, so test before trusting any of them.
Nothing on this site is financial advice. Crypto is volatile, and leverage can wipe out an account even when the moving averages point the right way. For a full map of what to learn next, start at crypto trading for beginners, or look up any term in the glossary.