Moving Average
Moving averages are calculations that smooth price action to reveal the underlying trend. The following discussion uses daily closing prices to illustrate various moving average calculations.
There are several types of moving averages. The most basic is the simple moving average (SMA), which is the sum of closing prices over a particular period divided by the number of days in that period.
For example, a five-day simple moving average would be the sum of the closing prices of the five most recent trading days, divided by five; a 20-day moving average would be the sum of the 20 most recent closing prices divided by 20, and so on. Each day the most recent closing price is added to the equation and the most distant day is dropped off.
A weighted moving average (WMA), the most simple of which is referred to as a linearly weighted moving average, multiplies closing prices by a weighting factor that emphasizes recent price action. The oldest price in the calculation is multiplied by 1, the second oldest by 2, the third oldest by 3, etc.
For example, a standard five-day weighted moving average would multiply the closing price of the fifth most recent trading day (five trading days ago) by one, the fourth most recent trading day by two, the third most recent trading day by three, the second most recent trading day by four, and the most recent trading day by five. These products would be summed and then divided by the sum of the weighting factors (in this case, 1 + 2 + 3 + 4 + 5 = 15) to derive the linearly weighted moving average value for the current day. Other weighting schemes can be used to increase or decrease the emphasis of more recent prices.
An exponential moving average (EMA) is actually a specific type of weighted moving average. It uses a constant (a smoothing factor) between 0 and 1 in the following manner: the current closing price (C) multiplied by the smoothing constant (S) added to the product of the previous day's exponential moving average value (PEMA) and 1 minus the smoothing factor, or:
- Today's EMA = S*C + (1 - S)*PEMA
While the description and formula seems somewhat confusing, the approach is actually simpler to calculate than other moving averages because all you need is today's closing price and yesterday's EMA value.
Final notes: The preceding descriptions use daily closing prices. Moving averages can, of course, be constructed on intra-day, weekly or monthly time frames, and substituting the open, low, high or average price of a bar for the closing price.
Over the long run, most studies have shown the practical differences of the these three moving averages types to be negligible. Using one over the other can only be considered a matter of personal preference. In fact, some traders dislike standard weighted and exponential moving averages because they feel these calculations distort recent price action.
One distinct type of moving average is the Adaptive Moving Average (AMA), which dynamically adjusts the number of days in the moving average calculation to current market volatility: In high volatility-periods the number of days would increase (making the average less sensitive and less prone to whipsaws), and in low-volatility periods the number of days would decrease (making the average more sensitive to smaller price swings).
Articles related to Moving Average
July 22, 2008
Kevin Haggerty
Apple loses over 10% after its earnings announcement this week, the XLE opened strong only to pull back, and Energy and Materials moved into positive territory. See what else Kevin Haggerty sees in the markets today. (more)
May 30, 2008
Raghee Horner
It was only after I embraced market cycles that I truly began to understand what to do with all the "lines and levels" I had learned to draw on my charts. (more)
April 23, 2008
Larry Connors
When it comes to trading, if you want to succeed, you need to consistently trade stocks that have large historical edges. And you need to exit them at optimal levels. (more)
April 23, 2008
David Penn
If you were going to pick a stock to feature as our weekly Stock Spotlight, would a 9-rated stock from a 10-rated industry be something you would be interested in? (more)
April 21, 2008
David Penn
Bank of America, in the news today because of its announcement of $2 billion in write-downs and word that the company had a 77% decline in profits in the first quarter, is one of the weak stocks that traders who sell high and buy low have been able to take advantage of in recent weeks. What follows is the TradingMarkets Last Good Trade for Bank of America, an example of what our very simple approach to short term trading looks like in action. (more)
March 31, 2008
Gerald Appel AND Marvin Appel
In this first part of a two part series, Gerald Appel, the inventor of MACD, and Marvin Appel teach you how to achieve the best trading results using the popular MACD indicator. (more)
March 24, 2008
David Penn
The TradingMarkets Battle Plan for Stocks is your daily "How To" trading guide, filled with the quick, to-the-point commentary and analysis, as well as what you as a short-term stock trader need most. (more)
March 18, 2008
Tim Ord
In this article, I will introduce you to the short-term analysis that I combine with the longer-term indicators that I covered in my previous lesson. (more)
November 27, 2007
Larry Connors
Over the past 20 years the market has had significant sell-offs. 1987 was awful, 1990 hurt, 1994 also hurt, 1998 was very scary (meltdown talk), and 2000-early 2003 was just plain bad. But each lead to new market highs (record highs were hit only five weeks ago!). (more)
October 16, 2007
Ashton Dorkins
PowerRatings Platinum subscribers are provided with a daily list of stocks that include specific entry and exit levels based upon two simple rules... (more)
August 14, 2007
Thomas Long
Moving Averages may be the most popular technical indicator because they are easy to understand. (more)
June 27, 2007
Larry Connors
Many of you are probably aware of the "end-of-the month" phenomena...well, we decided to take a quantitative look at whether there was any statistical evidence to support it, and potentially profit from the behavior. (more)
<< Back to Trading Glossary Index
|