Simple Moving Average (SMA): What It Is and the Formula (2024)

What Is a 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.

Key Takeaways

  • Simple moving averages calculate the average of a range of prices by the number of periods within 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 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).

Simple Moving Average (SMA): What It Is and the Formula (1)

The formula for SMA is:

SMA=A1+A2+...+Annwhere:An=thepriceofanassetatperiodnn=thenumberoftotalperiods\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=thepriceofanassetatperiodnn=thenumberoftotalperiods

For example, this is how you would calculate the simple moving average of a security with the following closing prices over a 15-day 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 theclosing pricesfor the first 10 days as the first data point. The next data point would drop the earliest price, add the price on day 11, 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.

One of the most popular simple moving averages is the 200-day SMA. However, there is a danger to following the crowd. As The Wall Street Journal explains, since thousands of traders base their strategies around the 200-day SMA, there is a chance that these predictions could become self-fulfilling and limit price growth.

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 determine if an asset 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, indicating 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 averageis the sensitivity each one shows to changes in the data used in its calculation. More specifically, theEMA gives a higher weighting to recent prices,whilethe 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 latestprice changesthan SMAs are, which makes the results from EMAs more timely and explains why the EMA is the preferred average among many traders.

Simple Moving Average (SMA): What It Is and the Formula (2)

Limitations of Simple Moving Average

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 reflectthe current trend the security is moving with. At the same time, other traders feel that privileging certain dates over 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 the same as the first or second day's.

Similarly, the SMA relies wholly on historical data. Many people (including economists) believe thatmarkets 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.

How Are Simple Moving Averages Used in Technical Analysis?

Traders use simple moving averages (SMAs) to chart the long-term trajectory of a stock or other security, while ignoring the noise of day-to-day price movements. This allows traders to compare medium- and long-term trends over a larger time horizon. For example, if the 200-day SMA of a security falls below its 50-day SMA, this is usually interpreted as a bearish death cross pattern and a signal of further declines. The opposite pattern, the golden cross, indicates potential for a market rally.

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, equaling $11.6.

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

While a simple moving average gives 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.

Simple Moving Average (SMA): What It Is and the Formula (2024)

FAQs

Simple Moving Average (SMA): What It Is and the Formula? ›

"simple" — The simple moving average (SMA) is calculated by summing up a specified number of data points and dividing the sum by the number of data points. The SMA gives equal importance to each data point within the specified period. The resulting value represents the average price over the specified period.

What is the formula for calculating SMA? ›

Simple Moving Average (SMA) is one of the core technical indicator used by traders & investors for technical analysis of a stock, index or any securities . Simple Moving Average is calculated by adding recent closing price of a stock and than divide by number of days (time period).

What is the simple moving average formula? ›

Simple moving average

For stocks, it's calculated by adding all closing prices for a specific number of time periods, then dividing that total by the number of periods.

What is the SMA moving average? ›

A simple moving average (SMA) is a technical indicator that's calculated by adding the closing price of a stock or other security over a specific period of time and dividing the total by the appropriate number of trading days. For example, a 20-day SMA is the average closing price over the previous 20 days.

What does 50 SMA mean? ›

What Is a 50-Day Moving Average? The 50-Day Moving Average is a trendline formed by plotting over time the average of the past 50 days closing prices for a stock.

How do you find the SMA? ›

To calculate a simple moving average, simply add up closing prices of a security over a certain time frame and then divide by the number of periods (i.e. trading days) observed. For instance, consider shares of XYZ stock closed at $100, $110, $120, $110, $140 over a five-day period, the 5-day SMA would be 116.

How to set SMA indicator? ›

SMA indicator formula

The SMA formula is calculated by averaging a number of past data points. Past closing prices are most often used as data points. For example, to calculate a security's 20-day SMA, the closing prices of the past 20 days would be added up, and then divided by 20.

Why do we calculate moving average? ›

Moving averages are calculated to identify the trend direction of a stock or to determine its support and resistance levels. It is a trend-following or lagging, indicator because it is based on past prices. The longer the period for the moving average, the greater the lag.

How to calculate simple moving average in Excel? ›

If you want to use Excel to calculate a moving average, here are some steps you can take:
  1. Create a time series in Excel. A time series is a data point series arranged according to a time order. ...
  2. Select "Data Analysis" ...
  3. Choose "Moving Average" ...
  4. Select your interval, input and output ranges. ...
  5. Create a graph using the values.

Is SMA a good indicator? ›

SMA is one of the core indicators in technical analysis and is usually the easiest moving average to construct. The aim of all moving averages is to establish the direction in which the price of a security is moving based on previous prices. Since SMA is constructed using past closing prices, it is a lag indicator.

Which SMA is best for swing trading? ›

50 period: The 50 moving average is the standard swing-trading moving average and is very popular. Most traders use it to ride trends because it's the ideal compromise between too short and too long term.

What SMA to use for day trading? ›

