Moving Averages (MA) (2024)

MOVING AVERAGES

Overview

A Moving Average is an indicator that shows the average value of a security's price over a period of time. When calculating a moving average, a mathematical analysis of the security's average value over a predetermined time period is made. As the security's price changes, its average price moves up or down.

There are five popular types of moving averages: simple (also referred to as arithmetic), exponential, triangular, variable, and weighted. Moving averages can be calculated on any data series including a security's open, high, low, close, volume, or another indicator. A moving average of another moving average is also common.

The only significant difference between the various types of moving averages is the weight assigned to the most recent data. Simple moving averages apply equal weight to the prices. Exponential and weighted averages apply more weight to recent prices. Triangular averages apply more weight to prices in the middle of the time period. And variable moving averages change the weighting based on the volatility of prices.

Interpretation

The most popular method of interpreting a moving average is to compare the relationship between a moving average of the security's price with the security's price itself. A buy signal is generated when the security's price rises above its moving average and a sell signal is generated when the security's price falls below its moving average.

The following chart shows the Dow Jones Industrial Average ("DJIA") from 1970 through 1993.

Moving Averages (MA) (1)

Also displayed is a 15-month simple moving average. "Buy" arrows were drawn when the DJIA's close rose above its moving average; "sell" arrows were drawn when it closed below its moving average.

This type of moving average trading system is not intended to get you in at the exact bottom nor out at the exact top. Rather, it is designed to keep you in line with the security's price trend by buying shortly after the security's price bottoms and selling shortly after it tops.

The critical element in a moving average is the number of time periods used in calculating the average. When using hindsight, you can always find a moving average that would have been profitable (using a computer, I found that the optimum number of months in the preceding chart would have been 43). The key is to find a moving average that will be consistently profitable. The most popular moving average is the 39-week (or 200-day) moving average. This moving average has an excellent track record in timing the major (long-term) market cycles.

The length of a moving average should fit the market cycle you wish to follow. For example if you determine that a security has a 40-day peak to peak cycle, the ideal moving average length would be 21 days calculated using the following formula:

Moving Averages (MA) (2)

Table 7
TrendMoving Average
Very Short Term5-13 days
Short Term14-25 days
Minor Intermediate26-49 days
Intermediate50-100 days
Long Term100-200 days

You can convert a daily moving average quantity into a weekly moving average quantity by dividing the number of days by 5 (e.g., a 200-day moving average is almost identical to a 40-week moving average). To convert a daily moving average quantity into a monthly quantity, divide the number of days by 21 (e.g., a 200-day moving average is very similar to a 9-month moving average, because there are approximately 21 trading days in a month).

Moving averages can also be calculated and plotted on indicators. The interpretation of an indicator's moving average is similar to the interpretation of a security's moving average: when the indicator rises above its moving average, it signifies a continued upward movement by the indicator; when the indicator falls below its moving average, it signifies a continued downward movement by the indicator.

Indicators which are especially well-suited for use with moving average penetration systems include the MACD, Price ROC, Momentum, and Stochastics.

Some indicators, such as short-term Stochastics, fluctuate so erratically that it is difficult to tell what their trend really is. By erasing the indicator and then plotting a moving average of the indica-tor, you can see the general trend of the indicator rather than its day-to-day fluctuations.

Whipsaws can be reduced, at the expense of slightly later signals, by plotting a short-term moving average (e.g., 2-10 day) of oscillating indicators such as the 12-day ROC, Stochas-tics, or the RSI. For example, rather than selling when the Stochastic Oscillator falls below 80, you might sell only when a 5-period moving average of the Stochastic Oscillator falls below 80.

Example

The following chart shows Lincoln National and its 39-week exponential moving average.

Moving Averages (MA) (3)

Although the moving average does not pinpoint the tops and bottoms perfectly, it does provide a good indication of the direction prices are trending.

Calculation

The following sections explain how to calculate moving averages of a security's price using the various calculation techniques.

Simple

A simple, or arithmetic, moving average is calculated by adding the closing price of the security for a number of time periods (e.g., 12 days) and then dividing this total by the number of time periods. The result is the average price of the security over the time period. Simple moving averages give equal weight to each daily price.

For example, to calculate a 21-day moving average of IBM: First, you would add IBM's closing prices for the most recent 21 days. Next, you would divide that sum by 21; this would give you the average price of IBM over the preceding 21 days. You would plot this average price on the chart. You would perform the same calculation tomorrow: add up the previous 21 days' closing prices, divide by 21, and plot the resulting figure on the chart.

Moving Averages (MA) (4)

Where:

Moving Averages (MA) (5)

Exponential

An exponential (or exponentially weighted) moving average is calculated by applying a percentage of today's closing price to yesterday's moving average value. Exponential moving averages place more weight on recent prices.

