Simple Moving Average (SMA)¶
In the previous chapter we saw how an indicator signal becomes an option trade. Now we start with the oldest and most widely used indicator: the simple moving average, or SMA. Almost every trader in India has the 20, 50 or 200 SMA on their chart. That is one reason why it works: many traders watch the same lines and act near them. In this chapter you will learn to read the SMA, use it as a trend filter and as moving support, and turn its signals into complete option trades.
What you will learn
- What the SMA measures and how to calculate it by hand
- How to read the 20, 50 and 200 SMA on a chart
- Which settings suit Nifty and Bank Nifty intraday, swing trades and stocks
- The main SMA signals: trend filter, pullbacks, price crosses, golden and death crosses
- What the SMA is bad at, especially in sideways markets
- Three complete option trades with entry, stop loss, target, exit and result in rupees
What is a simple moving average?¶
A simple moving average (SMA) is the average of the last N closing prices. "Simple" means that every close in the window has the same weight. "Moving" means that the window moves forward by one bar every time a new bar closes: the newest close comes in and the oldest close drops out.
The formula in plain words:
SMA(N) = (Sum of the last N closing prices) ÷ N
The SMA smooths out the daily noise. A single wild candle changes the SMA only a little, so the line shows the underlying direction of the price. You first met moving averages in Trend, Support and Resistance Basics.
A small worked calculation¶
Let us calculate a 5-day SMA of Nifty (example closes).
| Day | Close | Closes in the 5-day window | Sum | 5-day SMA |
|---|---|---|---|---|
| 1 | 22,850 | - | - | - |
| 2 | 22,920 | - | - | - |
| 3 | 22,880 | - | - | - |
| 4 | 22,960 | - | - | - |
| 5 | 23,040 | Days 1 to 5 | 1,14,650 | 1,14,650 ÷ 5 = 22,930 |
| 6 | 23,100 | Days 2 to 6 | 1,14,650 - 22,850 + 23,100 = 1,14,900 | 1,14,900 ÷ 5 = 22,980 |
On day 6, the close of day 1 (22,850) leaves the window and the new close (23,100) enters it. The SMA rises by 50 points, because the new close is 250 points higher than the close that left: 250 ÷ 5 = 50.
This also shows the main weakness of the SMA. The close of day 1 had a full one-fifth weight on day 5, and zero weight on day 6. An old price that drops out can move the SMA as much as the newest price. The exponential moving average in the next chapter fixes this by giving more weight to recent prices.
How to read the SMA on a chart¶
The chart below shows Nifty (example) over about 15 months with three SMAs: 20 (blue), 50 (orange) and 200 (purple).

