Student WyckoffPro

Classic tools

SMA: Simple Moving Average Formula and Example

Rate of change, averages and bands around an average.

Your platform in 8 languages

Choose your language for the interface, tool descriptions and detailed guide.

What it shows

Draws the arithmetic average of recent closes on the price chart. Every close inside the selected window has equal weight; the oldest leaves the calculation as a new close enters.

Chart example

The drawing shows a focused historical example calculated with platform data. It explains the readings and does not measure overall performance.

How to read it

The slope helps assess direction; price’s position relative to the line shows its distance from the average. Smoothing necessarily responds with a delay. Crossings can repeat frequently in sideways markets, so read them with the price structure.

SMA formula using closing prices

SMA means simple moving average. Add the latest N valid closing prices and divide the sum by N. Every price inside the window has the same weight, 1/N. Close is the closing price of a bar; N is the selected period.

For SMA(3), closes of 10, 12 and 14 give (10 + 12 + 14) / 3 = 12. At the next close, the window moves: a new price enters and the oldest leaves. This platform uses closes, rather than opens, highs or lows.

SMAₜ = (Closeₜ + Closeₜ₋₁ + … + Closeₜ₋₍N₋₁₎) / N

Example: the SMA(3) window moves

Hypothetical closes of 10, 12, 14, 16 and 18 illustrate SMA(3). They are neither market quotations nor trading results. A dash in the SMA(3) column means that there are not yet enough valid prices for the first complete window.

Example: the SMA(3) window moves
CloseSMA(3) windowRemovedSMA(3)
1010——
1210 · 12——
1410 · 12 · 14—12
1612 · 14 · 161014
1814 · 16 · 181216

At a close of 16, the price 10 leaves: (12 + 14 + 16) / 3 = 14. At 18, the price 12 leaves: (14 + 16 + 18) / 3 = 16. Once the window is full, SMA(3) depends on the latest three valid closes, rather than all earlier history.

What the period means

The period counts bars of the selected chart. SMA(20) on a weekly chart uses 20 weekly closes; on a daily chart it uses 20 daily closes. This does not always mean 20 calendar days: market holidays do not create additional daily bars.

A longer window usually smooths fluctuations more and responds more slowly to a recent price. A shorter window responds faster but changes direction more often. Values such as 20, 50 or 200 are not universally best; choose a period for the question you are analysing.

Lag and crossover limitations

An average describes prices already received and therefore responds with lag. A price/SMA crossover or a crossover of two averages does not by itself prove a reversal. Sideways markets can produce frequent crossings in opposite directions.

At the beginning of loaded history, the line starts after N valid closes. An unknown price is not zero. Before comparing lines, check the instrument, chart period, price input and data completeness; an average's direction does not determine future returns.

SMA settings in the platform

The default SMA period in Student Wyckoff Pro is 20. Period, line colour and thickness are available settings. Colour and thickness change appearance; the period changes the calculation. Compare the same instrument over the same completed chart periods.

When to compare SMA and EMA

SMA weights prices equally inside a finite window. At the same N, EMA gives more weight to the latest price and retains diminishing influence from earlier history. The EMA page contains the detailed comparison and a calculation using these same closes. Faster response does not imply better trading performance.

SMA questions

Why is the line missing at the start?

SMA needs N valid closing prices. The first two SMA(3) values in the example are not yet defined.

Can I replace Close with High?

This platform's SMA uses closes. Its available settings cover the period and line appearance, without a separate price-source selector.

Why can price turn before the average?

Older prices remain inside the window. New closes replace them gradually, so the average can turn later than price.

Available controls

Period 20 by default, colour and line width.

Every tool is included

Choose the subscription length that suits you. Every plan includes all groups and all integrated platform indicators, with no separate charges for Larry Williams, Student Wyckoff or W.D. Gann. Build new combinations within your account.

How to open the platform

  1. Sign in to your personal account and download the Student Wyckoff Pro application for Windows. Run the downloaded file; an application shortcut appears on your desktop at first launch.
  2. Connect from the application and sign in with your usual platform login and password in the browser it opens. The application provides the data connection; charts and settings remain in your browser.
  3. Keep the application and connection tab open while working. Next time, launch from the desktop shortcut. If the connection is interrupted, reconnect and load the chart again.

Yes. Clients need Student Wyckoff Pro for Windows, downloaded from their personal account. After installation, launch it from the desktop shortcut. Charts, indicators and workspaces open in your browser while the application maintains the data connection. Windows 10/11 and internet access are required.

Personal account · Explore the tool guide

Explore the tools in your own workspace

A request does not start the trial: the team agrees your access dates first.

Try 1 day

Enlarge illustration