What is a Moving Average and its Types?

What is a Moving Average and its Types?

In the world of investing and stock markets, you often hear terms like "Moving Average" or "MA". But, what exactly is a Moving Average? Now, imagine you’re tracking how much money you spend each day on snacks. One day you spend ₹50, the next day ₹100, the day after that ₹150, and so on. Now, you want to know how much you're spending on average each day over the last few days.

Instead of thinking about your spending on a single day, you decide to average it out over 5 days to get a clearer idea of your usual spending. So, you take your spending from the last 5 days, add it up, and then divide by 5. This gives you a number that represents your average spending. In the stock market, a Moving Average works similarly.

What is a Moving Average?

A Moving Average is a tool used to help understand how stock prices are changing over time. It takes the average price of a stock over a certain number of days or weeks, making it easier to spot trends without getting distracted by daily ups and downs.

Now imagine you're driving a car and looking at the speedometer to check how fast you're going. If you look at it every second, the speed might change a lot, making it hard to understand how fast you're really driving. But if you look at the average speed over 10 seconds, it gives you a clearer idea of your overall speed.

In this case, the "Moving Average" is like the average speed over time, which helps you see the bigger picture instead of getting confused by small changes every second.

For example, if you're looking at the stock price of Reliance Industries for the last 5 days, you’d calculate the average price for those 5 days. This gives you a smoother view of how the stock is moving, instead of just focusing on the price changes each day.

Types of Moving Averages 

There are 3 main types of Moving Averages that traders and investors use to understand how stock prices are moving over time:

Simple Moving Average (SMA)

The Simple Moving Average (SMA) is the easiest type of Moving Average. It just calculates the average stock price over a certain number of days. 

For example, you might want to calculate the average price over the last 5 days, 10 days, or even 50 days. The SMA gives you a smooth line showing how the stock price has been behaving on average.

Formula for SMA

“SMA = Sum of closing prices over a period/ Number of periods”

For example,

Let’s say you want to calculate the 5-day SMA for HDFC Bank’s stock. The closing prices for the last 5 days are:

Day Closing Price (₹)
May 30, 2025 (Day 1) 1,944.90
June 2, 2025 (Day 2) 1,932.10
June 3, 2025 (Day 3) 1,924.60
June 4, 2025 (Day 4) 1,941.20
June 5, 2025 (Day 5) 1,948.10

To calculate the 5-day SMA, you just add up the prices and divide by 5:

SMA = 1,944.90 + 1,932.10 + 1,924.60 + 1,941.20 + 1,948.10 / 5 

= 9690.9/ 5

=1938.18 (approx)

So, the 5-day SMA for HDFC Bank is ₹1938.18.

Exponential Moving Average (EMA)

The Exponential Moving Average (EMA) is a little more advanced than the SMA. The EMA gives more weight to the most recent prices, meaning it reacts faster to changes in price. This helps traders spot trends faster compared to the SMA.

Formula for EMA

“EMA = Current Price x (2 / Period+1) + Previous EMA x (1−2/ Period+1)”

For example,

Let’s say the closing price of Tata Motors stock for the previous day was ₹709.15, and the 20-day EMA was ₹707.22. The current day's closing price is ₹710.15. For a 20-day EMA:

EMA = 710.15 x (2 / 20 + 1) + 707.22 x (1−2/ 20 +1) 

= 707.50 (approx)

The key idea is that the most recent price (₹710.15) has more weight than the older prices.

Weighted Moving Average (WMA)

The Weighted Moving Average (WMA) assigns different weights to each price point in the period. The more recent prices have higher weights, and older prices get lower weights. This gives a more customized reflection of price movement than both the SMA and EMA.

Formula for WMA

“WMA = (P1 x W1) + (P2 x W2) + ⋯ +(Pn x Wn) / W1 + W2 +⋯+ Wn”​

Where,

  • Pn is the price on day n
  • Wn​ is the weight for that day.

For example,

For ICICI Bank, suppose the last 3 days of closing prices were:

Day Closing Price (₹) Weight
June 3, 2025 (Day 1) ₹1456.30  1
June 4, 2025 (Day 2) ₹1431.00 2
June 5, 2025 (Day 3) ₹1437.90 3

The WMA is calculated as:

WMA = ( 1456.30 x 1) + (1431.00 x 2 ) +( 1437.90 x 3 ) /  1 + 2 + 3 ​ 

= 1456.30 + 2862.00 + 4313.7 / 6 

= 1438.67 (approx)

Thus, the WMA for ICICI Bank is ₹1438.67.

Importance of Moving Averages

Here are the importance of moving averages in the stock market: 

  • Finding the Trend: Moving Averages help you see the overall direction of a stock. For example, if the stock price is above its 50-day average, it might mean the price is going up.  
  • Smooth Out the Bumps: Stock prices can change a lot in the short term. Moving Averages help smooth out these big ups and downs, so you can see the overall direction more clearly.  
  • Signals for Buying and Selling: Traders use Moving Averages to know when to buy or sell a stock. For example, when a short-term average (like a 50-day) crosses above a long-term average (like a 200-day), it’s seen as a buy signal. This is called the Golden Cross.  
  • Support and Resistance: Moving Averages can act like support or resistance for a stock’s price. If the price is getting close to the Moving Average, it might bounce off (support) or struggle to go through (resistance).

Pros & Cons of Moving Averages 

Here are the pros and cons:

Pros of Moving Averages  Cons of Moving Averages
  • Easy to Use: Moving Averages are simple to calculate and use, so both beginners and experienced traders can easily understand them.  
  • Shows the Trend: They help investors focus on the big picture by ignoring short-term price changes, letting you see the long-term trend.  
  • Works in Any Market: Moving Averages can be used in any type of market, like stocks, commodities, or currency trading.  
  • Helps with Timing: Moving Averages, especially when they cross over, can help traders decide the best time to buy or sell. 
  • Delayed Information: Moving Averages are based on past prices, so they are always a little behind. This means they may miss early signals of a new trend.  
  • Can Be Wrong in Choppy Markets: When the market is unclear or moving sideways, Moving Averages can give false signals or fail to predict the right direction.  
  • Slower Signals: The more days you use in a Moving Average, the slower the signal will be, which means it reacts more slowly to price changes.

Conclusion

In conclusion, a Moving Average is like a smooth line that tells you the average price of a stock over a certain period of time. It helps you see the bigger picture and understand where the stock is going, instead of worrying about every small change in price. It’s like tracking your daily spending and finding out how much you usually spend on snacks every week, so you know if you’re spending too much or too little!

About the Author

Saniya

I am a writer, and this sentence speaks louder than anything, I love to play with words because I have a passion for writing easy and good-quality content that reflects simplicity. Readers like content that is straightforward with simple language. My priority has always been to deliver content that connects with the reader.

View All Articles by Saniya

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact information

I am reachable via various platforms. Responses aren’t guaranteed. Please Do not message me asking for stock tips.

Important

Investments in Mutual Funds is subject to Market Risk. Please read all scheme-related documents carefully before investing. 

I do not sell stock tips or encourage you to buy any particular stocks or companies. I am a fundamental researcher, I analyze companies and share my point of view which should be taken from an informational point of view only. 

I am Registered with AMFI (Association of Mutual Funds in India) and my Registration No. ARN-289666

Please do your own research and consult your SEBI Registered investment advisor before making any financial investments.

Copyright: © 2023-24 Rohit Tripathi. All Rights Reserved.