logo-lakshmshree
Posted on  October 30, 2026 under : by Kaashika Jaiswal

What Is Moving Average? Meaning, Types, Formula and Uses

Price charts move up and down all day. Small swings can hide the real direction of a stock. Traders need a simple way to cut through this noise. That is where MA helps. So, what is moving average (MA), and why do so many traders rely on it? In simple words, it is a line that smooths out price swings and shows the trend.

This guide explains its meaning, formula and types. You will also learn how to read one on a chart.

  • What is moving average? It is the average price of a stock over a set number of candles. It updates as each new candle forms.
  • Formula: Add the prices and divide by the number of candles.
  • Candles, not just days: The number counts candles on your chart. A 20 MA on a 5-minute chart and a daily chart cover very different periods.
  • SMA vs EMA: SMA treats every candle equally. EMA gives more weight to recent prices.
  • Lagging indicator: MA confirms a trend. It works best in trending markets and can give false signals in sideways ones.
  • Best practice: Use it with other tools, such as support and resistance.

It is a technical analysis tool that shows the average price of a stock over a chosen number of candles.

Each time a new candle closes, the oldest candle drops out. The newest one comes in. The window keeps "moving" forward. That is how the tool gets its name.

Most traders use the closing price. It shows where buyers and sellers settled at the end of a candle.

The result is a smooth line on your chart. It removes small ups and downs. You can then see whether a stock is rising, falling or going nowhere.

The indicator is built from past prices. So it is a lagging indicator. It confirms a trend instead of predicting one. Think of it as a rear-view mirror. It shows where the price has been, and that often hints at where it is heading.

The formula for a simple moving average is:

Here, P is the closing price of each candle. n is the number of candles.

A simple example

Take a 5-candle MA on a daily chart. The last five closing prices are ₹102, ₹104, ₹103, ₹107 and ₹109.

  • Sum of prices = 525
  • MA = 525 ÷ 5 = ₹105

The next day, the stock closes at ₹110. Drop the oldest price (₹102) and add the new one.

  • New set: ₹104, ₹103, ₹107, ₹109, ₹110
  • Sum of prices = 533
  • MA = 533 ÷ 5 = ₹106.60

The average moved from ₹105 to ₹106.60. Join these points over many days and you get the line.

Charting platforms do this for you. But knowing the maths helps you trust what you see.

Many beginners think a "20 MA" always means 20 days. It does not.

The number is how many candles are on the chart you are viewing. The time each candle covers, depends on the time frame.

Here is what a 20 MA covers on different charts:

Chart time frameWhat "20 MA" averages  Time covered
5-minuteLast 20 five-minute candles100 minutes
1-hourLast 20 one-hour candles20 trading hours
DailyLast 20 daily candles20 trading days
WeeklyLast 20 weekly candles20 weeks

So, a "50-day moving average" is simply a 50 MA on a daily chart.

Be careful here. A 50 MA on a weekly chart is not the same as a 50-day MA. It covers 50 weeks. Always check your time frame before reading a signal.

Also, the latest value keeps changing until the current candle closes.

There are three common types of MA. They differ in how they treat each candle.

Simple Moving Average (SMA)

The SMA gives equal weight to every candle. In a 20 SMA, each of the 20 candles counts the same.

The line is smooth and steady. It reacts slowly to sudden price moves. Many investors use it to track long-term trends.

Exponential Moving Average (EMA)

The EMA gives more weight to recent prices. So it reacts faster than the SMA.

It uses a smoothing factor: 2 ÷ (n + 1). For a 20-candle EMA, that is about 0.095. You do not need to work this out by hand. Charts calculate it instantly.

Active traders often prefer the EMA. It follows price more closely and shows changes sooner.

Weighted Moving Average (WMA)

The WMA also favours recent data. The newest candle gets the highest weight. The weights then fall in a fixed pattern for older candles.

It is more responsive than the SMA. Many beginners start with the SMA or EMA first, and add the WMA later.

what is moving average
FeatureSMAEMA
Weight on candlesEqualMore on recent candles
Speed of reactionSlowerFaster
Look of the lineSmootherCloser to price
SignalsFewer and laterEarlier, but more false ones
Best suited forLong-term trendsShort-term trading

Neither is better in every case. Pick the one that fits your style and time frame.

what is moving average

Reading the indicator is simple. Look at three things.

Read the slope

The direction of the line tells you the trend.

  • Rising line: uptrend
  • Falling line: downtrend
  • Flat line: sideways market

Check the price position

See where the price sits compared to the line.

  • Price above the line: buyers are in control
  • Price below the line: sellers are in control

Here is an example. A stock trades at ₹250. Its 50 MA is at ₹240 and rising. The price is above a rising line. That points to an uptrend.

Now say the stock closes below ₹240 and the line starts to turn down. The trend may be losing strength.

Spot support and resistance

In an uptrend, price often dips to the line and bounces back. The line acts like a floor. In a downtrend, the same line can act like a ceiling.

This is not guaranteed. Treat the line as a zone, not an exact level.

Traders often plot two moving averages on one chart. One is short-term. The other is long-term. The point where they cross gives a signal.

  • Golden cross: The 50-period MA crosses above the 200-period MA. It is seen as a bullish signal.
  • Death cross: The 50-period MA crosses below the 200-period MA. It is seen as a bearish signal.

On a daily chart, these are often called the 50-day and 200-day averages.

A crossover comes after a move has already started. So it confirms a trend. It does not predict one.

In a sideways market, the lines cross again and again. This creates false signals. Be careful during such phases.

