Moving Average

« Back to Glossary Index

The Moving Average (MA), or Simple Moving Average (SMA), is a widely used indicator in finance, especially in the context of technical analysis of stocks, commodities, and other financial assets. It helps smooth out price data by creating a constantly updated average price.

Definition

The (Simple) Moving Average is calculated by taking the arithmetic mean of a given set of values over a specific number of periods. In the context of financial assets, these values are typically the closing prices of a stock or other asset.

Calculation

The formula for a Simple Moving Average is:

SMA = (Sum of Closing Prices Over ’N’ Periods) /

 

Where:

  • “N” is the number of periods (days, weeks, months, etc.).

Steps for Calculation

  1. Select the Time Frame (N): Decide the number of periods (N) you want to include in the moving average.
  2. Sum Up the Closing Prices: Add up the closing prices of the asset for these N periods.
  3. Divide by the Number of Periods (N): Divide the total sum of the closing prices by N.

Example

Let’s calculate a 5-day SMA for a hypothetical stock with the following closing prices over 5 days:

  • Day 1: $50
  • Day 2: $52
  • Day 3: $51
  • Day 4: $53
  • Day 5: $54

Calculation:

SMA (5-day)=50+52+51+53+545=2605=52

So, the 5-day Simple Moving Average for this stock is $52.

Usage in Financial Analysis

  • Trend Identification: SMA helps identify the direction of the trend. An upward trend is indicated when the price is above the SMA, and a downward trend is suggested when the price is below the SMA.
  • Support and Resistance Levels: SMAs can act as support in a rising market or resistance in a falling market.
  • Signal for Trading: Some traders use SMA crossovers as a signal to buy or sell. For instance, a crossover of a short-term SMA above a long-term SMA might be seen as a buy signal.

The SMA is a fundamental tool in technical analysis but should be used in conjunction with other indicators and methods to make informed trading decisions.