Moving averages are more than the study of a sequence of numbers in successive order. Early practitioners of time series analysis were actually more concerned with individual time series numbers than they were with the interpolation of that data. Interpolation, in the form of probability theories and analysis, came much later, as patterns were developed and correlations discovered.

Once understood, various shaped curves and lines were drawn along the time series in an attempt to predict where the data points might go. These are now considered basic methods currently used by technical analysis traders. Charting analysis can be traced back to 18th Century Japan, yet how and when moving averages were first applied to market prices remains a mystery. It is generally understood that simple moving averages (SMA) were used long before exponential moving averages (EMA), because EMAs are built on SMA framework and the SMA continuum was more easily understood for plotting and tracking purposes. (Would you like a little background reading? Check out Moving Averages: What Are They?)

Simple Moving Average (SMA)
Simple moving averages became the preferred method for tracking market prices because they are quick to calculate and easy to understand. Early market practitioners operated without the use of the sophisticated chart metrics in use today, so they relied primarily on market prices as their sole guides. They calculated market prices by hand, and graphed those prices to denote trends and market direction. This process was quite tedious, but proved quite profitable with confirmation of further studies.

To calculate a 10-day simple moving average, simply add the closing prices of the last 10 days and divide by 10. The 20-day moving average is calculated by adding the closing prices over a 20-day period and divide by 20, and so on.

This formula is not only based on closing prices, but the product is a mean of prices - a subset. Moving averages are termed "moving" because the group of prices used in the calculation move according to the point on the chart. This means old days are dropped in favor of new closing price days, so a new calculation is always needed corresponding to the time frame of the average employed. So, a 10-day average is recalculated by adding the new day and dropping the 10th day, and the ninth day is dropped on the second day. (For more on how charts are used in currency trading, check out our Chart Basics Walkthrough.)

Exponential Moving Average (EMA)
The exponential moving average has be refined and more commonly used since the 1960s, thanks to earlier practitioners' experiments with the computer. The new EMA would focus more on most recent prices rather than on a long series of data points, as the simple moving average required.

To Calculate an EMA

Current EMA= ((Price(current) - previous EMA)) X multiplier) + previous EMA.

The most important factor is the smoothing constant that = 2/(1+N) where N = the number of days.

A 10-day EMA = 2/( 10+1) = 18.8

This means a 10-period EMA weights the most recent price 18.8%, a 20-day EMA 9.52 % and 50-day EMA 3.92% weight on the most recent day. The EMA works by weighting the difference between the current period's price and the previous EMA, and adding the result to the previous EMA. The shorter the period, the more weight applied to the most recent price.

Fitting Lines
By these calculations, points are plotted, revealing a fitting line. Fitting lines above or below the market price signify that all moving averages are lagging indicators, and are used primarily for following trends. They don't work well with range markets and periods of congestion because the fitting lines fail to denote a trend due to a lack of evident higher highs or lower lows. Plus, fitting lines tend to remain constant without hint of direction. A rising fitting line below the market signifies a long, while a falling fitting line above the market signifies a short. (For a complete guide, read our Moving Average Tutorial.)

The purpose of employing a simple moving average is to spot and measure trends by smoothing the data using the means of several groups of prices. A trend is spotted and extrapolated into a forecast. The assumption is that prior trend movements will continue. For the simple moving average, a long-term trend can be found and followed much easier than an EMA, with reasonable assumption that the fitting line will hold stronger than an EMA line due to the longer focus on mean prices.

An EMA is used to capture shorter trend moves, due to the focus on most recent prices. By this method, an EMA supposed to reduce any lags in the simple moving average so the fitting line will hug prices closer than a simple moving average. The problem with the EMA is this: Its prone to price breaks, especially during fast markets and periods of volatility. The EMA works well until prices break the fitting line. During higher volatility markets, you could consider increasing the length of the moving average term. One can even switch from an EMA to an SMA, since the SMA smoothes out the data much better than an EMA due to its focus on longer-term means.

Trend-Following Indicators
As lagging indicators, moving averages serve well as support and resistance lines. If prices break below a 10-day fitting line in an upward trend, chances are good that the upward trend may be waning, or at least the market may be consolidating. If prices break above a 10-day moving average in a downtrend, the trend may be waning or consolidating. In these instances, employ a 10- and 20- day moving average together, and wait for the 10-day line to cross above or below the 20-day line. This determines the next short-term direction for prices.

