Trading glossary
Moving average
Trading involves risk. You could lose more than your deposit.
A moving average is the average of a fixed number of recent prices, recalculated on every new bar, which smooths a price series by lagging it.
The simple form adds the closing prices of the last stated number of bars and divides by that number, so each new bar adds one price at the front and drops one off the back. The exponential form weights recent prices more heavily and never fully drops an old one, using a smoothing factor derived from the chosen period. Weighted, smoothed and volume weighted variants apply different weighting schemes to the same idea. All of them take a price series and return a slower version of it.
Two parameters determine everything the line does, and both are choices rather than settings with correct values. The period sets how much is smoothed and therefore how far the line lags: a long period gives a steadier line that turns later, a short one a responsive line that turns on noise. The price input is usually the close, but median, typical and weighted prices are equally available and produce a visibly different line on the same chart. Because an exponential average and a simple average of the same period turn on different bars, two readers with the same period can be looking at different lines.
The recurring misunderstanding is directional. A moving average is an average of prices that have already printed, so a rising line states that the recent window averaged higher than the previous one, which is a statement about the past. Crossings between two averages, of which the golden cross is the most quoted, are geometric events with the same limitation, and in a market moving sideways two averages cross back and forth repeatedly, a behaviour called whipsaw. Averages are also frequently described as support or resistance; that is a convention among chart readers, tested with mixed results, rather than a property of the line.
How it is calculated
A simple moving average equals the sum of the closing prices over the chosen number of periods divided by that number; an exponential moving average equals the current price multiplied by a smoothing factor plus the previous average multiplied by one minus that factor.
A five period simple average, rolling forward one bar
- Closes, oldest to newest
- 100, 102, 101, 103, 104
- Sum
- 510
- Five period average
- 102.0
- Next bar closes at 99, and the 100 drops off
- 102, 101, 103, 104, 99
- New average
- 101.8
Illustrative figures, not YAL prices or terms. The average fell by less than the last bar did, because four of the five prices in the window are unchanged. The same effect works in reverse when an old extreme drops off the back of the window.
Where you see it
On MetaTrader 5 the indicator is added from Insert, Indicators, Trend, Moving Average, where Method selects between simple, exponential, smoothed and linear weighted, and Apply to selects the price input.
In the curriculum
Taught in 6 lessons.
Part of an ordered curriculum of 139 lessons across 10 modules, free and with nothing behind a sign-up.
- What a moving average isModule 07Reading the chart8 min
- Leading and lagging indicatorsModule 07Reading the chart7 min
- What RSI isModule 07Reading the chart8 min
- What MACD isModule 07Reading the chart8 min
- What the stochastic oscillator isModule 07Reading the chart7 min
- What ADX isModule 07Reading the chart7 min
Get started
Open your account in four steps.
A clear path from sign-up to your first trade, in four steps.
No depositNo documents
01/ 04step 1 of 4
Register
A few details to get started.
No deposit to open
02/ 04step 2 of 4
Verify
Confirm your identity, securely.
ID and proof of address
03/ 04step 3 of 4
Fund
Add money by bank transfer or card.
From $0
04/ 04step 4 of 4
Trade
Go live on the platform you already know.
MetaTrader 5



