Simple Moving Average

Contributor, Benzinga

Want to claim 12 FREE stocks? Head over to Webull to get started.

The simple moving average (SMA) ranks as one of the easiest-to-compute technical indicators. This popular indicator smoothes out price data and can help you better identify market trends. The SMA can even provide objective signals that can assist you in selecting market entry and exit points as a trader or investor. Benzinga takes a more detailed look at this commonly used indicator below, including explaining how to calculate SMAs and what they can tell you. 

What is the Simple Moving Average?

An SMA consists of the average of a specific range of periodic market price observations. To obtain 1 data point for this average, you sum up all the price observations in the chosen range, and then divide that total by the number of time periods in the range. The average then starts “moving” because you continue to average the price data for that given range by incrementally moving forward 1 period at a time.

In most cases, technical analysts use closing prices for SMA calculations, but you could also use high, low or opening prices instead. Common observation intervals or periods used for SMAs are daily, hourly and 1-minute observations, while popular numbers of time periods used in SMA calculations include 5, 10, 50 and 200 periods. 

SMAs are generally plotted over the price action for the asset they are computed for. An example of a 20-day SMA for Apple Inc. (NASDAQ: AAPL) appears as an orange line in the upper box superimposed over the daily bar chart in the image below. 

daily bar chart

Daily bar chart for AAPL with a 20-day SMA drawn in the upper box in orange and trading volume shown in the lower indicator box. Source: BigCharts.  

What is the Simple Moving Average Formula?

The SMA is generally considered one of the most basic trend indicators, and it is quite easy to calculate by hand or using a spreadsheet.  The simple moving average formula for computing an SMA is:

​SMA=(P1​+P2​+…+Pn​​)/n

Where:

Pn = The price of an asset at observation #n.
n = The number of total observations or periods.

For example, computing a 20-day SMA of closing prices could involve calculating the average of closing prices observed over the prior 20 days. This average gives you the initial SMA result that can then be plotted on a chart superimposed over the market price for the last day that was included in the average. 

To calculate the next SMA result or data point, you remove the first price observed on day 1, add the closing price seen on day 21 and then average the resulting 20 closing prices again. That will give you the second SMA data point to plot along with the market price on day 21. 

As another example, consider the following series of 10 daily closing price observations:

P1-10= 10, 13, 15, 11, 12, 15, 17, 18, 20 and 22.

n=10 daily periods

Substituting this data into the SMA equation above yields:

SMA= (10+13+15+11+12+15+17+18+20+22)/10 = 153/10 = 15.3

On the following day, a closing price of 20 is observed. To compute the new SMA value, you remove the 10 price observation from the beginning of the series and add a 20 price observation at the end of the series. This makes the new series of 10 daily closing price observations read as follows: 

P1-10= 13, 15, 11, 12, 15, 17, 18, 20, 22 and 20.

Substituting this new data series into the SMA equation above yields:

SMA= (13+15+11+12+15+17+18+20+22+20)/10 = 163/10 = 16.3

This means that the SMA on the first day is 15.3 and that it changed to 16.3 on the following day. Since the SMA is increasing in value, that suggests the market could be in an uptrend. 

What Does the Simple Moving Average Tell You?

SMAs smooth out price data and give you an updated average price. As a result, they can help you identify the direction and magnitude of market trends. 

For example, you can compute the SMA for an asset and see whether it has a positive or negative slope. If its slope is positive, the SMA is moving higher, and the asset is in an uptrend. Conversely, if its slope is negative, the SMA is moving lower, and the asset’s price is trending downwards. 

Furthermore, SMAs can signal when a trend is strong, weakening or in the process of reversing. In a strongly trending market, the SMA generally has a steep slope in the direction of the trend. If the market was previously trending, but the trend is now weakening as it loses momentum, then the SMA will start to level out. If the market is in the process of reversing, then the SMA’s slope will eventually change direction. 

Technical analysts often use SMA crossovers to provide them with objective trading signals. To do this, you need to compute a pair of SMAs, with 1 SMA covering a shorter time frame than the other. If the shorter-term SMA is observed to cross up above the longer-term SMA, then that is a bullish or buy signal. On the other hand, if the shorter-term SMA crosses below the longer-term SMA, then that is a bearish or sell signal. 

Drawbacks of the Simple Moving Average

One of the main drawbacks of all moving averages, including SMAs, is that they can only look backward at historical price data. As a result, they are considered lagging indicators of future price action. 

Another possible downside of using SMAs computed from historical price data is that they should have no bearing on future prices or their direction if markets are indeed efficient in discounting all known information into the current price. 