For longer term periods, watch the 100- and 200-day moving averages for longer term direction. For example, using the 100- and 200-day moving averages, if the 100-day moving average crosses below the 200-day average, it's called the death cross, and is very bearish for prices. A 100-day moving average that crosses above a 200-day moving average is called the golden cross, and is very bullish for prices. It doesn't matter if an SMA or an EMA is used, because both are trend-following indicators. It's only in the short-term that the SMA has slight deviations from its counterpart, the EMA.

Moving averages are the basis of chart and time series analysis. Simple moving averages and the more complex exponential moving averages help visualize the trend by smoothing out price movements. Technical analysis is sometimes referred to as an art rather than a science, both of which take years to master. (Learn more in our Technical Analysis Tutorial.)

Related Articles
  1. Chart Advisor

    3 Charts That Suggest Now Is The Time To Invest In Real Estate (VNQ, SPG,PSA)

    Real estate assets have some of the strongest uptrends around. We'll take a look at three candidates poised for a move higher.
  2. Chart Advisor

    Stocks With More Upside Due to Bear Traps (TAP, SPY)

    A bear trap is a pattern that typically leads to at least a short-term rise in prices. Here are stocks exhibiting the pattern.
  3. Stock Analysis

    3 Risks U.S. Equities Face in 2016

    Find out why the probability of a U.S. stock bear market is increasing in 2016 and what the greatest risks are to the bull market that is almost 7 years old.
  4. Active Trading Fundamentals

    New Traders: Trade the Market in 5 Steps

    New traders shouldn’t throw money at securities without knowing why prices move. Follow these five steps to tilt the odds in your favor.
  5. Chart Advisor

    Watch For a Bounce in These Emerging Markets (BRF, PEK)

    While downtrends are clearly in control of the direction of many emerging market ETFs, short-term indicators suggest a bounce higher could be in the cards.
  6. Investing Basics

    Valuation Models: Apple’s Stock Analysis With CAPM

    The capital asset pricing model, or the CAPM, estimates the expected return of an asset based on the systematic risk of the asset’s return.
  7. Stock Analysis

    Will "FANG" Stocks Outperform in 2016?

    Facebook held the most bullish accumulation-distribution pattern into year’s end, telling investors to focus on this issue in 2016.
  8. Chart Advisor

    Watch For Stock Breakouts Here

    Four stocks with potential breakouts across various time frames and pattern.
  9. Chart Advisor

    Stocks At Buy Points In Healthy Uptrends

    These stocks are in healthy long-term uptrends, and a recent pullback presents a buying opportunity.
  10. Chart Advisor

    The Uptrend Is Reversing In Financials

    Active traders are turning to financials because the close below several key long-term support levels suggest that the uptrend is about to reverse,
  1. What is the Wide-Ranging Days formula and how is it calculated?

    A wide-ranging day is simply a trading session in which price's true range is particularly large compared to its past performance. ... Read Full Answer >>
  2. What are the differences between an Exponential Moving Average (EMA) and a Double ...

    Technical analysts and traders use moving averages to help identify trends in security prices. There are different types ... Read Full Answer >>
  3. What are common strategies traders implement when using the Demarker Indicator?

    The DeMark indicator is predominantly applied as a secondary tool of technical analysis. Traders and analysts use the DeMark ... Read Full Answer >>
  4. What is Fibonacci retracement, and where do the ratios that are used come from?

    Fibonacci retracement is a very popular tool among technical traders and is based on the key numbers identified by mathematician ... Read Full Answer >>
  5. What are some of the most common technical indicators that back up Doji patterns?

    The doji candlestick is important enough that Steve Nison devotes an entire chapter to it in his definitive work on candlestick ... Read Full Answer >>
  6. Tame Panic Selling with the Exhausted Selling Model

    The exhausted selling model is a pricing strategy used to identify and trade based off of the price floor of a security. ... Read Full Answer >>
Hot Definitions
  1. Flight To Quality

    The action of investors moving their capital away from riskier investments to the safest possible investment vehicles. This ...
  2. Discouraged Worker

    A person who is eligible for employment and is able to work, but is currently unemployed and has not attempted to find employment ...
  3. Ponzimonium

    After Bernard Madoff's $65 billion Ponzi scheme was revealed, many new (smaller-scale) Ponzi schemers became exposed. Ponzimonium ...
  4. Quarterly Earnings Report

    A quarterly filing made by public companies to report their performance. Included in earnings reports are items such as net ...
  5. Dark Pool Liquidity

    The trading volume created by institutional orders that are unavailable to the public. The bulk of dark pool liquidity is ...
Trading Center