In short
What it is
A moving average (MA) is the average closing price of the last N candles, recalculated on every new candle. Take 20 candles and you get the 20 EMA or 20 SMA; take 200 and you get the long-term trend line.
A simple moving average (SMA) treats every candle the same. An exponential one (EMA) gives more weight to the latest candles, so it reacts to a reversal faster. Traders usually trade bounces off an EMA and use the 200 SMA as a global trend filter.
Why price bounces off it
A large share of market volume runs through algorithms, and many of them are built on moving averages. A big participant can't buy their full size at one price: they build the position gradually, on pullbacks within the trend. The simplest reference for that is the average price over a period.
That is why in a strong trend price touches the average again and again and bounces: that's where buy algorithms kick in. On the time & sales tape it shows up as a series of buys of the same size or with growing pressure.
Which length to choose
The length depends on the angle of the trend. The rule is simple: the steeper the trend, the shorter the average.
- 20 EMA — a sharp, active trend. Price barely leaves the line.
- 50 EMA — a smooth trend with deeper pullbacks.
- 200 EMA — the global trend. Above it the market is considered bullish, below it bearish.
A good habit is to keep two averages on the chart: a fast one for entries and a slow one as a filter. Look for longs only when price is above the 200 EMA.
How to trade off the average
In a range a moving average doesn't work: price crosses it back and forth, and every entry turns into a small loss. Identify the market phase first, then choose the tool.
Common mistakes
Trading the average in a range
The average is flat and price cuts through it. That's a sign of a range — here you need levels or oscillators, not an MA.
Hunting for the perfect length
There's no magic number. 20, 50 and 200 are popular precisely because everyone uses them, so more participants react to them.
Putting the stop right on the line
Price often pokes through the average with a wick. The stop needs a margin — behind structure, not behind the line.