Home / Glossary / Moving Average
Technical Analysis

Moving Average

A line that continuously averages price over a rolling period, smoothing out noise to reveal the underlying direction of a trend.

Share

Definition

A moving average is a lagging indicator that calculates the arithmetic or weighted mean of a security's closing prices over a defined number of periods and re-computes this average with each new bar. As a new period closes, the oldest price drops off and the newest price is included, making the average "move" forward in time. The two most common variants are the Simple Moving Average (SMA), which weights all periods equally, and the Exponential Moving Average (EMA), which gives greater weight to more recent prices. Moving averages are the foundation on which many other indicators — including MACD and Bollinger Bands — are built.

Why it matters

In Indian markets, specific moving averages have become almost institutional benchmarks. The 200-day SMA of Nifty 50 is frequently cited in SEBI circulars, FII reports, and broker research as the line that separates a structural bull market from a bear. Retail and institutional traders monitor the 20-day EMA for short-term trend direction, the 50-day SMA for intermediate direction, and the 200-day SMA for long-term positioning. Moving average crossovers — such as the golden cross (50 DMA crossing above the 200 DMA) and the death cross — generate significant media coverage on NSE trading days and can trigger momentum-chasing from algo and retail traders alike. On intraday charts, the 9 EMA and 21 EMA are widely used by Bank Nifty scalpers as dynamic support and resistance.

How it works

Each bar, the moving average drops the oldest data point and adds the latest closing price to its rolling calculation. A 20-day SMA on a daily chart averages the last 20 closing prices with equal weight. A 20-day EMA on the same chart gives today's close a multiplier of 2 ÷ (20 + 1) ≈ 9.5% weight while the prior EMA carries the remaining ~90.5%. This means an EMA reacts faster to recent price moves than an SMA of the same period. Traders use moving averages as dynamic support (price bouncing off the average from below) or dynamic resistance (price being rejected from above), and as crossover signals when a shorter-period average crosses a longer-period one.

Example

Suppose an NSE-listed mid-cap company has posted closing prices over five consecutive sessions of ₹540, ₹548, ₹555, ₹550, and ₹560. The 5-day SMA = (540 + 548 + 555 + 550 + 560) ÷ 5 = ₹550.6. On the sixth day the stock closes at ₹570 and the oldest close (₹540) drops off. The new 5-day SMA = (548 + 555 + 550 + 560 + 570) ÷ 5 = ₹556.6. The average has risen, confirming short-term upward momentum. A trader watching for a bounce off the 20-day SMA as dynamic support would wait until price pulls back to that level before considering a long entry — this is a hypothetical illustration and not a trading recommendation.

Spot trend direction with live charts

Use TradePulse's live option chain alongside moving average signals to validate trend-based trades.

Related