Five, eight, and 13-bar simple moving averages (SMAs) offer relatively strong inputs for day traders seeking an edge in trading the market from both the long and short sides. Moving averages work as macro filters as well, telling the observant trader the best times to stand aside and wait for more favorable conditions.

How to calculate SMA? ›

A simple moving average (SMA) is the simplest type of moving average. Basically, a simple moving average is calculated by adding up the last “X” period's closing prices and then dividing that number by X.

What does a 200-day moving average tell you? ›

The 200-day moving average is a main indicator that tells traders and investors the average closing price of a stock which is observed over 200 days. There are moving averages that span different periods based on their purpose for traders and investors.

What does 100 SMA mean? ›

The 100-day moving average is a technical indicator widely used by traders. It represents the average price of a stock over a period of 100 days or medium term.

What is the formula for SMA in special memorandum account? ›

SMA is calculated simply as the previous day's SMA +/- the change in current day cash, and +/- the current day trades' initial margin requirements. An SMA will lock in any gains realized in a client's margin account. However, the SMA balance fluctuates.

How do you calculate SMA in Excel? ›

If you want to use Excel to calculate a moving average, here are some steps you can take:
  1. Create a time series in Excel. A time series is a data point series arranged according to a time order. ...
  2. Select "Data Analysis" ...
  3. Choose "Moving Average" ...
  4. Select your interval, input and output ranges. ...
  5. Create a graph using the values.

How do you calculate the 3 month moving average? ›

To get the simple moving average (SMA) you would divide the total sales from January – March by the number of periods, which in this case would be 3 (3 months), giving you a simple average number of sales per month. This number can be used to forecast the sales of the upcoming months or period.

What is the formula for smooth moving average? ›

The Smoothed Moving Average displays data for a given period of time (N). The formula for calculating this average is as follows: SMMA(i) = (SUM(i-1) – SMMA(i-1) INPUT(i))/N where the first period is a simple moving average. See also Simple Moving Average.

Top Articles
European Private Equity Outlook 2023
Stuck in Place: Private Equity Midyear Report 2023
Myexperience Login Northwell
La connexion à Mon Compte
Es.cvs.com/Otchs/Devoted
Ashlyn Peaks Bio
Concacaf Wiki
Wmlink/Sspr
MADRID BALANZA, MªJ., y VIZCAÍNO SÁNCHEZ, J., 2008, "Collares de época bizantina procedentes de la necrópolis oriental de Carthago Spartaria", Verdolay, nº10, p.173-196.
PGA of America leaving Palm Beach Gardens for Frisco, Texas
Missing 2023 Showtimes Near Landmark Cinemas Peoria
Athens Bucket List: 20 Best Things to Do in Athens, Greece
Michaels W2 Online
I Wanna Dance with Somebody : séances à Paris et en Île-de-France - L'Officiel des spectacles
Walmart End Table Lamps
Otterbrook Goldens
I Touch and Day Spa II
National Weather Service Denver Co Forecast
Mail.zsthost Change Password
Sky X App » downloaden & Vorteile entdecken | Sky X
Best Forensic Pathology Careers + Salary Outlook | HealthGrad
Missed Connections Inland Empire
CDL Rostermania 2023-2024 | News, Rumors & Every Confirmed Roster
Busted Newspaper Fauquier County Va
Why do rebates take so long to process?
Evil Dead Rise Showtimes Near Regal Sawgrass & Imax
Sullivan County Image Mate
Employee Health Upmc
Asteroid City Showtimes Near Violet Crown Charlottesville
Fiona Shaw on Ireland: ‘It is one of the most successful countries in the world. It wasn’t when I left it’
Papa Johns Mear Me
Till The End Of The Moon Ep 13 Eng Sub
+18886727547
Metra Union Pacific West Schedule
Song That Goes Yeah Yeah Yeah Yeah Sounds Like Mgmt
Craigslist Hamilton Al
Shih Tzu dogs for sale in Ireland
Nearest Ups Office To Me
Shuaiby Kill Twitter
Aurora Il Back Pages
Cpmc Mission Bernal Campus & Orthopedic Institute Photos
Courses In Touch
Here's Everything You Need to Know About Baby Ariel
Bekkenpijn: oorzaken en symptomen van pijn in het bekken
Ups Authorized Shipping Provider Price Photos
Stitch And Angel Tattoo Black And White
Mountainstar Mychart Login
Model Center Jasmin
How to Do a Photoshoot in BitLife - Playbite
Msatlantathickdream
Basic requirements | UC Admissions
Latest Posts
Article information

Author: Jamar Nader

Last Updated:

Views: 6387

Rating: 4.4 / 5 (55 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Jamar Nader

Birthday: 1995-02-28

Address: Apt. 536 6162 Reichel Greens, Port Zackaryside, CT 22682-9804

Phone: +9958384818317

Job: IT Representative

Hobby: Scrapbooking, Hiking, Hunting, Kite flying, Blacksmithing, Video gaming, Foraging

Introduction: My name is Jamar Nader, I am a fine, shiny, colorful, bright, nice, perfect, curious person who loves writing and wants to share my knowledge and understanding with you.