Wednesday, October 27, 2010

Exponential Moving Average (EMA)


This moving average calculation uses a smoothing factor to place a higher weight on recent data points. Having an understanding of the calculation is not generally required for most traders because most charting packages do the calculation for you. The most important thing to remember about the exponential moving average is that it is more responsive to new information relative to the simple moving average. This responsiveness is one of the key factors of why this is the moving average of choice among many technical traders. As you can see in figure above, a 15-period EMA rises and falls faster than a 15-period SMA. This slight difference doesn’t seem like much, but it is an important factor to be aware of since it can affect returns.

The exponential moving average has been 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.


EMA Calculation

Exponential moving averages reduce the lag by applying more weight to recent prices. The weighting applied to the most recent price depends on the number of periods in the moving average. There are three steps to calculating an exponential moving average. First, calculate the simple moving average. An exponential moving average (EMA) has to start somewhere so a simple moving average is used as the previous period's EMA in the first calculation. Second, calculate the weighting multiplier. Third, calculate the exponential moving average. The formula below is for a 10-day EMA.

SMA: 10 period sum / 10

Multiplier: (2 / (Time periods + 1) ) = (2 / (10 + 1) ) = 0.1818 (18.18%)

EMA: {Close - EMA(previous day)} x multiplier + EMA(previous day).

A 10-period exponential moving average applies an 18.18% weighting to the most recent price. A 10-period EMA can also be called an 18.18% EMA. A 20-period EMA applies a 9.52% weighing to the most recent price (2/(20+1) = .0952). Notice that the weighting for the shorter time period is more than the weighting for the longer time period. In fact, the weighting drops by half every time the moving average period doubles.




No comments:

Post a Comment