Simple moving average
Also called SMA
The plain average of the last n closing prices, recalculated each period as the oldest price drops out, for example a 20-day SMA. Every price in the window carries equal weight.

On this page· 5 sections
Add the last 20 closing prices, divide by 20, and you have a 20-day simple moving average (SMA)[1]. Repeat it the next day with the window moved forward by one bar, and the values form a line that travels with the chart[1][2].
“Simple” refers to the weighting. Every price in the window counts the same, whether it printed yesterday or 19 days ago[3]. That equal weight separates the SMA from the exponential moving average, which gives recent prices more weight[2].
How it works
SMA = (sum of the last n closes) ÷ n[1][2].
A 30-day SMA averages the last 30 closes, rolled forward one day at a time[1]. Most SMAs use closing prices, but the same arithmetic can run on highs, lows, volume or another indicator[2].
Because each value is built from past prices, the line trails the market. The longer the window, the smoother the line, the fewer its false signals and the larger the lag[1][2].
Some lengths are conventions. StockCharts calls the 200-day perhaps the most popular average and the 50-day a common choice for the medium-term trend[2]. It also notes that an SMA is a true average of the whole period, which is why some chartists prefer it for marking support and resistance[2].
Example
Say a stock’s last five closes were $20, $26, $21, $21 and $22. The 5-day SMA is $110 ÷ 5 = $22.00.
- Day six closes at $22, the same as day five. The $20 close leaves the window: ($26 + $21 + $21 + $22 + $22) ÷ 5 = $112 ÷ 5 = $22.40.
- Day seven closes at $22 again. Now the $26 spike leaves: $108 ÷ 5 = $21.60.
The price did not move for two days, yet the average rose 40 cents and then fell 80 cents. Both moves came from old prices leaving the window. With equal weights, a price counts in full until the day it drops out, then not at all.
Watch out
A sideways market is hard on any average. In a range the SMA runs through the middle of the prices, and the ASX course warns that trading its crossings there means buying high and selling low[1].
The SMA describes; it does not forecast. StockCharts puts it this way: a moving average defines the current direction rather than predicting the next one[2].
The evidence on SMA rules depends on the period tested. A 1992 study of the Dow Jones index from 1897 to 1986 found strong support for moving-average and trading-range rules[4]. The CFA Institute Research Foundation review that quotes it warns of data-mining bias[4]. It also cites a later out-of-sample test of the same rules, which found no evidence that they predicted stock markets from 1987 to 2011[4].
Sources
- ExchangeASX (Australian Securities Exchange)Shares Online Course 11: Technical analysis (version 5, November 2010)Checked November 9, 2026
- ReferenceStockCharts ChartSchoolMoving Averages - Simple and ExponentialChecked November 9, 2026
- ReferenceStockCharts ChartSchoolGlossary - SChecked November 9, 2026
- Professional bodyCFA Institute Research FoundationTechnical Analysis: Modern Perspectives (Literature Review; Scott, Carr & Cremonie, 2016)Checked November 9, 2026