Read it in four steps.
- Where is the price compared with the SMA? From October 2025 to March 2026, Nifty stayed below all three averages: a downtrend. From May 2026, it stayed mostly above them: an uptrend.
- Which way is the SMA sloping? A rising SMA means the average price is going up. The slope matters more than a single cross of the price.
- In what order are the SMAs? In a healthy uptrend, the fast SMA is above the slow one: 20 above 50 above 200. In a downtrend, the order is reversed. On the right side of the chart, the order is 23,031.18 (20 SMA) above 22,914.52 (50 SMA) above 22,273.15 (200 SMA): a clean uptrend.
- How does the price behave near the SMA? In August, Nifty pulled back and found buyers at the rising 50 SMA. In a trend, the SMA often acts like a moving support (or a moving resistance in a downtrend). This is called dynamic support and resistance.
On 20 July 2026, the 50 SMA crossed above the 200 SMA. This is called a golden cross. The opposite, the 50 SMA crossing below the 200 SMA, is called a death cross. Notice how late the golden cross came: Nifty had already risen from about 21,550 in April to about 22,250. Long-period crosses describe the big picture; they are not entry signals for short-dated options.
Settings¶
The setting of an SMA is the number of bars it averages. Shorter SMAs follow the price closely and give more signals. Longer SMAs are smoother, slower and give fewer but more reliable signals.
| SMA | On a daily chart it covers | What traders use it for |
|---|---|---|
| 20 | About one month | Short-term trend, the middle line of Bollinger Bands |
| 50 | About two and a half months | Medium-term trend, the most watched swing-trading line |
| 200 | About ten months | Long-term trend, the line that separates bull and bear markets |
Useful settings for option traders:
| Style | Chart | Settings | Notes |
|---|---|---|---|
| Nifty intraday | 5 minute | 20 and 50 SMA | The 20 SMA covers 100 minutes; good for the trend of the session |
| Nifty and Bank Nifty intraday | 15 minute | 20 and 50 SMA | 20 bars = 5 hours, 50 bars = 2 days; steadier, fewer false signals |
| Swing (Nifty, Bank Nifty) | Daily | 20 and 50 SMA | 50 SMA as the trend filter, 20 SMA for timing |
| Positional | Daily | 50 and 200 SMA | Golden and death crosses, long-term trend |
| Stocks | Daily | 50 and 200 SMA, plus 20 for swing | Widely watched by fund managers and the financial media |
Bank Nifty moves more points per day than Nifty, so the same SMA setting works, but stops must be wider in points. Do not keep changing the setting to fit the last few weeks. The popular settings work partly because many traders watch them.
Signals¶
1. The trend filter¶
This is the most useful job of the SMA for an option trader.
- Price above a rising 50 SMA: consider only bullish trades (buy calls, bull call spreads, bull put spreads).
- Price below a falling 50 SMA: consider only bearish trades (buy puts, bear put spreads, bear call spreads).
- Flat SMA with the price crossing it again and again: the market is in a range, so avoid trend trades.
The trend filter does not tell you when to enter. It only stops you from fighting the trend, which is one of the most common reasons option buyers lose money.
2. Pullback to a rising SMA¶
In an uptrend, the price often falls back to a rising SMA and then turns up again. The entry comes when the price shows that buyers are back, for example when a candle closes above the high of the previous candle. The stop goes below the pullback low or below the SMA. This gives a good reward to risk, because the stop is close and the target (the previous high) is further away. The same works in reverse in a downtrend: a rally to a falling SMA is a place to look for bearish trades.
3. Price crossing the SMA¶
A close above the SMA is bullish and a close below it is bearish. This signal is simple, but on its own it gives many false signals. It works better when the SMA itself is sloping in the same direction as the cross.
4. Golden cross and death cross¶
The 50 SMA crossing the 200 SMA tells you about the long-term trend. It comes weeks or months after the turn, so it is useful for positional traders and for stock selection, not for weekly options.
5. Distance from the SMA¶
When the price is very far above its 20 SMA, the move is stretched, and a pullback towards the average becomes more likely. This is not a sell signal by itself, but it is a poor moment to buy calls, because you would be paying a high premium just before a likely pause.
What the SMA is not good at¶
The chart below shows the biggest trap: a sideways market.

The 50 SMA is flat at about 22,994. The price crossed the 20 SMA 11 times in about four months. A trader who bought calls on every cross above the 20 SMA and puts on every cross below would have lost money on most trades. These repeated false signals are called whipsaws.
| The SMA is good at | The SMA is bad at |
|---|---|
| Showing the direction of the trend | Sideways markets (whipsaws) |
| Giving moving support and resistance in trends | Catching tops and bottoms (it lags) |
| Keeping you on the right side of a trend | Gap days: the price can jump far past the SMA at the open |
| Simple, clear rules that you can test | Giving an exact level: treat the SMA as a zone, not a precise line |
The SMA lags, and options pay for time
A 50 SMA reacts slowly by design. If you wait for a price cross to buy a weekly option, much of the move may be over, and time decay is working against you. Use the SMA for direction and for stop placement, and use faster tools or price patterns for the exact entry.
Trade examples¶
The three examples below use the rules of this chapter. The charts are illustrations with synthetic prices. Premiums are calculated with the Black-Scholes model in our course toolkit, and the results are for one lot, before brokerage and taxes.
Example 1: Swing trade, pullback to the rising 50 SMA (bull call spread)¶
The setup. Look at this Nifty daily chart (example).

