The simple moving average (SMA) is a popular technical analysis tool. Used mainly to identify trends, it is one of the most commonly used indicators across all financial markets. The SMA works by smoothing out past price data.
It shows the average price of a security over a certain length of time and is plotted as a single line on a chart. Because it is customisable over different time horizons, the SMA is used by both short-term traders and long-term investors.
For example, a short-term trader may use the 20-day simple moving average to identify short-term price trends. In contrast, a long-term investor may use the 200-day SMA to identify the long-term trend. It can be applied to stocks, currencies, indices, exchange-traded funds (ETFs) and many other investments.
The simple moving average is a lagging indicator because it is based on past prices. The longer the time period of the SMA, the greater the lag. While the SMA is a helpful technical analysis tool, it is best used along with other popular indicators such as trend lines, volume and Bollinger Bands®.
How to calculate the SMA
The simple moving average is quite easy to calculate.
- It 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.
- Similarly, to calculate a security’s 200-day SMA, the closing prices of the past 200 days would be totalled and divided by 200.
Most trading platforms offer tools which can automatically calculate the SMA. This means that traders will almost never have to manually calculate the SMA for their trades. Modern charting software will perform all the calculations instantly.
How to trade with a simple moving average
There are two main ways to use the simple moving average. The first is trend analysis. At a very basic level, traders and investors use the SMA to assess market sentiment and get an idea of whether the price of a security is trending up or down.
The basic rule for trading with the SMA is that a security trading above its SMA is in an uptrend, while a security trading below its SMA is in a downtrend. For example, a security trading above its 20-day SMA is thought to be in a short-term uptrend. In contrast, a security trading below its 20-day SMA is thought to be in a long-term downtrend. By analysing the SMA, the investor or trader can quickly assess market trends and determine whether the security is trending upward or downward.
Simple moving averages can be useful in spotting trend changes. They can also be used to identify support and resistance levels. Often, during a trend, the SMA will provide a dynamic level of support or resistance. For example, a security in a long-term uptrend may continually pull back a little, but find support at the 200-day SMA. This can also be helpful in identifying trend changes. This method can be used across many markets, including the foreign exchange, indices and stock markets.
Technical and fundamental analysis
One advantage of the simple moving average is that the tool can be used for both technical and fundamental analysis. Technical analysis is mainly used by short-term traders that are day trading. This form of analysis uses past security price patterns to predict future price movements. In contrast, fundamental analysis is favoured by long-term investors. This style of analysis focuses on factors such as company revenue, profit and growth to identify potential investments.
While the two styles are very different, the simple moving average can be used to complement both. For example, a short-term trader that trades using technical analysis may be interested in finding out whether a security is trending up or down over a 10-day period. This trader could analyse the 10-day SMA to determine the trend.
In contrast, a long-term investor that generally uses fundamental analysis might be more interested in buying an upward-trending security after a pullback to the 200-day SMA. This investor could use the SMA to find out how to calculate an attractive entry point.
What is the difference between the simple moving average (SMA) and the exponential moving average (EMA)?
The simple moving average is the simplest type of moving average indicator. It is calculated by adding up past data points and then dividing by the total number of data points. While the SMA is a very popular tool, it does have one main weakness. Some traders and investors believe that it is flawed because every data point has the same weight. They argue that recent data is more important than old data and should therefore have a higher weight. As a result, some traders and investors prefer to use another form of moving average, known as the exponential moving average (EMA).
In comparison to the SMA, the exponential moving average gives more weight to the most recent prices. This is the key difference between the SMA and EMA. The EMA is more responsive to the latest data than the SMA, because the latest data has a larger impact on the calculation. Calculating the EMA is more complicated than the SMA. However, like the SMA, most charting software available will draw an EMA line at the click of a button.
Simple moving average strategies
There are many different trend-based strategies involving the simple moving average. Two of the most popular signals that traders look for are bullish crossovers and bearish crossovers.
A bullish crossover occurs when a security’s price moves back above the SMA after being below it. This action signals that the downtrend or correction is over and a possible uptrend is starting. A bullish crossover can be used as a signal to enter a long trade.
During trending markets, this signal can be quite reliable. However, during choppy or sideways markets, the indicator can be less reliable in measuring market fluctuations. Bullish crossovers are less important when the long-term trend is down.
A bearish crossover occurs when a security’s price falls below the SMA after trading above it. This action signals that the uptrend is over and the trend may now be downward. A bearish crossover can be used as a signal to exit a long position or, alternatively, enter a short position. During choppy or sideways markets, a bearish crossover is less meaningful.
Another popular strategy with the SMA is the moving-average crossover. This occurs when a short-term SMA cross over a long-term SMA. A moving average crossover is often referred to as a golden cross or death cross.
A golden cross occurs when a security’s short-term SMA crosses above its long-term SMA. For example, the classic setup here is when the 50-day SMA crosses above the 200-day SMA. This is a bullish signal and indicates that the price of the security may continue rising. A golden cross can be used as a signal to enter a long trade.
The reverse of the golden cross is a bearish indicator known as the death cross. A death cross is identified when a security’s short-term SMA crosses below its long-term SMA. For example, the 50-day SMA might cross over and fall under the 200-day SMA. This is a bearish signal and indicates that the price of the security may continue falling. A death cross may be used as an exit strategy.
SMA trading summary
The simple moving average is a popular tool that can benefit both short-term traders and long-term investors.
The SMA smooths out price data by averaging a security’s price over a certain length of time. It is drawn as a single line on a chart and is helpful in identifying trends. The benefit of the SMA is that it quickly enables a trader or investor to determine whether a security is trending up or down.
There are a variety of different trading strategies that use the simple moving average. A bullish crossover occurs when a security’s price crosses from below the SMA to above the SMA. This is a positive signal and indicates that the trend may now be upwards. A bearish crossover occurs when a security’s price falls below the SMA from above it. This is a negative signal and indicates that the trend may now be downwards.
A golden cross occurs when a security’s short-term SMA crosses above its long-term SMA. This is a bullish signal and indicates that the trend may now be up. A death cross occurs when a security’s short-term SMA crosses below its long-term SMA. This is a bearish signal and indicates that the trend may now be down.
Simple moving averages can also be used to identify levels of support and resistance. The main drawback of the SMA is that it places an equal weight on each past data point. As a result, some traders prefer to use the exponential moving average. This indicator gives more weight to the most recent data points.
While the SMA is a useful indicator, it should not be used alone. Trades should not be based solely on the simple moving average as a tool. The SMA is best used as part of a comprehensive trading strategy. It can be combined with other technical analysis tools such as trend lines, volume, and Bollinger Bands to help traders and investors to analyse financial markets.
Source: CMC Markets UK
Disclaimer: Century Financial Consultancy LLC (“CFC”) is Limited Liability Company incorporated under the Laws of UAE and is duly licensed and regulated by the Emirates Securities and Commodities Authority of UAE (SCA). This document is a marketing material and is for informational purposes only and must not be construed to be an advice to invest or otherwise in any investment or financial product. CFC does not guarantee as to adequacy, accuracy, completeness or reliability of any information or data contained herein and under no circumstances whatsoever none of such information or data be construed as an advice or trading strategy or recommendation to deal (Buy/Sell) in any investment or financial product. CFC is not responsible or liable for any result, gain or loss, based on this information, in whole or in part.
PLEASE READ THE FOLLOWING TERMS AND CONDITIONS OF ACCESS FOR THE PUBLICATION BEFORE THE USE THEREOF.
By use of the publication and continuing to access the publication, you accept these terms and conditions and undertake to be bound by the acceptance. CFC reserves the right to amend, remove, or add to the publication and Disclaimer at any time without any prior notice to you. Such modifications shall be effective immediately. Accordingly, please continue to review this Disclaimer whenever accessing, or using the publication. Your access of, and use of the publication, after modifications to the Disclaimer will constitute your acceptance of the terms and conditions of use of the publication, as modified. If, at any time, you do not wish to accept the content of this Disclaimer, you may not access, or use the publication. Any terms and conditions proposed by you which are in addition to or which conflict with this Disclaimer are expressly rejected by CFC and shall be of no force or effect.
No information as given herein by CFC in this publication should be construed as an offer, recommendation or solicitation to purchase or dispose of any securities/financial instruments/products or to enter in any transaction or adopt any hedging, trading or investment strategy. Neither this publication nor anything contained herein shall form the basis of any contract or commitment whatsoever. Distribution of this publication does not oblige CFC to enter into any transaction.
The content of this publication should not be considered legal, regulatory, credit, tax or accounting advice. Anyone proposing to rely on or use the information contained in the publication should independently verify and check the accuracy, completeness, reliability and suitability of the information and should obtain independent and specific advice from appropriate professionals or experts regarding information contained in this publication. CFC cannot be held responsible for the impact of any transactional costs or any taxes as may be applicable on transactions.
Information contained herein is based on various sources, including but not limited to public information, annual reports and statistical data that CFC considers reliable. However, CFC makes no representation or warranty as to the accuracy or completeness of any report or statistical data made in or in connection with this publication and accepts no responsibility whatsoever for any loss or damage caused by any act or omission taken as a result of the information contained in this publication. The articles does not take into account the investment objectives, financial situations and specific needs of recipients. The recipient of this publication must make its own independent decisions regarding whether this communication and any securities or financial instruments mentioned herein, is appropriate in the light of its existing portfolio holdings and/or investment needs.
This document is a marketing material and has been prepared by individual(s), marketing and/or research personnel of CFC. It has not been prepared in accordance with legal requirements designed to promote the independence of investment research and as such is purely a marketing communication. In this publication, any opinions, news, research, analysis, prices, or other information constitute is a general market commentary, and do not constitute the opinion or advice of CFC or any form of personal or investment advice. CFC neither endorses nor guarantees offerings of third party, nor is CFC responsible for the content, veracity or opinions of third-party speakers, presenters, participants or providers. CFC will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.
Charts, graphs and related data or information provided in this publication are intended to serve for illustrative purposes only. The information contained in this publication is prepared as of a particular date and time and will not reflect subsequent changes in the market or changes in any other factors relevant to their determination. All statements as to future matters are not guaranteed to be accurate. CFC expressly disclaims any obligation to update or revise any forward-looking statements to reflect new information, events or circumstances after the date of this publication or to reflect the occurrence of unanticipated events.
Staff members/employees of CFC may provide/present oral or written market commentary or analysis to you that reflect opinions that are contrary to the opinions expressed in this research and may contain insights and reports that are inconsistent with the views expressed in this publication. Neither CFC nor any of its affiliates, group companies, directors, employees, agents or representatives assume any liability nor shall they be made liable for any damages whether direct, indirect, special or consequential including loss of revenue or profits that may arise from or in connection with the use of the information provided in this publication.
Information or data provided by means in this publication may have many inherent limitations, like module errors or lack accuracy in its historical data. Data included in the publication may rely on models that do not reflect or take into account all potentially significant factors such as market risk, liquidity risk, credit risk etc.
The use of our information, products and services should be on your own due diligence and you agree that CFC is not liable for any failure to achieve desired return on investment that is in any manner related to availing of services or products of CFC and use of our information, products and services. You acknowledge and agree that past investment performance is not indicative of the future performance results of any investment and that the information contained herein is not to be used as an indication for the future performance of any investment activity.
This publication is being furnished to you solely for your information and neither it nor any part of it may be used, forwarded, disclosed, distributed or delivered to anyone else. You may not copy, reproduce, display, modify or create derivative works from any data or information contained in this publication.
Services offered by CFC include products that are traded on margin and can result in losses that exceed deposits. Before deciding to trade on margin products, you should consider your investment objectives, risk tolerance and your level of experience on these products. Trading with leverage carries significant risk of losses and as such margin products are not suitable for every investor and you should ensure that you understand the risks involved and should seek independent advice from professionals or experts if necessary.
Ready to Invest?
Explore a new trading experience with
Century Trader App
Losses can exceed your deposits
Ready to Invest?
Explore a new trading experience with
Century Trader App
Losses can exceed your deposits