Profil | 
Profil Facebook A Kurnia Putra

In order to reduce the lag in simple moving averages, technicians often use exponential moving averages (also called exponentially weighted moving averages). EMA's reduce the lag by applying more weight to recent prices relative to older prices. The weighting applied to the most recent price depends on the specified period of the moving average. The shorter the EMA's period, the more weight that will be applied to the most recent price. For example: a 10-period exponential moving average weighs the most recent price 18.18% while a 20-period EMA weighs the most recent price 9.52%. As we'll see, the calculating and EMA is much harder than calculating an SMA. The important thing to remember is that the exponential moving average puts more weight on recent prices. As such, it will react quicker to recent price changes than a simple moving average. Here's the calculation formula.

Exponential Moving Average Calculation

Exponential Moving Averages can be specified in two ways - as a percent-based EMA or as a period-based EMA. A percent-based EMA has a percentage as it's single parameter while a period-based EMA has a parameter that represents the duration of the EMA.

The formula for an exponential moving average is:

EMA(current) = ( (Price(current) - EMA(prev) ) x Multiplier) + EMA(prev)

For a percentage-based EMA, "Multiplier" is equal to the EMA's specified percentage. For a period-based EMA, "Multiplier" is equal to 2 / (1 + N) where N is the specified number of periods.

For example, a 10-period EMA's Multiplier is calculated like this:

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

This means that a 10-period EMA is equivalent to an 18.18% EMA.

Note: StockCharts.com only support period-based EMA's.

Below is a table with the results of an exponential moving average calculation for Eastman Kodak. For the first period's exponential moving average, the simple moving average was used as the previous period's exponential moving average (yellow highlight for the 10th period). From period 11 onward, the previous period's EMA was used. The calculation in period 11 breaks down as follows:

(C - P) = (57.15 - 59.439) = -2.289

(C - P) x K = -2.289 x .181818 = -0.4162

( (C - P) x K) + P = -0.4162 + 59.439 = 59.023

table

*The 10-period simple moving average is used for the first calculation only. After that the previous period's EMA is used.

(Download this table as an Excel spreadsheet)

Note that, in theory, every previous closing price in the data set is used in the calculation of each EMA that makes up the EMA line. While the impact of older data points diminishes over time, it never fully disappears. This is true regardless of the EMA's specified period. The effects of older data diminish rapidly for shorter EMA's. than for longer ones but, again, they never completely disappear.

Simple Versus Exponential

From afar, it would appear that the difference between an exponential moving average and a simple moving average is minimal. For this example, which uses only 20 trading days, the difference is minimal, but a difference nonetheless. The exponential moving average is consistently closer to the actual price. On average, the EMA is 3/8 of a point closer to the actual price than the SMA.

From day 10 to day 20, the EMA was closer to the price than the SMA 8 out of 11 times. The average absolute difference between the exponential moving average and the current price was 1.52 and the simple moving average had an average absolute difference of 1.69. This means that on average, the exponential moving average was 1.52 point above or below the current price and the simple moving average was 1.69 points above or below the current price.

When Kodak stopped falling and started to trade flat, the SMA kept on declining. During this period, the SMA was closer to the actual price than the EMA. The EMA began to level out with the actual price, and remain further away. This was because the actual price started to level out. Because of its lag, the SMA continued to decline and nearly touched the actual price on 13-Dec.

International Business Machines (IBM) MA example chart from StockCharts.com

A comparison of a 50-day EMA and a 50-day SMA for IBM also shows that the EMA picks up on the trend quicker than the SMA. The blue arrows mark points when the stock started a strong trend. By giving more weight to recent prices, the EMA reacted quicker than the SMA and remained closer to the actual price. The gray circle shows when the trend began to slow and a trading range developed. When the change from trend to trading began, the SMA was closer to the price. As the trading range continued into 2001, both moving averages converged. In early 2001, CPQ started to trend up and the EMA was quicker to pick up on the recent price change and remain closer to the price.

Which is better?

Which moving average you use will depend on your trading and investing style and preferences. The simple moving average obviously has a lag, but the exponential moving average may be prone to quicker breaks. Some traders prefer to use exponential moving averages for shorter time periods to capture changes quicker. Some investors prefer simple moving averages over long time periods to identify long-term trend changes. In addition, much will depend on the individual security in question. A 50-day SMA might work great for identifying support levels in the NASDAQ, but a 100-day EMA may work better for the Dow Transports. Moving average type and length of time will depend greatly on the individual security and how it has reacted in the past.

The initial thought for some is that greater sensitivity and quicker signals are bound to be beneficial. This is not always true and brings up a great dilemma for the technical analyst: the trade off between sensitivity and reliability. The more sensitive an indicator is, the more signals that will be given. These signals may prove timely, but with increased sensitivity comes an increase in false signals. The less sensitive an indicator is, the fewer signals that will be given. However, less sensitivity leads to fewer and more reliable signals. Sometimes these signals can be late as well.

For moving averages, the same dilemma applies. Shorter moving averages will be more sensitive and generate more signals. The EMA, which is generally more sensitive than the SMA, will also be likely to generate more signals. However, there will also be an increase in the number of false signals and whipsaws. Longer moving averages will move slower and generate fewer signals. These signals will likely prove more reliable, but they also may come late. Each investor or trader should experiment with different moving average lengths and types to examine the trade-off between sensitivity and signal reliability.

Country Visittor

 
COMPUTER AND INTERNET CONSULTANT (c) 2008 ~ 2009 e-consult