The exponential moving average (EMA) is a weighted moving average (WMA) that gives more weighting, or importance, to recent price data than the simple moving average (SMA) does. The EMA responds more quickly to recent price changes than the SMA. The formula for calculating the EMA just involves using a multiplier and starting with the SMA.

The calculation for the SMA is very straightforward. The SMA for any given number of time periods is simply the sum of the stock's closing prices for that number of time periods, divided by that same number. So, for example, a 10-day SMA is just the sum of the closing prices for the past 10 days, divided by 10.

The three steps to calculating the EMA are:

  1. Calculate the SMA.
  2. Calculate the multiplier for weighting the EMA.
  3. Calculate the current EMA.

The mathematical formula, in this case for calculating a 10-period EMA, looks like this:

SMA: 10-period sum ÷ 10

Calculating the weighting multiplier: [2 ÷ (selected time period + 1)] = [2 ÷ (10 + 1)] = 0.1818 or 18.18%

Calculating the EMA: [Closing price-EMA (previous day)] x multiplier + EMA (previous day)

The weighting given to the most recent price is greater for a shorter-period EMA than for a longer-period EMA. For example, an 18.18% multiplier is applied to the most recent price data for a 10 EMA, whereas for a 20 EMA, only a 9.52% multiplier weighting is used. There are also slight variations of the EMA arrived at by using the open, high, low or median price instead of using the closing price.

Using the EMA: Moving Average Ribbons

Traders use moving averages in devising their trading strategies. They do this via moving average ribbons, which plot a large number of moving averages onto a price chart. Though seemingly complex based on the sheer volume of concurrent lines, ribbons create an effective and simple way of visualizing the dynamic relationship between short-, intermediate- and long-term trends. Traders and analysts rely on ribbons to identify turning points, continuations, overbought/oversold conditions, to define areas of support and resistance, and to measure price trend strengths..

Defined by their characteristic three-dimensional shape that seems to flow and twist across a price chart, moving average ribbons are very simple to create and interpret. They generate buy and sell signals whenever the moving average lines all converge at one point. Traders look to buy on occasions when shorter-term moving averages cross above the longer-term moving averages from below, and look to sell when shorter moving averages cross below from above.

To construct a moving average ribbon, simply plot a large number of moving averages of varying time period lengths on a price chart at the same time. Common parameters include eight or more moving averages and intervals that range from a two-day moving average to a 200- or 400-day moving average. For ease of analysis, keep the type of moving average consistent across the ribbon – all EMAs, for example.

When the ribbon folds – all of the moving averages converge into one close point on the chart – trend strength is likely weakening and possibly pointing to a reversal. The opposite is true if the moving averages are fanning and moving apart from each other, suggesting that prices are ranging and that a trend is strong or strengthening.

Downtrends are highlighted by shorter moving averages crossing below longer moving averages. Uptrends, conversely, show shorter moving averages crossing above longer moving averages. In these circumstances, the short-term moving averages act as leading indicators that are confirmed as longer-term averages trend towards them.

The number and type of moving averages vary considerably between traders, based on investment strategies and the underlying security or index. But EMAs are especially popular, because they give more weight to recent prices, lagging less than other averages. Some common ribbon examples involve eight separate EM lines, ranging in length from a few days to multiple months.

  1. How do I use exponential moving average (EMA) to create a forex trading strategy?

    Learn how to use the exponential moving average (EMA) to create a dynamic forex trading strategy. Read Answer >>
  2. What is the moving average convergence divergence (MACD) formula, and how is it calculated?

    Learn the formula for the moving average convergence divergence momentum indicator and find out how to calculate it and its ... Read Answer >>
  3. What are the main advantages and disadvantages of using a Simple Moving Average (SMA)?

    Examine some of the potential advantages and disadvantages involved with the use of a simple moving average or an exponential ... Read Answer >>
  4. What are the main advantages of using moving averages (MA)?

    See why moving averages have proven to be advantageous for traders and analysts and useful when applied to price charts and ... Read Answer >>
  5. How is a simple moving average calculated?

    Learn about the simple moving average, how the indicators are used, and how to calculate a stock's simple moving average ... Read Answer >>
  6. How do moving average convergence divergence (MACD) and relative strength Index (RSI) ...

    Learn the differences between the moving average convergence divergence (MACD) and the relative strength index (RSI) — indicators ... Read Answer >>
Related Articles
  1. Trading

    Simple Versus Exponential Moving Averages

    These technical indicators help traders visualize trends by smoothing out price movements, but they are based on different calculations.
  2. Investing

    Adapt The 50-Day EMA To Enhance Your Trading

    The 50-day EMA has numerous applications in price prediction, position choice & strategy building
  3. Trading

    Make This Indicator a Part Of Your Strategy

    The relationship between price, 200-day EMA, and its slope of generate useful patterns that assist in price prediction and trade management.
  4. Trading

    How to Use a Moving Average to Buy Stocks

    The moving average (MA) is a simple technical analysis tool that smooths out price data by creating a constantly updated average price.
  5. Trading

    Do Adaptive Moving Averages Lead To Better Results?

    These complex indicators can help traders interpret trend changes, but are they too good to be true?
  6. Investing

    Moving Average Bounce

    Find out how this simple trading strategy can be added into your trading arsenal.
  7. Insurance

    Two Short Sales in the Banking Sector (BAC, C)

    These two banks show major rejection at long-term resistance and could test their first quarter lows.
  8. Trading

    Measuring Stock Market Sentiment With Extreme Indicators

    Pay attention to how the exhaustion principle helps technical indicators signal trend reversals when abrupt value changes coincide with high trading volume.
  9. Trading

    Biotech Bottom Calls After Big Bounce (IBB, XBI)

    Biotech funds have bounced sharply after testing downtrend lows, setting off a wave of bottom calls.
  1. Simple Moving Average - SMA

    A simple moving average (SMA) is an arithmetic moving average ...
  2. Moving Average - MA

    A moving average (MA) is a technical analysis indicator that ...
  3. Special Memorandum Account - SMA

    A special memorandum account is an account where excess margin ...
  4. Weighted Average

    Weighted average is an average in which each observation in the ...
  5. True Strength Index - TSI

    The true strength index is a technical momentum indicator that ...
  6. Moving Average Convergence Divergence - MACD

    Moving Average Convergence Divergence (or MACD) is a trend-following ...
Trading Center