- Nifty is in an uptrend: it is above a rising 50 SMA, and the 20 SMA is above the 50 SMA.
- In October, Nifty fell from an old high of about 23,340.
- On 26 October, the pullback low was 22,820.09, right at the 50 SMA (22,840.37).
- On 28 October, Nifty closed at 22,930, above the previous day's high of 22,866.42. This is the sign that buyers are back.
- The 50 SMA is at 22,852 and rising: it is about 73 points higher than 10 days earlier.
The market view. Up, back to the old high near 23,300, within one to two weeks.
Why this option trade. The target is clear and about 370 points away. IV is normal at 13%. A bull call spread fits: it is cheaper than a call alone, it loses less to time decay, and its sold strike can sit at the target. A swing trade can take two weeks, so we use the 23 November monthly expiry (26 days away), not a weekly that would decay fast.
The trade (28 October 2026, Nifty 22,930, 26 days to expiry, IV 13%).
| Leg | Action | Contract | Premium | Quantity |
|---|---|---|---|---|
| 1 | Buy | NIFTY 23 NOV 22900 CE | ₹385.30 | 65 |
| 2 | Sell | NIFTY 23 NOV 23300 CE | ₹193.90 | 65 |
| Net debit | ₹191.40 | ₹12,441 per lot |
- Maximum loss = 191.40 × 65 = ₹12,441.
- Maximum profit at expiry = (400 - 191.40) × 65 = 208.60 × 65 = ₹13,559.
- Breakeven at expiry = 22,900 + 191.40 = 23,091.40.

The plan.
- Entry: at the close of 28 October, after the close above the previous high.
- Stop loss: a daily close below 22,750, which is below the pullback low and below the 50 SMA. If this happened in the next few days, the spread would be worth about ₹148 to ₹152, a loss of about ₹2,600 to ₹2,850 per lot. That is much less than the maximum loss of ₹12,441.
- Target: a daily close at or above 23,300, the old high.
- Time exit: exit on 16 November (one week before expiry) if neither the stop nor the target has been hit.
What happened. Nifty never came near the stop: the lowest close after entry was 22,984.98. It closed at 23,310 on 9 November, so the target was reached. With 14 days left and IV a little lower at 12.5%, the prices were:
| Leg | Entry | Exit (9 Nov) | P&L per unit |
|---|---|---|---|
| Bought 22900 CE | ₹385.30 | ₹539.40 | +₹154.10 |
| Sold 23300 CE | ₹193.90 | ₹260.80 | -₹66.90 |
| Spread | ₹191.40 | ₹278.60 | +₹87.20 |
Result: 87.20 × 65 = +₹5,668 for one lot. The planned risk was about ₹2,600 to ₹2,850, so the trade made about twice the risk. Notice that the profit is well below the maximum of ₹13,559, because the sold 23300 CE still had a lot of time value with 14 days left. You could hold for more, but then you risk giving back the gain if Nifty turns down from the old high.
Example 2: Swing trade, rally fails at a falling 50 SMA (bear call spread, stopped out)¶
This example shows a loss. A good trade plan does not mean every trade wins; it means the losses stay small.
The setup. Look at this Bank Nifty daily chart (example).

