Trend & directionSimple Moving Average · SMA
The plain arithmetic mean of the last N closes — the baseline trend line every other average is measured against.
Works best in trending marketsEngine-computed on a fixed sample series
What the Simple Moving Average is
The Simple Moving Average (SMA) is the most fundamental trend indicator in technical analysis — the plain arithmetic average of the last N closing prices, recalculated on every new bar. It smooths out the day-to-day noise of price to reveal the underlying direction, and it is the baseline against which every other, fancier moving average is measured. It answers a basic but essential question: is price, on average, rising, falling, or going nowhere over my chosen window? The classic lengths — 50, 100, and 200 — are watched by traders worldwide, with the 200-day SMA in particular treated as the dividing line between a bull market and a bear market. For a beginner, the SMA is simply the average price over a period drawn as a line, and its job is to turn a jagged price chart into a smooth read on trend.
How the SMA is calculated
To compute an N-period SMA, add up the closing prices of the last N bars and divide by N — every bar in the window gets exactly equal weight. On each new bar the oldest price drops out of the window and the newest drops in, so the average slides forward one step at a time, which is why it is called a moving average. A 200-day SMA, for example, is the sum of the last 200 daily closes divided by 200, updated each day. Because every price counts equally, a large move from 200 bars ago still exerts full pull on the line until it finally rolls off the back of the window. This equal weighting is the SMA's defining trait and the source of both its smoothness and its lag.
Reading the SMA, step by step
Read the SMA through two lenses: price relative to the line, and the slope of the line itself. Price above a rising SMA is a healthy uptrend; price below a falling SMA is a downtrend; and a flat SMA, regardless of which side price is on, means there is no trend and the average will chop. The slope often matters more than a single cross — a rising line tells you the average is climbing, which is the essence of an uptrend. Longer averages like the 200-day define the big-picture regime, while shorter ones like the 20- or 50-day track the active swing. Crossovers of two SMAs are classic signals: a shorter average crossing above a longer one, the golden cross, is bullish, and crossing below, the death cross, is bearish.
Best timeframes and settings
The SMA works on every timeframe, but its meaning is tied to the length chosen relative to your horizon. Position traders and investors lean on the 200-day and 50-day; swing traders favor the 20- and 50-period; intraday traders use shorter lengths like the 9 or 20 on minute charts. The core trade-off is responsiveness versus smoothness: a shorter SMA hugs price and turns quickly but whipsaws in noise, while a longer SMA is smooth and reliable but lags badly at turns. Compared with an exponential moving average of the same length, the SMA is smoother and slower because it does not weight recent prices more heavily. Choose the length to match what you are trying to see — the swing, the intermediate trend, or the primary regime.
When and where to use it
The SMA is a trend tool and earns its keep in trending markets, where price stays on one side of a sloping average for extended stretches. In sideways, rangebound markets it is at its worst, as price crosses back and forth through a flat line producing whipsaw after whipsaw. It applies universally — stocks, indices, futures, forex, crypto — and the 200-day in particular is a self-fulfilling level because so many participants watch it. Avoid using SMA crossovers as your sole system in choppy conditions, and be wary of the lag when a trend reverses sharply. The regime that rewards it is a persistent trend; the regime that punishes it is a range.
Strategies that use the SMA
The trend-pullback strategy buys dips to a rising SMA — treating the average as dynamic support — with a stop on the far side of the line, and does the reverse in a downtrend. The crossover strategy uses two SMAs, going long when a faster average such as the 50 crosses above a slower one such as the 200 and flat or short when it crosses below, a classic regime filter despite its lag. The 200-day regime strategy simply keeps you long-only when price is above the 200-day SMA and defensive when below, a filter widely used to align with the primary trend. Across these, stops are naturally placed beyond the relevant average, and the strategies work best when a separate check confirms the market is actually trending rather than ranging.
Combining the SMA with other indicators
The SMA pairs well with a momentum oscillator like RSI or MACD, which times entries within the trend the SMA defines — buying an RSI dip while price holds above a rising 50-day, for instance. Multiple SMAs together, a ribbon of 20, 50, 100, and 200, show trend alignment and strength at a glance. Volume confirms whether a cross or a bounce off the average has real participation behind it. Support and resistance levels often coincide with major SMAs, reinforcing them as decision zones. Because the SMA is a pure trend tool that says nothing about overbought or oversold, combining it with a bounded oscillator covers the dimension it lacks, while pairing it with the ADX tells you whether its signals are worth trusting in the current regime.
Where the SMA fails
The SMA's core weakness is lag: because every bar is weighted equally, it reacts slowly, and a big move that happened 200 bars ago still tugs the line today even though it is ancient history. In sideways markets price crosses the flat average repeatedly, generating whipsaw after whipsaw and a string of small losses. Crossover signals in particular arrive late, often well after the best of a move is over. Traders who trade every cross mechanically without a trend filter get ground down in ranges. The remedies are to use the SMA in trending conditions, to filter crossovers with a regime or volatility tool, to accept that it confirms trends rather than predicts them, and to size the length to the behavior you actually want to capture.
A worked example
Consider the classic golden cross. A stock has been basing after a decline, and its 50-day SMA, which had been below the 200-day, begins to rise as recent closes climb. On a given day the 50-day average crosses up through the 200-day average — the golden cross — while price trades at 120, above both lines, and the 200-day itself has flattened and started to tick up. A trend follower reads the combination of price above a rising 200-day and the bullish crossover as a regime change and goes long at 121, placing a stop below the 200-day near 112. Over the following months price trends higher to 150, riding above the rising 50-day, which acts as dynamic support on each pullback. The signal lagged the exact bottom, as SMAs always do, but it kept the trader on the right side of a large, durable trend.