◆Financial Derivatives — In Progress Please await announcements of new courses and upcoming batches. Course Updates →
The Mountain Path Academy
← Let Us Learn Technical Analysis

FINANCE FUNDAMENTALS · A QUESTION-AND-ANSWER LEARNING GUIDE

Moving Averages: SMA and EMA

Calculate simple and exponential averages, compare their response to prices and understand crossovers and whipsaws.

By Prof. V. Ravichandran · The Mountain Path Academy
Updated 15 October 2026 · 19 questions · Worked examples and annotated diagrams

THE MOUNTAIN PATH ACADEMY

MOVING AVERAGES at a Glance

EQUAL WEIGHTS

SMA

The latest n prices share equal weights.

RECURSIVE WEIGHTS

EMA

Recent prices receive more weight through α.

INTERPRETATION

Trend & lag

Compare location, slope, crossings and false signals.

Worked Excel formulas · Ten-day comparison chart · Interactive calculator

LEARNING PATH · 01

What a moving average does

Q01 What is a moving average?

A moving average converts a price series into a smoother reference series. A common input is the close, but other inputs are possible. State the input, number of periods and chart interval: a 20-period average on a weekly chart differs from a 20-day average.

Q02 What is a simple moving average?

An n-period SMA gives each of the latest n observations weight 1/n. On the next observation, the oldest value leaves the window and the newest enters.

SMAₜ(n) = (Pₜ + Pₜ₋₁ + … + Pₜ₋ₙ₊₁) ÷ n

Q03 Why does the SMA change when an old price drops out?

A moving-window update

The five closes 100, 102, 101, 105 and 107 sum to 515, so SMA(5) = 103.00. The next close is 106. Drop 100 and add 106: the sum becomes 521 and SMA = 104.20. The change is (106 − 100) ÷ 5 = 1.20.

The SMA’s update depends on the entering and leaving prices. A change in its slope need not mean the latest price alone changed sharply.

LEARNING PATH · 02

The EMA formula and starting value

Q04 What is an exponential moving average?

An EMA updates its previous value using the new price and a smoothing coefficient. Under a common convention, α = 2/(n + 1). The recursive weighting declines geometrically as observations age.

EMAₜ = αPₜ + (1 − α)EMAₜ₋₁
Equivalent: EMAₜ = EMAₜ₋₁ + α(Pₜ − EMAₜ₋₁)

Q05 How should the first EMA be seeded?

This lesson seeds the first EMA with the average of the first n closes, on observation n. Later values use the recurrence. Some software starts from the first price or uses an adjusted weighting method. Those choices can produce different early values, so document the seed and warm-up history when comparing outputs.

Q06 Can you show an EMA update?

Day 6: n = 5, α = 1/3

Day-5 EMA = 103.00 and day-6 close = 106.00. EMA₆ = 103 + (1/3)(106 − 103) = 104.00. Day-7 close is 110, so EMA₇ = 104 + (1/3)(110 − 104) = 106.00. Keep full precision and round only the displayed result.

Q07 How do SMA and EMA compare?

FeatureSMAEMA
Recent-price weight1/n inside the rolling windowα under the specified recurrence
Older observationsDrop out after n periodsPersist with declining weight through the recurrence
Starting valueFirst full-window arithmetic meanA stated seed, here the first n-price SMA
ResponseSensitive to both the new and departing priceGenerally more responsive to new prices for the same n
Main limitationLag and possible whipsawsLag, seed sensitivity and possible whipsaws

Neither average must always lie closer to the latest close or turn first on every possible path. The EMA’s faster typical response is a weighting property, not a universal ranking of every observation.

LEARNING PATH · 03

Ten-day worked calculation

Q08 What are the SMA and EMA for the same prices?

DayCloseSMA(5)EMA(5)
1100.00——
2102.00——
3101.00——
4105.00——
5107.00103.00103.00
6106.00104.20104.00
7110.00105.80106.00
8108.00107.20106.67
9112.00108.60108.44
10115.00110.20110.63
The same ten closes, SMA and EMABoth averages first appear on day 5. EMA uses the day-5 SMA as its seed; the plotted values follow the worked table above.10010511011512345678910Blue: close · Gold: SMA(5) · Teal: EMA(5)Day
The same ten closes, SMA and EMA. Both averages first appear on day 5. EMA uses the day-5 SMA as its seed; the plotted values follow the worked table above. All plotted prices are hypothetical.

Q09 How do I reproduce this in Excel?

