Simple Moving Average (SMA)

Simple Moving Average (SMA)

A simple moving average (SMA) calculates the average of a selected range of prices, usually closing prices, by the number of periods in that range. ![Image](data:image/gif;charset=utf-8;base64,R0lGODlhCgAHAPQAAERERjClnO1VVP6McZycnuHi5uPk6Obn6+jp6+np6+jp7eno7enq7urq7O7v8e/v8fDw8vHx80RERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERkRERiwAAAAACgAHAEQINQAhCISAAIICCAwgPHDg4MEBhw8UPBhI0CDCARQLHkyY0aIAAAsUJFhQYEGABQYIdDzYIEJAADs=) Image by Sabrina Jiang © Investopedia 2021 The Formula for SMA is: SMA \= A 1 \+ A 2 \+ . . . \+ A n n where: A n \= the price of an asset at period  n n \= the number of total periods \\begin{aligned} &\\text{SMA}=\\dfrac{A\_1 + A\_2 + ... + A\_n}{n} \\\\ &\\textbf{where:}\\\\ &A\_n=\\text{the price of an asset at period } n\\\\ &n=\\text{the number of total periods}\\\\ \\end{aligned} SMA\=nA1+A2+...+Anwhere:An\=the price of an asset at period nn\=the number of total periods For example, this is how you would calculate the simple moving average of a security with the following closing prices over a 15-days period. Week One (5 days): 20, 22, 24, 25, 23 Week Two (5 days): 26, 28, 26, 29, 27 Week Three (5 days): 28, 30, 27, 29, 28 A 10-day moving average would average out the closing prices for the first 10 days as the first data point. The simple moving average of Tesla’s shares would equal $10 + $11 + $12 + $11 + $14 divided by 5, equalling $11.6. While a simple moving average gives an equal weight to each of the values within a time period, an exponential moving average places greater weight on recent prices. A simple moving average (SMA) is an arithmetic moving average calculated by adding recent prices and then dividing that figure by the number of time periods in the calculation average. A simple moving average (SMA) calculates the average of a selected range of prices, usually closing prices, by the number of periods in that range.

A simple moving average (SMA) calculates the average of a selected range of prices, usually closing prices, by the number of periods in that range.

What Is Simple Moving Average (SMA)?

A simple moving average (SMA) calculates the average of a selected range of prices, usually closing prices, by the number of periods in that range.

A simple moving average (SMA) calculates the average of a selected range of prices, usually closing prices, by the number of periods in that range.
A simple moving average is a technical indicator that can aid in determining if an asset price will continue or if it will reverse a bull or bear trend.
A simple moving average can be enhanced as an exponential moving average (EMA) that is more heavily weighted on recent price action.

Understanding a Simple Moving Average (SMA)

A simple moving average (SMA) is an arithmetic moving average calculated by adding recent prices and then dividing that figure by the number of time periods in the calculation average. For example, one could add the closing price of a security for a number of time periods and then divide this total by that same number of periods. Short-term averages respond quickly to changes in the price of the underlying security, while long-term averages are slower to react. There are other types of moving averages, including the exponential moving average (EMA) and the weighted moving average (WMA).

Image

Image by Sabrina Jiang © Investopedia 2021

The Formula for SMA is:

SMA = A 1 + A 2 + . . . + A n n where: A n = the price of an asset at period  n n = the number of total periods \begin{aligned} &\text{SMA}=\dfrac{A_1 + A_2 + ... + A_n}{n} \\ &\textbf{where:}\\ &A_n=\text{the price of an asset at period } n\\ &n=\text{the number of total periods}\\ \end{aligned} SMA=nA1+A2+...+Anwhere:An=the price of an asset at period nn=the number of total periods

For example, this is how you would calculate the simple moving average of a security with the following closing prices over a 15-days period.

Week One (5 days): 20, 22, 24, 25, 23

Week Two (5 days): 26, 28, 26, 29, 27

Week Three (5 days): 28, 30, 27, 29, 28

A 10-day moving average would average out the closing prices for the first 10 days as the first data point. The next data point would drop the earliest price, add the price on day 11, and then take the average, and so on. Likewise, a 50-day moving average would accumulate enough data to average 50 consecutive days of data on a rolling basis.

A simple moving average is customizable because it can be calculated for different numbers of time periods. This is done by adding the closing price of the security for a number of time periods and then dividing this total by the number of time periods, which gives the average price of the security over the time period. A simple moving average smooths out volatility and makes it easier to view the price trend of a security. If the simple moving average points up, this means that the security's price is increasing. If it is pointing down, it means that the security's price is decreasing. The longer the time frame for the moving average, the smoother the simple moving average. A shorter-term moving average is more volatile, but its reading is closer to the source data.