There is no single best number. The right length depends on your goal.

  • Short-term (9 or 20): Suits intraday and quick swing views.
  • Medium-term (50): Suits trends over a few weeks to months on a daily chart.
  • Long-term (100 to 200): Suits long-term investing views.

Shorter lengths give more signals. Longer lengths give fewer, but steadier ones.

Test your choice on past data before you use it. Also, keep your length and time frame the same while you test.

Traders use this indicator in few simple ways. Here are three beginner-friendly strategies. Treat them as learning tools and test each one before using real money.

1. Price crossover strategy

This uses a single moving average, such as a 50 MA on the daily chart.

  • Buy idea: Price closes above the line.
  • Exit idea: Price closes below the line.

It is simple, but it gives many false signals in sideways markets. Use closing prices, not intraday spikes.

2. Two MA crossover strategy

Plot a short MA (such as 20) and a long MA (such as 50) on the same chart.

  • Buy idea: The short MA crosses above the long MA.
  • Exit idea: The short MA crosses below the long MA.

This gives fewer signals than the price crossover. The golden cross is a long-term version of the same idea.

3. Pullback to the moving average strategy

In a clear uptrend, price often dips back to the line and then moves up again.

  • Wait for a trend: price above a rising 50 MA.
  • Watch for a dip near the line and a candle that closes higher.
  • Place a stop-loss just below the line.

Here is an example. A stock is rising and its 50 MA is at ₹240. Price dips from ₹262 to ₹243, then a candle closes higher. A trader may see this as a pullback entry, with a stop-loss below ₹240. If price closes under the line, the idea fails and the trader exits.

Tips for using these strategies

  • Trade with the trend. Avoid trades when the line is flat.
  • Always set a stop-loss.
  • Confirm signals with volume or support and resistance.
  • Backtest on past charts before you trade.
  • Cuts through noise. It smooths out small price jumps. You see the broader move instead of daily ups and downs.
  • Shows the trend direction. The slope tells you if a stock is rising, falling or flat. Even a beginner can read it at a glance.
  • Works on any time frame. You can use it on a 5-minute chart or a weekly chart. It suits intraday traders and long-term investors alike.
  • Marks support and resistance. Price often reacts near the line. This gives you zones to watch for entries and exits.
  • Gives clear signals. Price crossing the line, or two averages crossing each other, can mark a shift in trend. The golden cross and death cross are well-known examples.
  • Easy to set up. Every charting platform has it built in. You do not need to do any maths by hand.
  • It lags. It uses past prices. So signals often come after a move has begun.
  • False signals in sideways markets. Price keeps crossing the line without a clear trend. This can lead to losses.
  • Results depend on the length. A 10 MA and a 200 MA can tell very different stories.
  • Ignores the bigger picture. It does not consider news, earnings or other business factors.

To manage these limits, use it with other tools. Volume, RSI and support and resistance are common choices.

Related Reading: MACD | VWAP | Bollinger Bands

So, what is moving average? It is a simple line that averages recent prices and smooths out the noise. It helps you see the trend at a glance.

Remember that the number counts candles, not just days. Choose between SMA, EMA and WMA based on how fast you want the line to react. Use crossovers and slope as clues, not as promises.

Practise on a live chart to build confidence. Try a few lengths and time frames and see how price reacts.

1. What is moving average in simple words?

It is the average price of a stock over a set number of candles. It updates with each new candle. It smooths the price line so you can see the trend clearly.

2. Which is better, SMA or EMA?

Neither is always better. The SMA is smoother and suits long-term trends. The EMA reacts faster and suits short-term trading. Choose based on your style and time frame.

3. Is a 50 MA on a weekly chart the same as a 50-day MA?

No. It counts candles. A 50 MA on a weekly chart covers 50 weeks. A 50-day MA is a 50 MA on a daily chart and covers 50 trading days.

4. Is MA a leading or lagging indicator?

It is a lagging indicator. It uses past prices, so it confirms a trend after it starts. It does not predict future moves on its own.

5. Which moving average is best for beginners?

The SMA is a good start. It is easy to read and calculate. Beginners often try the 20 and 50 SMA on a daily chart. Move to the EMA once you are comfortable.

6. What is a good moving average?

There is no single best one. It depends on your time frame. Traders often use the 9 or 20 EMA for intraday, the 20 and 50 for swing trading, and the 50 or 200 SMA for long-term trends.

7. Can I use MA alone to trade?

It is better not to. The indicator lags and can give false signals. Pair it with volume, support and resistance or RSI. Always use a stop-loss and test your approach on past charts first.

8. Does MA work in a sideways market?

Not well. When price moves in a range, it keeps crossing the line. This creates false signals. A flat line is a hint to wait for a clear trend before trading.

Kaashika

Written by Kaashika Jaiswal

Kaashika is a social media strategist and financial content creator at Lakshmishree. She specialises in simplifying complex IPO and stock market concepts into clear, easy-to-understand content. Having created over 500+ pieces of financial content across reels, blogs, website posts and digital creatives, Kaashika helps audiences connect with the world of finance in a more accessible and engaging way.

Open Your Trading Account


Social Share

CIN No U74110MH2005PLC157942     |    Member Ship Details     |    BSE-3281     |    NSE-12817     |    MCX-55910     |    DP:IN-DP-CDSL-490-2008     |    DPID:12059100    |    SEBI Regn. No.: INZ000170330     |    Mutual Fund: ARN-77739    |    Research Analyst: registration number INH000014395
logo-lakshmshree-white
Lakshmishree Investment & Securities Ltd. was incorporated in 2005. We are a Corporate Member of NSE, BSE, MCX and Depository Participant with CDSL.
Most Popular in LISL
Copyright @ 2024 © Lakshmishree Investment & Securities Ltd. All Right Reserved.