If B2:B11 contains the ten closes:
C6: =AVERAGE(B2:B6) · first SMA
C7: =AVERAGE(B3:B7) · roll and fill down
D6: =AVERAGE(B2:B6) · EMA seed
F2: =2/(5+1) · smoothing coefficient
D7: =$F$2*B7+(1-$F$2)*D6 · fill down

The row-6 result corresponds to observation 5 because row 1 is a header. Store outputs as formulas if students will edit the prices; cached values alone will not recalculate.

Q10 Can I calculate SMA and EMA from my own sample?

Interactive moving-average calculator

2–100 periods and up to 200 positive prices. EMA seed is the first n-price SMA. No forecasts or trade instructions are generated.

LEARNING PATH · 04

Slope, crossovers and market regimes

Q11 How should price and average slope be read?

A close above a rising average describes a different state from a close above a falling average. Use both location and slope alongside the wider chart. Being above the 200-day average alone does not formally establish a bull market, and a close below it does not mechanically establish a primary reversal.

Q12 What is a price crossover?

A bullish price crossover occurs when price moves from at/below the selected average to above it. A bearish crossover reverses that relation. Compare consecutive observations; “price is above the average” describes a state, not necessarily a new crossing event.

Q13 What are a golden cross and a death cross?

A commonly taught golden cross occurs when the 50-day SMA crosses above the 200-day SMA. A death cross is the reverse. Specify whether SMA or EMA is used. These are delayed trend signals, and a strategy must define execution, position size and exit rules separately.

Crossing pointEarlierLater →Teal: SMA 50Gold: SMA 200
Golden cross. The faster 50-day SMA moves from below to above the slower 200-day SMA. This is conventionally read as a bullish trend signal. Schematic average paths for teaching, not averages calculated from a real 200-day price series. Neither signal guarantees the next move.
Crossing pointEarlierLater →Teal: SMA 50Gold: SMA 200
Death cross. The faster 50-day SMA moves from above to below the slower 200-day SMA. This is conventionally read as a bearish trend signal. Schematic average paths for teaching, not averages calculated from a real 200-day price series. Neither signal guarantees the next move.
Bullish crossing at t:
Fastₜ > Slowₜ AND Fastₜ₋₁ ≤ Slowₜ₋₁
Bearish crossing at t:
Fastₜ < Slowₜ AND Fastₜ₋₁ ≥ Slowₜ₋₁

Q14 How is a crossover different from a regime?

Event versus continuing state

If SMA50 first rises above SMA200 on Monday, Monday contains the crossing event. If it remains above on Tuesday and Wednesday, those dates remain in the above-average regime; they are not two more golden crosses.

In a daily-close backtest, a signal using the final close becomes known at that close. Model an achievable execution time rather than silently assuming an earlier fill.

Q15 Can moving averages act as support or resistance?

Traders sometimes watch pullbacks near a rising average or rallies toward a falling average. These are dynamic reference areas that can fail. The selected period should follow an explicit method rather than be chosen after observing which line price respected.

See support, resistance and role-reversal diagrams →

LEARNING PATH · 05

Whipsaws and fair testing

Q16 What is a whipsaw?

A whipsaw is a signal that reverses quickly, such as price crossing above a moving average and soon falling back below. Sideways fluctuations can generate repeated crossings and costs. A shorter period typically follows prices more closely but can produce more frequent signals.

Q17 Which periods should I choose?

LookbackCommon chart referenceCaution
10 or 20 sessionsShorter-term movementNot the same as 10 or 20 calendar days.
50 sessionsIntermediate referenceRoughly a few trading months, not exactly a quarter.
200 sessionsLonger-term referenceLess than a full trading year in many markets.

Match the period to a stated purpose, then test stability over multiple periods and market conditions. A single best historical parameter can reflect overfitting.

Q18 What should a fair comparison report?

Use identical data, corporate-action treatment, starting dates and execution assumptions. Include the warm-up period, turnover, fees, slippage, drawdowns and a relevant benchmark. Separate parameter development from out-of-sample evaluation and distinguish missing observations from genuine trading sessions.

Q19 Practice: can an EMA be lower than the SMA?

At day 6 in the example, SMA(5) is 104.20 and EMA(5) is 104.00. Is this an error?

No. The SMA includes the latest five closes equally; the EMA retains declining weights and a seed. Their positions depend on the entire path. Greater recent-price sensitivity does not require EMA to be above SMA.

Sources and teaching notes

Based on Prof. V. Ravichandran’s Session 9 slides, especially slides 54–66, and the Technical Analysis Session 9 workbook’s sample and Nifty moving-average sheets. The ten-day example follows the slides; it uses hypothetical prices.

No live market data is used here. Educational material; moving-average signals can fail and incur trading costs.