Updated 2026-11-18. Written by the TradeMoni team.
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.
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 prices only, not market data.
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.
| Type | How it treats prices | Reaction to a new move | Side effect |
|---|---|---|---|
| Simple (SMA) | Every price in the window counts equally | Slower | Smoother, but later to turn |
| Exponential (EMA) | Recent prices count more | Faster | Turns sooner, but gives more false signals |
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.
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.
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.
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.
No. They are built from past prices, so they describe what has already happened. They lag the market by design.
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.
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.
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.