- Bank Nifty fell from about 57,000 in August to about 53,600 in October.
- The 50 SMA is falling: on 3 November it is at 54,523.41, about 524 points lower than 10 days earlier.
- A rally reached 54,462.22 on 2 November, just below the falling 50 SMA.
- On 3 November, Bank Nifty closed lower at 54,000, a sign that the rally was failing at the average.
The market view. Bank Nifty will stay below the 50 SMA zone, around 54,500, until expiry. The view is "not above this level", not "a big fall".
Why this option trade. When the view is "the price will not go above a level", a bear call spread fits. It is a credit spread: you receive premium, and you keep it if Bank Nifty stays below the sold strike. Time decay works for you, and you do not need a fall. Bank Nifty has only monthly options, so we use the 23 November expiry (20 days away). The bought 55000 CE limits the loss, which a naked call would not.
The trade (3 November 2026, Bank Nifty 54,000, 20 days to expiry, IV 15%, lot 30).
| Leg | Action | Contract | Premium | Quantity |
|---|---|---|---|---|
| 1 | Sell | BANKNIFTY 23 NOV 54500 CE | ₹596.25 | 30 |
| 2 | Buy | BANKNIFTY 23 NOV 55000 CE | ₹400.90 | 30 |
| Net credit | ₹195.35 | ₹5,860.50 per lot |
- Maximum profit = 195.35 × 30 = ₹5,860.50, if Bank Nifty closes below 54,500 at expiry.
- Maximum loss = (500 - 195.35) × 30 = 304.65 × 30 = ₹9,139.50.
- Breakeven at expiry = 54,500 + 195.35 = 54,695.35.
- The margin is much lower than for a naked call, because the bought call caps the risk; check the exact amount in your broker's margin calculator.
The plan.
- Entry: at the close of 3 November.
- Stop loss: a daily close above 54,500, which is above the rally high and above the 50 SMA zone. A close there means the "rally fails at the average" idea is wrong.
- Target: keep about 70% of the credit, that is, buy back the spread at about ₹60.
- Time exit: exit on 18 November if the target has not been reached, to avoid the last days of gamma risk.
What happened. On 5 November, Bank Nifty rallied hard and closed at 54,700, above the stop level and above the 50 SMA (54,450.98). The trader bought back the spread near the close. With 18 days left and IV up slightly to 15.5%:
| Leg | Entry | Exit (5 Nov) | P&L per unit |
|---|---|---|---|
| Sold 54500 CE | ₹596.25 | ₹948.80 | -₹352.55 |
| Bought 55000 CE | ₹400.90 | ₹677.25 | +₹276.35 |
| Spread | ₹195.35 credit | ₹271.55 to buy back | -₹76.20 |
Result: -76.20 × 30 = -₹2,286 for one lot. Was the stop right? Bank Nifty closed at 55,020 on 9 November. Holding on would have made the loss about ₹3,387 by then, and the risk of a bigger loss kept growing. The stop did its job: it cut the loss at about a quarter of the maximum loss.
One loss is not a broken rule
The falling-SMA setup was valid. Sometimes the market simply breaks through. What matters is the size of your losses compared with your wins over many trades: see Expectancy, Win Rate and Risk-Reward.
Example 3: Intraday, pullback to the 20 SMA on the 15-minute chart (buy a call)¶
The setup. Look at this Nifty 15-minute chart (example) for 2 to 4 November.

