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

Exponential moving average

EMA weights recent values more heavily using alpha=2/(n+1).

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

Core concept: Exponential moving average

EMA weights recent values more heavily using alpha=2/(n+1).

How it works

EMA follows E(t)=αP(t)+(1−α)E(t−1). Its seed may be an initial SMA or first price; allow a warm-up period so seed differences diminish. A shorter window responds faster but can amplify noise.

02 / Worked example

Worked example: Exponential moving average

For n=3, prior EMA 100 and close 104 give EMA 102.

3Example value 1100Example value 2104Example value 3102Example value 4

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

Try it yourself: With α=0.5, prior EMA 102 and close 106, what is the new EMA?

Explanation: 104.

03 / Risk and limitations

Limitations and common mistakes

Initialization affects early values.

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: Understand weighted averages and an SMA.

  • Apply recursive weighting
  • Explain seed dependence
  • Compare responsiveness with a simple average

Mechanism and interpretation

An EMA updates as alpha×current value +(1−alpha)×previous EMA. A common period convention uses alpha=2/(n+1), but the smoothing parameter is the operative quantity. Older observations retain diminishing influence rather than dropping out at a fixed boundary. The initial seed matters most near the start and decays with repeated updates. State the seed and warm-up method when reproducing a platform's values.

Worked case — synthetic data

Synthetic n=4 gives alpha=0.4. With prior EMA 100 and new close 110, updated EMA is 0.4×110+0.6×100=104. A following close 108 gives 105.6. If the starting seed were 102, the first value would be 105.2 and the second 106.32; the seed difference shrinks from 2 to 1.2 to 0.72, multiplied by 0.6 each step.

Context and failure modes

A faster EMA reacts sooner but can fluctuate more in a range. It still summarises historical inputs and cannot remove forecasting uncertainty. Different seeding explains some small platform discrepancies.

Practice task

Use alpha 0.2, previous EMA 50 and new close 45. Compute the update and the weight retained on the previous EMA.

Worked practice answer

EMA is 0.2×45+0.8×50=49. The previous EMA retains 80% weight in this update.

Topic assessment

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

1. What is alpha for the stated four-period convention?

  1. 0.4
  2. 0.25
  3. 4
Reveal answer and explanation

A. The convention is 2/(4+1).

2. Do old observations disappear after exactly n bars?

  1. Only on down days
  2. No
  3. Yes
Reveal answer and explanation

B. Their influence decays geometrically rather than ending abruptly.

3. Why can two EMAs with identical n differ near their starts?

  1. One must use future data
  2. EMA has no formula
  3. Different initial seeds or warm-up histories
Reveal answer and explanation

C. Recursive smoothing carries a decaying influence from its initial value.

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.