For example, to calculate a 9% exponential moving average of IBM, you would first take today's closing price and multiply it by 9%. Next, you would add this product to the value of yesterday's moving average multiplied by 91% (100% - 9% = 91%).

Moving Averages (MA) (6)

Because most investors feel more comfortable working with time periods, rather than with percentages, the exponential percentage can be converted into an approximate number of days. For example, a 9% moving average is equal to a 21.2 time period (rounded to 21) exponential moving average.

The formula for converting exponential percentages to time periods is:

Moving Averages (MA) (7)

You can use the above formula to determine that a 9% moving average is equivalent to a 21-day exponential moving average:

Moving Averages (MA) (8)

The formula for converting time periods to exponential percentages is:

Moving Averages (MA) (9)

You can use the above formula to determine that a 21-day exponential moving average is actually a 9% moving average:

Moving Averages (MA) (10)

Triangular

Triangular moving averages place the majority of the weight on the middle portion of the price series. They are actually double-smoothed simple moving averages. The periods used in the simple moving averages varies depending on if you specify an odd or even number of time periods.

The following steps explain how to calculate a 12-period triangular moving average.

  1. Add 1 to the number of periods in the moving average (e.g., 12 plus 1 is 13).

  2. Divide the sum from Step #1 by 2 (e.g., 13 divided by 2 is 6.5).

  3. If the result of Step #2 contains a fractional portion, round the result up to the nearest integer (e.g., round 6.5 up to 7).

  4. Using the value from Step #3 (i.e., 7), calculate a simple moving average of the closing prices (i.e., a 7-period simple moving average).

  5. Again using the value from Step #3 (i.e., 7) calculate a simple moving average of the moving average calculated in Step #4 (i.e., a moving average of a moving average).

Variable

A variable moving average is an exponential moving average that automatically adjusts the smoothing percentage based on the volatility of the data series. The more volatile the data, the more sensitive the smoothing constant used in the moving average calculation. Sensitivity is increased by giving more weight given to the current data.

Most moving average calculation methods are unable to compensate for trading range versus trending markets. During trading ranges (when prices move sideways in a narrow range) shorter term moving averages tend to produce numerous false signals. In trending markets (when prices move up or down over an extended period) longer term moving averages are slow to react to reversals in trend. By automatically adjusting the smoothing constant, a variable moving average is able to adjust its sensitivity, allowing it to perform better in both types of markets.

A variable moving average is calculated as follows:

Moving Averages (MA) (11)

Where:

Moving Averages (MA) (12)

Different indicators have been used for the Volatility Ratio. I use a ratio of the VHF indicator compared to the VHF indicator 12 periods ago. The higher this ratio, the "trendier" the market, thereby increasing the sensitivity of the moving average.

The variable moving average was defined by Tushar Chande in an article that appeared in Technical Analysis of Stocks and Commodities in March, 1992.

Weighted

A weighted moving average is designed to put more weight on recent data and less weight on past data. A weighted moving average is calculated by multiplying each of the previous day's data by a weight. The following table shows the calculation of a 5-day weighted moving average.
Table 8
5-day Weighted moving average
Day# Wgt
Price



Avg
1 1 * 25.00 = 25.00



2 2 * 26.00 = 52.00



3 3 * 28.00 = 84.00



4 4 * 25.00 = 100.00



5 5 * 29.00 = 145.00



Total 15 * 133.00 = 406.00 / 15 = 27.067

The weight is based on the number of days in the moving average. In the above example, the weight on the first day is 1.0 while the value on the most recent day is 5.0. This gives five times more weight to today's price than the price five days ago.

The following chart displays 25-day moving averages using the simple, exponential, weighted, triangular, and variable methods of calculation.

Moving Averages (MA) (13)


MA vs Price Crossovers Stock ScreenerAction
Price Crossed Above MA(7)
Price Crossed Above MA(13)
Price Crossed Above MA(26)
Price Crossed Above MA(50)
Price Crossed Above MA(200)
Price Crossed Below MA(7)
Price Crossed Below MA(13)
Price Crossed Below MA(26)
Price Crossed Below MA(50)
Price Crossed Below MA(200)
Price Above MA(7)
Price Above MA(13)
Price Above MA(26)
Price Above MA(50)
Price Above MA(200)
Price Below MA(7)
Price Below MA(13)
Price Below MA(26)
Price Below MA(50)
Price Below MA(200)

Moving Averages (MA) (2024)

FAQs

Moving Averages (MA)? ›

What is the moving average? The MA is a technical indicator used by traders to spot emerging and common trends in markets. It is a mathematical formula used to find averages by using data to find trends and smooth out price action by filtering out 'noise' from random fluctuations.

What is the moving average indicator MA? ›