Additionally, when computing an SMA, you must assign equal weights to all values. Some technical analysts think this process can overemphasize the importance of distant price data points and insufficiently emphasize closer price data points. 

They might argue that focusing equally on the entire price history covered by the SMA uses too much outdated information instead of more recent — and hence possibly more relevant — price data. Some debate exists about that point, however, since other analysts might prefer to treat all price data points equally. 

Which Moving Average is Best?

SMAs are often compared with other types of moving averages, such as exponential moving averages (EMAs). EMAs are frequently preferred by technical analysts because they are more responsive to current price action since they give more recent price data greater weight, which in turn reduces their lag. 

The best moving average to use will depend on whether you prefer to emphasize recent price data by weighting it more heavily in your analysis, in which case you might use an EMA, or if you instead want to weight each price data point in exactly the same way, which would make an SMA seem more suitable. 

Best Online Stock Brokers

Compare some of the best online stock brokers.

Claim Exclusive Offers

get started securely through Interactive Broker’s website
Best For
International Trading
N/A
1 Minute Review

This latest groundbreaking technology is IBKR GlobalAnalyst, a new trading tool that helps investors compare the rate of PEG or price-earnings growth valuations and provide more immediate and comprehensive financial metrics of stocks, globally.

Recognizing that stock selection can be challenging for investors to compare the valuations of domestic and international stocks, Interactive Brokers created GlobalAnalyst to offer investors a simple, yet powerful tool to easily evaluate investment opportunities around the world.

Using GlobalAnalyst, investors can search for stocks by region, country, industry, market capitalization and currency to uncover undervalued stocks worldwide. The resulting table displays the current market and financial metrics, including the PEG Ratio. The PEG Ratio is the PE ratio divided by the three-year compound earnings growth rate, and smaller PEG Ratios typically indicate undervalued companies.

Best For
  • Price earnings growth valuations
Pros
  • Easily evaluate investment opportunities
Cons
get started securely through Webull’s website
Best For
Intermediate Traders and Investors
N/A
1 Minute Review

Webull, founded in 2017, is a mobile app-based brokerage that features commission-free stock and exchange-traded fund (ETF) trading. It’s regulated by the Securities and Exchange Commission (SEC) and the Financial Industry Regulatory Authority (FINRA).

Webull offers active traders technical indicators, economic calendars, ratings from research agencies, margin trading and short-selling. Webull’s trading platform is designed for intermediate and experienced traders, although beginning traders can also benefit.

Webull is widely considered one of the best Robinhood alternatives.

Best For
  • Active traders
  • Intermediate traders
  • Advanced traders
Pros
  • No account maintenance fees or software platform fees
  • No charges to open and maintain an account
  • Intuitive trading platform with technical and fundamental analysis tools
Cons
  • Does not support trading in mutual funds, bonds or OTC stocks
get started securely through public.com’s website
Best For
Trading Ideas
N/A
1 Minute Review

Public.com is an investing platform that helps people be better investors. Members can build a diverse portfolio of stocks, ETFs, crypto, and soon NFT’s, art, & collectibles, all within a single platform. In addition to being an all-in-one platform, Public gives you all the information you need to make the right investment for you. This includes access to advanced data, custom company metrics, and expert analyst insights through their Public Premium membership. It doesn’t end there, in addition to the research and data on Public, you also have access to an interactive community filled with millions of investors, creators and analysts.

Public puts investors first and doesn’t sell trades to market makers or take money from Payment for Order Flow (PFOF).

 

Best For
  • New investors looking to learn how to invest
  • Experienced investors looking to grow even further
  • Building a modern portfolio of stocks, ETFs, and crypto on one platform
Pros
  • Fractional shares and crypto
  • Transparency all around, from public portfolios to company beliefs
  • Supportive, educational community
Cons
  • No investing tools like futures, options, or margins
  • Day-trading is discouraged
  • Mobile app-based platform
get started securely through CenterPoint Securities’s website
Best For
Momentum traders
N/A
1 Minute Review

CenterPoint Securities is ideal for active traders who demand access to advanced tools and services. While investors and casual traders are likely to be content with the basic offerings of traditional online brokerages, active traders will benefit from CenterPoint’s suite of advanced trading tools. If you value execution quality, access to short inventory, advanced trading platforms, and accessible customer service, CenterPoint is an excellent choice.

Best For
  • Intermediate to Advanced traders
  • High-volume traders
  • Momentum traders
  • Short sellers
Pros
  • Unrivaled access to short inventory
  • Flexible order routing for improved executions
  • Discounts for active traders
  • Advanced platform with fast executions
  • Reliable customer service
