Moving average
A moving average smooths price over time. It helps read the trend direction and dynamic support/resistance zones — it does not predict the move itself.
Definition
A moving average smooths the closing prices of the last n periods and shows their average level. The SMA variant computes a plain arithmetic mean, while the EMA gives more weight to recent prices, so it reacts faster to the latest changes. Both are functions of historical data and lag the market by roughly half the length of their window. They are not a support or resistance line written in an order book — it is a level computed from price, not from buyers’ orders. They do not predict the direction of the next move.
How it works
SMA(n) is the sum of the last n closes divided by n. The EMA is computed as EMA(previous) + k × (price − EMA(previous)), where k = 2 ÷ (n + 1), giving 0.0392 for 50 periods and 0.00995 for 200. Each new bar enters the window and the oldest one leaves it, so the SMA jumps when an extreme value drops out. The window has a time dimension: MA200 on D1 is about 200 sessions, nearly 9.5 months, while the same 200 bars on H1 are less than 8 trading days, so the two charts describe different phenomena.
Example
The last five closes are 100, 102, 101, 105 and 107, so SMA(5) = (100 + 102 + 101 + 105 + 107) ÷ 5 = 103.00. The previous EMA(5) was 102.50 and k = 2 ÷ 6 = 0.3333, so EMA = 102.50 + 0.3333 × (107 − 102.50) = 104.00. In an uptrend the EMA leads the SMA by 1.00 point. The close of 100 now leaves the window and 101 enters in its place, which lifts SMA(5) to (102 + 101 + 105 + 107 + 101) ÷ 5 = 103.20, even though the current price has not changed.
In practice
An average is a location filter, not a signal: on D1 the crossover of MA50 and MA200, the golden cross, describes a regime change, but it forms after the fact and does not set an entry level. In a consolidation, repeated crossovers of short averages generate losses — on M15 the MA20 changes direction every dozen or so bars, and a 0.8-point spread with several entries a day eats the result. Profits are taxed at 19%, and a loss in a given year can be carried forward over the next five years with a limit of 50% of the loss amount in a single year.
Anti-example / common mistake
Buying every bounce from MA20 on M1. A 20-minute window on a one-minute chart covers a move smaller than the spread, so the bounce alone offers no edge, and with 15 entries a day the round-trip cost runs to dozens of points. The second mistake is fitting the length of the average to a single bull market: MA20 worked in the uptrend, while in a consolidation the same length produced a series of false crossovers, because a parameter describes the past, not the mechanics of the market.
Related lessons
Structure sources
Materials behind this definition — documentary sources, not recommendations.
- ChartSchool (StockCharts) — moving averages (SMA and EMA) — chartschool.stockcharts.com