Home / Glossary / Simple Moving Average (SMA)
Technical Analysis

Simple Moving Average (SMA)

The arithmetic mean of a security's closing prices over a fixed number of periods, used to smooth noise and identify the direction of a trend.

Share

Definition

The Simple Moving Average (SMA) is the most basic form of moving average, calculated by adding the closing prices over a defined number of periods and dividing by that count. Every data point in the window carries exactly the same weight: a 20-day SMA treats a close from 20 days ago as equally important as today's close. When a new session closes, the oldest price drops off and the most recent price is added, causing the average to "move." Because all periods are weighted equally, the SMA is smoother and less reactive than the Exponential Moving Average (EMA), which makes it better suited to identifying long-term trend direction rather than short-term momentum shifts.

Why it matters

The 50-day and 200-day SMAs are arguably the most closely watched technical levels in Indian equity markets. Institutional investors, mutual funds, and foreign portfolio investors (FPIs) often reference Nifty 50's position relative to its 200-day SMA when making allocation decisions. A stock trading above both its 50-day and 200-day SMA is generally considered to be in a healthy uptrend on NSE, while a stock below both is under technical pressure. The golden cross (50-day SMA crossing above the 200-day SMA) and the death cross (the reverse) are widely covered events in Indian financial media. For options traders, a stock bouncing off its 200-day SMA can create a favourable risk-reward setup for buying slightly out-of-the-money calls, since the level provides a natural stop reference.

Formula

SMA(N) = (P1 + P2 + … + PN) ÷ N

where P represents the closing price of each period and N is the total number of periods in the window. For a 5-day SMA, you sum the most recent 5 closing prices and divide by 5. Every day, the calculation drops the oldest price and incorporates the newest. There is no weighting multiplier — this is the key distinction from the EMA.

Example

Suppose a BSE-listed large-cap stock has the following five daily closes: ₹1,200, ₹1,215, ₹1,208, ₹1,225, and ₹1,230. The 5-day SMA = (1,200 + 1,215 + 1,208 + 1,225 + 1,230) ÷ 5 = ₹1,215.6. On the sixth day the stock closes at ₹1,240, and the oldest close (₹1,200) is dropped. The new 5-day SMA = (1,215 + 1,208 + 1,225 + 1,230 + 1,240) ÷ 5 = ₹1,223.6. The rising SMA confirms a short-term uptrend. A positional trader might use the 20-day SMA as a trailing stop, exiting if price closes below it — this is a hypothetical illustration and not investment advice.

Validate trend signals with options data

Compare SMA-based trend direction with Nifty's put-call ratio and OI data on TradePulse.

Related