- Over two days, Nifty rose steadily above a rising 20 SMA and 50 SMA on the 15-minute chart.
- On 4 November, Nifty opened near 23,103 and rose to about 23,190.
- It then pulled back, and the 11:00 candle touched the 20 SMA (low 23,101.72, with the 20 SMA at 23,102.39).
- The next candle (11:15 to 11:30) closed back up at 23,142, above the 20 SMA (23,106.34).
The market view. The intraday trend is up, and the pullback is over. Nifty can move to about 23,250 today.
Why this option trade. For a quick intraday move, buying an at-the-money call gives a high delta and limited risk. Over a few hours, time decay costs little. A spread would cap the gain and add a second bid-ask cost on a short trade. We use the nearest weekly expiry, 9 November (a Monday, moved from the 10 November holiday). It still has 5 days left, so the option does not decay as fast as on expiry day.
The trade (4 November 2026, 11:30 am, Nifty 23,142, IV 12.5%).
| Item | Value |
|---|---|
| Contract | NIFTY 09 NOV 23150 CE |
| Premium | ₹142.95 |
| Cost for one lot | 142.95 × 65 = ₹9,291.75 |
| Delta | 0.52: the call gains about ₹0.52 for every 1 point rise in Nifty |
| Theta | -₹15.20 per day: a few hours cost only a few rupees per unit |
The plan.
- Entry: 11:30 am, at the close of the candle that closed back above the 20 SMA.
- Stop loss: a 15-minute close below 23,090, which is below the pullback low and the 20 SMA. At 23,090, the call would be worth about ₹116.15, a loss of 26.80 × 65 = ₹1,742 per lot.
- Target: Nifty at 23,250, near the swing high of the move (about 108 points away). The call would then be worth about ₹207.
- Time exit: square off by 3:00 pm whatever happens.
The planned reward is more than twice the planned risk.
What happened. Nifty never closed below 23,156 after the entry. It reached 23,250 in the 1:30 pm candle, and the trader sold the call at ₹207.25.
Result: (207.25 - 142.95) × 65 = 64.30 × 65 = +₹4,179.50 for one lot.
Intraday option orders
Use limit orders, not market orders, to buy and sell options: the bid-ask spread can be wide. For the stop, use a stop-loss limit (SL) order on the option, because SL-M orders are not allowed for options on NSE. Many traders watch the 15-minute close on the chart and exit by hand, because a quick spike can trigger a resting SL order.
Tips and common mistakes¶
Tips
- Use the slope of the SMA, not only the price cross. A rising SMA with the price above it is a much stronger signal than a cross of a flat SMA.
- Treat the SMA as a zone of about half an ATR on each side, not an exact line.
- Wait for the close of the candle before acting on a cross or a bounce.
- For credit spreads, use the SMA to place the sold strike. In an uptrend, sell the put of a bull put spread just below a rising 50 SMA. In a downtrend, sell the call of a bear call spread just above a falling 50 SMA.
- Check the higher timeframe. A 15-minute uptrend against a falling daily 50 SMA is a weaker trade.
Common mistakes
- Trading every cross in a sideways market and suffering whipsaws.
- Buying a weekly option on a golden cross. Golden and death crosses are slow; they describe months, not days.
- Moving the stop "a little below the SMA" again and again as the price falls through it.
- Changing the SMA setting after every loss, which leads to overfitting.
- Forgetting that the option premium also depends on time and IV, so a correct SMA signal can still lose money if the move comes too late.
Combining the SMA with other indicators¶
The SMA is a trend tool, so pair it with indicators from other families.
| Pair the SMA with | What it adds | Example rule |
|---|---|---|
| RSI | Momentum timing | Buy the pullback to the rising 50 SMA only if RSI holds above 40 |
| ATR | Stop distance | Put the stop one ATR below the SMA, not just below it |
| Bollinger Bands | Volatility | The 20 SMA is the middle band; a squeeze near a flat SMA warns of a breakout |
| EMA | Faster entries | Use the 50 SMA for direction and a 9/21 EMA cross for timing |
| India VIX | Buy or sell options | High VIX: prefer credit spreads; low VIX: prefer buying or debit spreads |
Avoid pairing the SMA with too many other trend tools, such as Supertrend and Parabolic SAR together. They mostly repeat the same message.
In the next chapter we study the exponential moving average, which reacts faster than the SMA and powers the popular 9/21 and 20/50 crossover systems.
Key takeaways¶
- The SMA is the plain average of the last N closes; every close in the window has the same weight.
- The 20, 50 and 200 SMA are the standard settings, covering about one month, two and a half months and ten months on a daily chart.
- The best use of the SMA for option traders is as a trend filter: bullish trades above a rising SMA, bearish trades below a falling SMA.
- In trends, the SMA acts as dynamic support or resistance, and pullbacks to it give entries with close stops.
- Golden and death crosses (50 and 200 SMA) are slow, long-term signals, not triggers for weekly options.
- In sideways markets the SMA whipsaws; a flat SMA is a warning to avoid trend trades.
- Turn the chart stop into rupees before you enter, and always have a time exit.
- In our examples, the SMA trades made ₹5,668 and ₹4,179.50 and lost ₹2,286 on one lot each, before costs.
Check your understanding¶
- The last five Nifty closes are 22,700, 22,760, 22,820, 22,800 and 22,870. What is the 5-day SMA?
- Nifty is above its 50 SMA, but the 50 SMA has been flat for six weeks and the price has crossed it many times. Should you buy calls on the next close above the 50 SMA? Why?
- In Example 1, why did the trader choose the 23 November monthly expiry instead of a weekly expiry?
- You sell a Bank Nifty bear call spread for a net credit of ₹180 per unit (lot 30) and later buy it back for ₹250. What is your profit or loss for one lot?
- What is a golden cross, and why is it not a good trigger for buying a weekly option?
Show answers
- Sum = 22,700 + 22,760 + 22,820 + 22,800 + 22,870 = 1,13,950. SMA = 1,13,950 ÷ 5 = 22,790.
- No. A flat SMA with many crosses means the market is in a range, and SMA crosses whipsaw in ranges. Wait for a sloping SMA, or use a range strategy instead.
- A swing trade can take one to two weeks or more. A weekly option would lose value fast, and could expire before the move. The monthly option gives the trade time.
- You received ₹180 and paid ₹250 to close, a loss of ₹70 per unit. For one lot: 70 × 30 = ₹2,100 loss (before costs).
- A golden cross is the 50 SMA crossing above the 200 SMA. It comes weeks or months after the turn and describes the long-term trend, so it is far too slow to time a trade in an option that expires within days.
Test yourself¶
Take the quiz for this chapter: 13 multiple choice questions, each with an explanation.