In finance, a moving average (MA) is a stock indicator commonly used in technical analysis. The reason for calculating the moving average of a stock is to help smooth out the price data by creating a constantly updated average price.

What does ma 5 10 20 mean? ›

The 5-, 10-, 20- and 50-day moving averages are often used to spot near-term trend changes. Changes in direction by these shorter-term moving averages are watched as possible early clues to longer-term trend changes.

What is 20 ma moving average? ›

For example, a 20day simple moving average is nothing but the arithmetic mean of the 20 day closing price of the stock, similarly for 50day, 100 day and 200 day respectively. The moving averages are mainly used to determine support and resistance by the analyst.

What is the meaning of MA 20 MA 50? ›

The 20 moving average (20MA) is the short-term outlook. The 50 moving average (50MA) is the medium term outlook. The 200 moving average (200MA) is the trend bias. In a good uptrend we want to see price above the 20MA, the 20MA above the 50MA and the 50MA above the 200MA.

What is 50 ma moving average? ›

A 50-day moving average (MA) is one of the most sought-after technical indicators of trends in price movement. It is commonly used by traders to place support and resistance level for stocks. It is popular because it is a realistic and effective trend indicator.

What is the best MA for swing trading? ›

50 period: The 50 moving average is the standard swing-trading moving average and is very popular. Most traders use it to ride trends because it's the ideal compromise between too short and too long term.

Should I use EMA or MA? ›

Ultimately, it comes down to personal preference. Plot an EMA and SMA of the same length on a chart and see which one helps you make better trading decisions. As a general guideline, when the price is above a simple or exponential MA, then the trend is up, and when the price is below the MA, the trend is down.

What is MA 200 in stocks? ›

The 200 Day Moving Average is a long term moving average that helps determine the overall health of a stock. A 200 Day moving average is calculated by taking the closing prices for the last 200 days of any security, summing them together and dividing by 200.

What does a moving average tell you? ›

A simple moving average is a technical indicator, or tool, that tracks a security's price over a time period and plots it on a line. This essentially “smooths out” price fluctuations to give an investor a general idea where the trend is heading.

Which moving average is best? ›

But which are the best moving averages to use in forex trading? That depends on whether you have a short-term horizon or a long-term horizon. For short-term trades the 5, 10, and 20 period moving averages are best, while longer-term trading makes best use of the 50, 100, and 200 period moving averages.

How do I choose a moving average? ›

Lengths and Timeframes

Short moving averages (5-20 periods) are best suited for short-term trends and trading. Chartists interested in medium-term trends would opt for longer moving averages that might extend 20-60 periods. Long-term investors will prefer moving averages with 100 or more periods.

What happens when 50 ma crosses 100 ma? ›

For instance, a golden cross may occur when the 50-day moving average cross the 100-day moving average. As an indicator of market momentum, it points to rising prices. As such, it is a bullish trend that alerts traders that they can expect a rallying pattern.

What does MA 100 mean? ›

A 100-day Moving Average (MA) is the average of closing prices of the previous 100 days or 20 weeks. It represents price trends over the mid-term.

Why is MA 50 important? ›

It's simply a security's average closing price over the previous 50 days. The primary reason behind the 50-day moving average is popular is because it's a realistic and effective trend indicator in the stock market.

What is moving average 200 ma? ›

A 200-day Moving Average (MA) is simply the average closing price of a stock over the last 200 days. Moving averages vary in their duration depending on the purpose they are used for by stock traders. Moving averages are trend indicators of price behaviour over some time.

Is MA Cross a good indicator? ›

In conclusion, moving average crossover strategies can be powerful tools for traders to identify trend changes and potential entry and exit points in the market. They are easy to understand and implement, making them accessible to traders of all skill levels.

What is the MA indicator in Tradingview? ›

Moving Average (MA) is a price based, lagging (or reactive) indicator that displays the average price of a security over a set period of time. A Moving Average is a good way to gauge momentum as well as to confirm trends, and define areas of support and resistance.

When to use MA model? ›

You would choose an AR model if you believe that previous observations have a direct effect on the time series. You would choose an MA model if you believe that the weighted sum of differences (errors) have a direct effect on the time series.

Top Articles
Latest Posts
Article information

Author: Edmund Hettinger DC

Last Updated:

Views: 6437

Rating: 4.8 / 5 (58 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Edmund Hettinger DC

Birthday: 1994-08-17

Address: 2033 Gerhold Pine, Port Jocelyn, VA 12101-5654

Phone: +8524399971620

Job: Central Manufacturing Supervisor

Hobby: Jogging, Metalworking, Tai chi, Shopping, Puzzles, Rock climbing, Crocheting

Introduction: My name is Edmund Hettinger DC, I am a adventurous, colorful, gifted, determined, precious, open, colorful person who loves writing and wants to share my knowledge and understanding with you.