A moving average smooths price by averaging the last N closes. The simple average (SMA) weights all closes equally. The exponential average (EMA) weights recent closes more.
| Formula | SMA = (close 1 + … + close N) / N. EMA today = close x k + EMA yesterday x (1 – k), with k = 2 / (N + 1). |
|---|---|
| Default settings | 20, 50 and 200 periods are the most used; 12 and 26 appear inside MACD |
| What it is used for | Describing trend direction and slope, and as dynamic reference levels. Crossovers of a fast and slow average are a common rule. |
| What our tests found | Moving averages lag: on a straight-line trend an SMA of N periods trails price by (N – 1) / 2 candles. In our test of always-in-the-market daily crossovers on five instruments, the 50/200 rule lost money on four of five over about five years and the 20/50 rule on one. Over the same periods the 50/200 rule also trailed buy and hold on all five instruments. |
Read the full lesson, with worked examples and charts: Moving averages explained.
Frequently asked questions
SMA or EMA?
Neither is better in general. The EMA reacts faster and whipsaws more, the SMA is smoother and later. Test the exact rule you intend to use, with costs.
Is a golden cross a buy signal?
A golden cross is simply the 50-period average crossing above the 200-period. In our tests the 50/200 rule trailed buy and hold on all five instruments over the same periods, so treat it as a description of trend, not a promise.
Figures come from the lesson linked above; spreads and prices from our demo feed are dated in the lesson and change over time.
Educational content only, not financial advice. Trading involves substantial risk of loss. Read the full risk disclaimer.