what is a simple moving average sma 
a simple moving average sma calculates the average price of an asset usually using closing prices during a specified period of days 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 investopedia sabrina jiangthe 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 an where 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 day period week one 5 days 20 22 24 25 23week two 5 days 26 28 26 29 27week three 5 days 28 30 27 29 2820 22 24 25 23 26 28 26 29 27 28 30 27 29 28 392392 15 26 13the 15 day simple moving average for this security would be 26 13 a 10 day moving average would average out the closing prices only the most recent 10 days rather than using all 15 each day when the stock market closes there is a new most recent closing price this replaces the oldest one being used and a new up to date moving average is calculated a 50 day moving average would use 50 days worth of data to compute the average price 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 movements special considerationsmoving 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 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 averagein contrasting an exponential moving average ema and a simple moving average the major difference 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 investopedia michela buttignollimitations of simple moving averageit 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 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 some economists believe that markets are efficient this is known as the efficient market hypothesis it holds 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 there are some economic and financial thinkers who support this hypothesis and plenty of others who oppose it 