Skip to content
TradeViora AcademyLearn. Analyze. Practice. Trade Smarter.
Menu
All courses
Technical Indicators / Lesson 01

Simple moving average

SMA averages the last n observations with equal weights.

Free lesson · Module 08 · 1/31
01 / Core concept

Core concept: Simple moving average

SMA averages the last n observations with equal weights.

How it works

A rolling SMA updates by removing the oldest value and adding the newest. Its effective lag grows as the window grows; a rising SMA indicates recent observations replacing smaller ones, not necessarily the next move. Use a completed window before evaluating a signal.

02 / Worked example

Worked example: Simple moving average

Closes 100,102,104 give a three-period SMA of 102.

100,102,104Example value 1102Example value 2

Values from the example above, in order of appearance. Not a live chart.

Try it yourself: Closes 100,102,104,106: latest three-period SMA?

Explanation: 104.

03 / Risk and limitations

Limitations and common mistakes

It lags and is not a forecast.

Separate the observation from the trading decision. Test the rule with realistic execution and costs; a hypothetical example is not evidence of a profitable strategy.

Explore interactive trading tools
04 / Knowledge check

Which statement is accurate?

Choose an answer.

APPLIED STUDY · ORIGINAL LESSON

Learning plan and prerequisites

Before you begin: Add numbers and divide by a window length.

  • Calculate a rolling mean
  • Explain lag and dropped observations
  • Handle warm-up explicitly

Mechanism and interpretation

An n-period simple moving average gives equal weight to the last n selected observations. On each update, the oldest value leaves and the newest enters. A change in the average can therefore reflect both current price and a large old value rolling out. The window and input field must be stated: a close SMA differs from one calculated on typical price. A trailing SMA uses only past and present observations, whereas a centred smooth requires future values.

Worked case — synthetic data

Synthetic closes 10,12,14,16,18 give a five-period SMA of 14. Adding close 20 and dropping 10 gives 16. The change is (20−10)/5=2. If the new close were 14 instead, the new SMA would be 14.8 despite no change from the old average, because the low 10 left the window. The indicator is a historical average, not a forecast of the next close.

Context and failure modes

Platforms may show partial-window values before n observations exist. Decide whether these warm-up values are eligible for a strategy. Missing observations should not silently shorten the intended window.

Practice task

For closes 30,33,36, calculate a three-period SMA; then add 30 and remove the oldest 30.

Worked practice answer

Initial SMA is 33. The updated window 33,36,30 also averages 33. The incoming and outgoing values are equal, so the mean is unchanged.

Topic assessment

Choose an answer before opening each explanation. These questions test the specific mechanism in this lesson.

1. What changes a rolling SMA in one update?

  1. New value alone
  2. Yesterday's high only
  3. New value minus dropped value, divided by n
Reveal answer and explanation

C. Removing the oldest observation is as important as adding the newest.

2. Does a centred average belong in a real-time signal without delay?

  1. No
  2. Yes
  3. Only if its line is smooth
Reveal answer and explanation

A. A centred window uses future observations relative to its centre.

3. Why specify warm-up handling?

  1. Warm-up guarantees accuracy
  2. Partial and full windows produce different values
  3. All platforms hide warm-up automatically
Reveal answer and explanation

B. Eligibility before a full window is an implementation choice.

Further reading

Original TradeViora Academy explanation and hypothetical example. See the primary-reference scope below. External resources do not endorse or independently verify this lesson.

Continue learning

Updated 26 November 2026 · Educational edition · Independent editorial review pending.

Explore market charts

Inspect actual provider-hosted market prices or load your own historical OHLCV in the Market Chart Lab. For volume-at-price and bid/ask analysis, use the profile workbench with appropriate data. These are exploration tools, not verified historical examples of this specific lesson.

Source scope

The explanations, definitions used for chart labels, synthetic cases, and exercises above are original. Exchange documentation is a reference for order mechanics; it does not validate a chart strategy or identify trader intent. Indicator documentation provides formula context where applicable.