Simple moving average
SMA averages the last n observations with equal weights.
31 completed lessons with worked examples, practice and limitations.
Start courseA technical indicator transforms historical prices, volume or related inputs. Moving averages smooth price; momentum oscillators describe recent changes; ATR describes range magnitude; ADX summarizes directional strength rather than direction. Indicators may be correlated because they use the same underlying data.
SMA averages equally weighted observations; EMA uses a smoothing coefficient often equal to 2/(n+1). RSI uses smoothed gains and losses; MACD subtracts two EMAs and compares the difference with a signal EMA. Bollinger Bands depend on a rolling mean and standard deviation. VWMA is a rolling volume-weighted average, while session VWAP accumulates from its reset.
Given closes 100, 102 and 104, the three-period SMA is 102. If the next close is 106, the rolling SMA becomes 104. The average has risen, but this calculation uses already observed prices. A crossover can be defined as a change in the ordering of two averages, not every subsequent bar where the fast average is above the slow one.
Match initialization, smoothing, timeframes and corporate-action treatment across tools. Use warm-up data and evaluate signals only on completed observations. Test a single indicator and then incremental combinations with held-out data; avoid adding many redundant indicators solely because their historical backtest looks good.
SMA averages the last n observations with equal weights.
EMA weights recent values more heavily using alpha=2/(n+1).
A crossover compares a fast average with a slower average.
Wilder RSI transforms smoothed average gains and losses into a 0–100 oscillator.
MACD is the difference between fast and slow EMAs; a signal EMA smooths it.
Bands place a multiple of rolling standard deviation around an average.
True range is the maximum of high-low and absolute gaps from prior close; ATR smooths it.
ADX smooths directional movement measures to estimate trend strength.
Stochastic compares close with the recent high-low range.
ROC expresses change from a past price as a percentage.
VWMA weights recent prices by corresponding volume.
Classic pivot uses prior high, low and close.
Traders mark ratios of a selected price swing.
Use distinct information sources rather than duplicate indicators.
Compare a rule with simple baselines over unseen periods.
Continue after the core sequence with these finished lessons.