What is a moving average
The average price of the last few days, drawn as a smooth line on the chart.
Picture: A jagged daily price line and a smooth moving average line. Below, a walker keeps a steady line while the dog on the lead darts about.
What it means
A moving average is the average closing price over a set number of recent days. Each day the oldest price drops out and the newest comes in, so the average moves along with the price. Drawn on a chart, it is a smooth line that shows the direction of the price without the daily noise.
How it is worked out
Simple moving average (SMA) = Sum of the last N closing prices ÷ N
Example: A 5-day SMA
- The last five closing prices: ₹100, ₹102, ₹101, ₹105, ₹107.
- Sum = ₹515. SMA = 515 ÷ 5 = ₹103.
- Tomorrow the price closes at ₹110. The ₹100 drops out: (102 + 101 + 105 + 107 + 110) ÷ 5 = ₹105.
An exponential moving average (EMA) gives more weight to the most recent days, so it turns faster when the price changes direction.
The 50-day and 200-day averages
- The 50-day average follows the trend of the past two to three months.
- The 200-day average follows the trend of roughly the past year.
- A price above its 200-day average is commonly read as a long-term uptrend; below it, a downtrend.
- When the 50-day average crosses above the 200-day, traders call it a golden cross. When it crosses below, a death cross.
Keep in mind
- A moving average is built from past prices, so it always lags behind. It confirms a trend after it has started; it does not predict one.
- When the price moves sideways, it crosses its average again and again, and the signals mean little.
See it on Stockaris
For education only. Not investment advice. Worked examples use made-up companies and round numbers; past market events are given with rounded figures.