Skip to content

Trading glossary

Simple moving average (SMA)

Trading involves risk. You could lose more than your deposit.

A simple moving average is the mean of a fixed number of recent closing prices, recalculated as each new period ends, which smooths a series by giving every price in the window equal weight.

The plainest of the moving averages. A window length is chosen, the closes inside that window are added and divided by the count, and the result is plotted against the last of them. As each period ends the newest close enters the window and the oldest leaves it, so the average moves. Every price inside the window counts equally, which is the single property that distinguishes it from its weighted and exponential relatives.

Equal weighting has a consequence that surprises readers watching the line. The average changes for two reasons at once: because a new price arrived, and because an old price dropped out of the window. A large value leaving the far end can turn the line even while recent prices are doing nothing at all, which means the shape of the line is not always about what the market just did. The lag is a function of the window, conventionally described as about half its length.

The conventions built on it are all bounded and all disputed. Price on one side of the average is used as a trend filter, a shorter average crossing a longer one is used as a signal, and the line itself is watched as an area where interest has appeared. None of that is derivable from the arithmetic, which computes a mean and says nothing about the future. Whether equal weighting or exponential weighting is preferable is a genuine disagreement, and the choice of window is the classic place where a rule is fitted to the sample that produced it.

How it is calculated

A simple moving average is the sum of the closing prices inside the chosen window, divided by the number of periods in that window, recalculated each period.

Worked example. Illustrative figures, not YAL prices or terms.

A five period average, and the effect of a price dropping out

Closes in the window
10, 11, 12, 11, 11
Average
55 ÷ 5 = 11.00
Next period closes unchanged at 11, and the 10 drops out
11, 12, 11, 11, 11
New average
56 ÷ 5 = 11.20
Reading of the two figures
The line rose while price stood still

Illustrative arithmetic. The values are chosen to show how the window works and describe no instrument and no period.

Where you see it

MetaTrader 5 ships a Moving Average indicator in which Simple is one of the selectable methods, applied by default to closing prices.

In the curriculum

Taught in 1 lesson.

Part of an ordered curriculum of 139 lessons across 10 modules, free and with nothing behind a sign-up.

See the full syllabus

Get started

Open your account in four steps.

A clear path from sign-up to your first trade, in four steps.

No depositNo documents

  1. 01/ 04step 1 of 4

    Register

    A few details to get started.

    No deposit to open

  2. 02/ 04step 2 of 4

    Verify

    Confirm your identity, securely.

    ID and proof of address

  3. 03/ 04step 3 of 4

    Fund

    Add money by bank transfer or card.

    From $0

  4. 04/ 04step 4 of 4

    Trade

    Go live on the platform you already know.

    MetaTrader 5

Cookies on this site

Some cookies are needed to make the site work. With your permission we also use analytics cookies to see which pages are read, so we can improve them. You can change your choice at any time.