Cons
  • Not designed for beginner or low-volume traders
get started securely through Moomoo’s website
Best For
Active Traders
N/A
1 Minute Review

Moomoo is a commission-free mobile trading app available on Apple, Google and Windows devices. A subsidiary of Futu Holdings Ltd., it’s backed by venture capital affiliates of Matrix, Sequoia, and Tencent (NASDAQ: FUTU). Securities offered by Futu Inc., regulated by the Securities and Exchange Commission (SEC) and the Financial Industry Regulatory Authority (FINRA).

Moomoo is another great alternative for Robinhood. This is an outstanding trading platform if you want to dive deep into smart trading. It offers impressive trading tools and opportunities for both new and advanced traders, including advanced charting, pre and post-market trading, international trading, research and analysis tools, and most popular of all, free Level 2 quotes.

Get started right away by downloading Moomoo to your phone, tablet or another mobile device.

Best For
  • Cost-conscious traders
  • Active and Advanced traders
Pros
  • Over 8,000 different stocks that can be sold short
  • Access trading and quotes in pre-market (4 a.m. to 9:30 a.m. ET) and post-market hours (4 p.m. to 8 p.m. ET)
  • No minimum deposit to open an account.
Cons
  • No chat support
get started securely through TradeStation’s website
Best For
Futures Trading
N/A
1 Minute Review

TradeStation is for advanced traders who need a comprehensive platform. The brokerage offers an impressive range of investable assets as frequent and professional traders appreciate its wide range of analysis tools. TradeStation’s app is also equally effective, offering full platform capabilities.

Best For
  • Advanced traders
  • Options and futures traders
  • Active stock traders
Pros
  • Comprehensive trading platform and professional-grade tools
  • Wide range of tradable securities
  • Fully-operational mobile app
Cons
  • Confusing pricing structure to leave new traders with a weak understanding of what they pay
  • Cluttered layout to make navigating TradeStation’s platform more difficult than it should be

Best Stock Research Platforms

Benzinga has taken the guesswork out of finding a suitable place to research stocks by compiling a list of the best stock research platforms. Check out that list below. 

get started securely through Benzinga Pro’s website
get started securely through Stock Rover’s website
Best For
Professional Investors
N/A
1 Minute Review

Stock Rover is a comprehensive stock analysis and screening tool that gives investors access to high-quality research tools, educational content, expert analysis and more. Stock Rover goes well beyond standard analysis tools, offering account holders 1 of the most comprehensive sets of screening criteria and research qualifications that we’ve seen. For example, users can filter investment opportunities using over 650 metrics with Premium Plus access.

Stock Rover offers 4 different plan tiers, which can become confusing for new investors who aren’t exactly sure which tools they’ll use. However, free accounts offer a wide range of functionality that gives users a better feel for Stock Rover’s setup, along with a free trial of Premium Plus functionality. Getting started with a Stock Rover account is also exceptionally easy — we were able to open our free account in under 60 seconds.  

Best For
  • Professional investors who need high-quality analysis and research tools
  • Visual learners who benefit from seeing data laid out using charts and graphs
  • Anyone searching for the widest array of screening metrics
Pros
  • Incredibly comprehensive range of investment analysis tools
  • Over 650 screening criteria included on Premium Plus plans
  • Simple account opening and brokerage account linking
  • Free accounts available
Cons
  • Wide variety of plan options that can be more confusing for new investors

How to Get Started Using Simple Moving Averages

Most online trading platforms, as well as specialized websites and software programs that let you perform technical analysis, will allow you to draw price charts and add technical indicators to them. Fortunately, if you want to include SMAs in your technical analysis, just about all software of this type will support adding that very basic indicator to your price charts. 

Typically, once you have a price chart displayed, you need to choose the SMA indicator type and select a time period to compute the SMA over. You might also need to pick a color for the SMA line. That action should allow you to view the SMA’s current value and slope to use in your technical analysis.

If you found this article helpful, then please come back to Benzinga often for more expert information on other technical analysis, investing and trading topics. 

Frequently Asked Questions

Q

What is a good simple moving average?

1
What is a good simple moving average?
asked
A
1

One of the most popular SMAs for short-term technical analysis is the 10-day SMA, which covers about two 5-day trading weeks. Longer-term analysis is often done using 50- and 200-day SMAs.

answered
Q

What does the simple moving average tell you?

1
What does the simple moving average tell you?
asked
A
1

The SMA tells you the average price that was computed from a given set of sequential historical price observations. When plotted over the price action for an asset as it evolves over time, the SMA smoothes the price data and can show you the direction of the prevailing market trend. 

answered