Special Considerations

Analytical Significance

Moving averages are an important analytical tool used to identify current price trends and the potential for a change in an established trend. The simplest use of an SMA in technical analysis is using it to quickly identify if a security is in an uptrend or downtrend. Another popular, albeit slightly more complex, analytical use is to compare a pair of simple moving averages with each covering different time frames. If a shorter-term simple moving average is above a longer-term average, an uptrend is expected. On the other hand, if the long-term average is above a shorter-term average then a downtrend might be the expected outcome.

Popular Trading Patterns

Two popular trading patterns that use simple moving averages include the death cross and a golden cross. A death cross occurs when the 50-day SMA crosses below the 200-day SMA. This is considered a bearish signal, that further losses are in store. The golden cross occurs when a short-term SMA breaks above a long-term SMA. Reinforced by high trading volumes, this can signal further gains are in store.

Simple Moving Average vs. Exponential Moving Average

The major difference between an exponential moving average (EMA) and a simple moving average is the sensitivity each one shows to changes in the data used in its calculation. More specifically, the EMA gives a higher weighting to recent prices, while the SMA assigns an equal weighting to all values.

The two averages are similar because they are interpreted in the same manner and are both commonly used by technical traders to smooth out price fluctuations. Since EMAs place a higher weighting on recent data than on older data, they are more reactive to the latest price changes than SMAs are, which makes the results from EMAs more timely and explains why the EMA is the preferred average among many traders.

Limitations of Simple Moving Average (SMA)

It is unclear whether or not more emphasis should be placed on the most recent days in the time period or on more distant data. Many traders believe that new data will better reflect the current trend the security is moving with. At the same time, other traders feel that privileging certain dates than others will bias the trend. Therefore, the SMA may rely too heavily on outdated data since it treats the 10th or 200th day's impact just as much as the first or second.

Similarly, the SMA relies wholly on historical data. Many people (including economists) believe that markets are efficient — that is, that current market prices already reflect all available information. If markets are indeed efficient, using historical data should tell us nothing about the future direction of asset prices.

What is a simple moving average?

A simple moving average is a technical indicator that equals a range of prices, often closing prices, divided by the number of time periods. Often, the simple moving average is used to show a security’s price trend. If the simple moving average is trending upwards, for example, this indicates its price is rising. The opposite is true if a security’s price trend is declining. 

How Do You Calculate a Simple Moving Average?

To calculate a simple moving average, the number of prices within a time period is divided by the number of total periods. For instance, consider shares of Tesla closed at $10, $11, $12, $11, $14 over a five day period. The simple moving average of Tesla’s shares would equal $10 + $11 + $12 + $11 + $14 divided by 5, equalling $11.6.

What Is the Difference Between a Simple Moving Average and an Exponential Moving Average?

While a simple moving average gives an equal weight to each of the values within a time period, an exponential moving average places greater weight on recent prices. Exponential moving averages are typically seen as a more timely indicator of a price trend, and because of this, many traders prefer using this over a simple moving average. Common short-term exponential moving averages include the 12-day and 26-day. The 50-day and 200-day exponential moving averages are used to indicate long-term trends.

Related terms:

Closing Price

Even in the era of 24-hour trading, there is a closing price for a stock or other asset, and it is the last price it trades at during market hours. read more

Death Cross

A death cross pattern is defined as that which occurs when a security's short-term moving average drops below its long-term moving average. read more

Exponential Moving Average (EMA)

An exponential moving average (EMA) is a type of moving average that places a greater weight and significance on the most recent data points. read more

Golden Cross

A golden cross is a candlestick pattern that is a bullish signal in which a relatively short-term moving average crosses above a long-term moving average read more

Guppy Multiple Moving Average (GMMA)

The Guppy Multiple Moving Average (GMMA) is a technical indicator used to anticipate a breakout trend in the price of an asset.  read more

Moving Average Convergence Divergence (MACD)

Moving Average Convergence Divergence (MACD) is defined as a trend-following momentum indicator that shows the relationship between two moving averages of a security's price. read more

Moving Average (MA)

A moving average (MA) is a technical analysis indicator that helps smooth out price action by filtering out the “noise” from random price fluctuations. read more

Moving Average Ribbon

A moving average ribbon is a series of moving averages of different lengths plotted on the same chart to show support and resistance levels, as well as trend strength and reversals. read more

Price Change

A price change is the difference between a security's closing price on a trading day and its closing price on the previous trading day. read more

Qstick Indicator and Uses

The Qstick Indicator is a technical analysis indicator developed by Tushar Chande to show buying and selling pressure over time. read more