What is a moving average in trading?

Updated 2026-11-18. Written by the TradeMoni team.

The short answer

A moving average is the average closing price over the last set number of candles, such as 20 or 50, recalculated as each new candle closes. It smooths out day-to-day noise so the direction of the trend is easier to see. Because it is built from past prices, it lags: it confirms a move after it has started and does not predict one.

How is a simple moving average calculated?

A simple moving average (SMA) adds up the last N closing prices and divides by N. When the next candle closes, the oldest price drops out, the newest comes in, and the average is worked out again, which is why the line "moves".

Example: a 5-day simple moving average

  • Last five closing prices: ₹100, ₹102, ₹101, ₹104, ₹103
  • Sum: ₹510
  • SMA (510 ÷ 5): ₹102
  • Next close is ₹107: the ₹100 drops out: (102 + 101 + 104 + 103 + 107) ÷ 5 = ₹103.4

Example prices only, not market data.

What is the difference between SMA and EMA?

An exponential moving average (EMA) gives more weight to recent prices, so it turns sooner than an SMA of the same length. Each new value is: (latest close − previous EMA) × multiplier + previous EMA, where the multiplier is 2 ÷ (N + 1).

For a 10-period EMA the multiplier is 2 ÷ 11, about 0.18. If the previous EMA was ₹102 and the latest close is ₹106, the new EMA is (106 − 102) × 0.18 + 102, about ₹102.73.

TypeHow it treats pricesReaction to a new moveSide effect
Simple (SMA)Every price in the window counts equallySlowerSmoother, but later to turn
Exponential (EMA)Recent prices count moreFasterTurns sooner, but gives more false signals

Which periods do traders use?

  • Short term: 9 or 20 candles, to follow quick swings.
  • Medium term: 50 candles.
  • Long term: 100 or 200 candles, often used on daily charts to judge the main trend.
  • No period is "correct". Traders choose one that suits their time frame, and the line is only as useful as the habit of using it the same way each time.

How do traders use moving averages?

  • Trend direction: price staying above a rising average is read as an uptrend, and below a falling one as a downtrend.
  • Dynamic support and resistance: in a trend, price often pauses near an average such as the 20 or 50 before moving on.
  • Crossovers: a short average crossing above a longer one is read as strengthening momentum, and crossing below as weakening. Crossovers come after the move has begun.
  • In a sideways market, price crosses the average again and again, giving many false signals. Check whether the market is trending before leaning on the line.

What are a golden cross and a death cross?

A golden cross is when a shorter average, often the 50-day, crosses above a longer one, often the 200-day. A death cross is the opposite: the shorter one crosses below the longer one. Both are read as a change in momentum, and both appear after price has already moved, so they confirm rather than predict.

How do you add a moving average to a chart?

  1. Open a chart in your trading platform or charting tool.
  2. Open the list of indicators and search for "Moving Average", or for SMA or EMA.
  3. Choose the type and the length, such as 20 or 50.
  4. Give each line a different colour if you add more than one.
  5. Look at how price behaved around the line on past charts before you rely on it.

How do you calculate a moving average in a spreadsheet?

In Google Sheets or Excel, put the closing prices in a column. For a 5-day SMA, type =AVERAGE of the first five prices in the fifth row, then fill the formula down: the range moves down one row each time, just as the window moves on a chart. For an EMA, start from the first SMA value and apply the EMA formula above row by row.

Frequently asked questions

Is the 200-day moving average a buy or sell signal?

No. It is a way to judge the long-term trend. Price above it is read as a longer-term uptrend, but it is a reference point, not an instruction to trade.

Should I use SMA or EMA?

Neither is better. An EMA reacts faster and gives more false signals, an SMA is smoother but later. Pick one, test it on past charts, and stay consistent.

Do moving averages predict prices?

No. They are built from past prices, so they describe what has already happened. They lag the market by design.

What is the best moving average for intraday trading?

There is no best one. Intraday traders often use shorter periods, such as 9 or 20, on short time frames, but results depend on the market and on how the line is used. Test it on past charts and keep to one approach.

How many moving averages should I use?

Many traders use one to three, such as a short, a medium and a long one. More lines on a chart usually add clutter, not clarity.

Keep reading

  • What is RSI in trading?
  • Support and resistance explained
  • How to read candlestick charts
  • What are pivot points?
  • Golden Cross and Death Cross Explained
  • MACD Indicator Explained: How to Read It

Educational content only. It is not investment advice or a recommendation to buy or sell anything. Numbers in the examples are illustrative, not live market data or current exchange figures. Trading in futures and options involves substantial risk of loss.

TradeMoni pages

  • TradeMoni
  • Trade NSE Futures & Options Online
  • Trade Indian Commodities
  • Forex Trading
  • Trade US Stocks & Indices from India
  • Crypto Trading
  • Trade Comex Gold, Silver & Copper
  • Intraday Trading
  • Margin Trading Explained
  • About TradeMoni
  • Editorial Policy
  • Contact TradeMoni
  • Trading Guides
  • Trading Conditions
  • Policies & Disclosures

Trading guides

  • What Is Margin in Futures Trading?
  • What Is a Lot Size in Futures and Options?
  • Intraday vs Positional Trading: Differences
  • What Are Pivot Points in Trading?
  • How Much Should You Risk Per Trade?
  • What Is an Option Premium?
  • Stop-Loss Order Types Explained
  • How to Read a Futures Contract
  • What Is Mark-to-Market in Futures?
  • Support and Resistance Explained
  • Call vs Put Options Explained
  • What Is Open Interest?
  • How to Read Candlestick Charts
  • What Is Slippage in Trading?
  • How to Keep a Trading Journal
  • Moving Averages Explained: SMA, EMA, Examples
  • What Is RSI in Trading? Reading the Indicator
  • What Is a Margin Call? How It Happens
  • What Happens on Expiry Day in Futures & Options
  • What Is the Risk-Reward Ratio in Trading?
  • What Is Leverage in Trading?
  • What Is Short Selling? Meaning, Example and Risks
  • What Is Market Depth? Reading the Order Book
  • What Charges Apply When You Trade F&O?
  • Nifty 50 Explained: Meaning, Calculation, Stocks
  • Gift Nifty Explained: Meaning and How to Read It
  • Nifty vs Sensex: What Is the Difference?
  • What Is Implied Volatility (IV)?
  • Market vs Limit Order: What Is the Difference?
  • What Is Time Decay (Theta) in Options?
  • What Is VWAP in Trading?
  • What Is the MACD Indicator?

TradeMoni Blog

  • TradeMoni Blog: plain-English trading articles
  • Futures articles
  • Options articles
  • Risk management articles
  • Technical analysis articles
  • Markets articles

Policies

  • Terms & Conditions
  • Privacy Policy
  • Cookie Policy
  • Risk Disclosure
  • Financial Disclaimer
  • Client Agreement
  • AML & KYC Policy
  • Deposits & Withdrawals Policy
  • Refund & Cancellation Policy
  • Margin & Leverage Policy
  • Delete Your Account

Moni AI

  • Moni AI
  • AI Copilot
  • Smart Risk Shield
  • Performance Intelligence