A smoothed line of average price that helps traders see the underlying trend through noisy candles.
Illustrative diagram — not live market data.
What it is
A moving average (MA) takes the average price over a chosen number of bars and plots it as a single line that updates each bar. The Simple Moving Average (SMA) weights every bar in the window equally. The Exponential Moving Average (EMA) gives more weight to recent bars, so it tracks current price more closely. Both are lagging, trend-following tools used to smooth price and make direction easier to see. They are educational aids for reading past price behaviour, not predictions of where price will go, and no indicator can remove the risk of loss in trading.
How it works
Pick a length (number of bars), for example 20. For an SMA, add up the closing prices of the last 20 bars and divide by 20; as each new bar forms, the oldest price drops out and the newest comes in, so the line slides forward. An EMA also averages recent prices, but instead of treating all bars equally it applies a smoothing factor derived from the length (commonly 2 / (length + 1)) that fades older bars exponentially, so the most recent prices count more. The result: a shorter length hugs price and reacts fast but wiggles more; a longer length is smoother and slower. An EMA of the same length reacts faster than the SMA because of its recency weighting. Because every value depends on past bars, an MA always lags actual price.
How traders read it
Slope and side: traders often read price holding above a rising MA as a sign the recent trend is up, and price below a falling MA as a sign it is down. The MA describes what price has been doing, not what it will do.
Length sets sensitivity: shorter MAs (e.g. 10-20) react quickly and change direction often; longer MAs (e.g. 50, 100, 200) are slower and are commonly watched as broader trend references.
Crossovers: when a shorter MA crosses above a longer MA, some traders read it as momentum shifting up (and the reverse for a downward cross). These are lagging events that describe moves already underway, not forecasts, and are not instructions to act.
Dynamic zones: an MA is sometimes treated as a moving area of potential support or resistance, but price can and does move straight through it.
SMA vs EMA: the EMA turns sooner and stays closer to price, which can mean earlier reactions but also more false ones; the SMA is steadier but slower. Neither is 'better' — they answer the same question with a different lag trade-off.
Remember no indicator is predictive; an MA only summarises past price, and all trading carries risk of loss.
Common settings
Lengths are chosen to match your timeframe and intent. Common references include 9/10/12 and 20 for short-term reads, 50 for an intermediate view, and 100/200 for longer-term context. The 50 and 200 are widely watched, and the 12/26 EMA pair underlies the MACD. Source is usually the close. There is no universally correct setting — shorter means faster and noisier, longer means smoother and slower.
Strengths
Simple and transparent: easy to compute and to understand exactly what the line represents.
Cuts noise: smooths choppy candles so the underlying direction is easier to see.
Flexible: one tool adapts to any timeframe or asset just by changing the length.
Building block: feeds into many other tools (MACD, Bollinger Bands, ribbons) and pairs well with other forms of analysis.
Adjustable lag trade-off: switching between SMA and EMA, or changing length, lets you tune responsiveness versus smoothness.
Pitfalls to watch
Lag is built in: because MAs average past bars, they turn after price does. By the time the line confirms a trend, part of the move may already be over.
Whipsaws in ranges: when price moves sideways, MAs and their crossovers can flip back and forth repeatedly, producing many misleading direction changes.
Length sensitivity: results change a lot with the chosen length. A setting that looked clean on one chart or period can behave very differently on another — there is no 'best' number to assume.
Crossovers are not signals to act on: a cross only describes that one average overtook another; it is not a recommendation and is no guarantee the trend continues.
Same-name, different math: an SMA and an EMA of equal length give different values and turn at different times, so comparisons and alerts should be clear about which one is used.
Source and data matter: changing the price source (e.g. close vs hl2) or the bar timeframe changes the line, so settings should be stated explicitly when comparing results.
Pro tip: Match the MA to your timeframe and decide up front whether you want responsiveness (shorter length or EMA) or stability (longer length or SMA) — then judge it on the whole price context, not the line alone. MAs tend to add the most clarity in trending conditions and the least in sideways ranges, where their signals tend to whipsaw. This is educational context only, not advice to trade.