Simple Moving Average (SMA)
The Simple Moving Average is the most fundamental trend-following indicator in technical analysis. It calculates the arithmetic mean of closing prices over a specified number of periods, producing a smooth line that filters out short-term noise and reveals the underlying trend direction.How It Works
For each bar on the chart, the SMA value is computed as:Close₁ through Closeₙ are the most recent N closing prices.
Every closing price in the window carries equal weight — this is the key distinction from the EMA, which weights recent prices more heavily. As a result, the SMA responds more slowly to sudden price changes but provides a more stable, less noisy signal.
Indicator Type
Overlay — the SMA line is drawn directly on the price chart, sharing the same Y-axis as candlesticks.Settings
Period Selection Guide
The period is the most important setting. Different periods serve different analytical purposes:Interpretation
Trend Direction
- Price above SMA: Uptrend. The SMA acts as dynamic support.
- Price below SMA: Downtrend. The SMA acts as dynamic resistance.
- SMA slope rising: Bullish momentum is increasing.
- SMA slope falling: Bearish momentum is increasing.
- SMA flat: Market is in consolidation or a range.
Dynamic Support and Resistance
In trending markets, price often pulls back to the SMA and bounces. The SMA acts as a moving support (uptrend) or resistance (downtrend) level. The longer the period, the stronger this dynamic level tends to be.Moving Average Crossovers
A common strategy uses two SMAs of different periods:- Golden Cross: Short-period SMA crosses above long-period SMA — bullish signal.
- Death Cross: Short-period SMA crosses below long-period SMA — bearish signal.
Multi-SMA Setup Example
A practical three-SMA configuration:
Add each SMA as a separate indicator instance and configure the period and color individually.
SMA vs. EMA
Choose SMA when you need a stable, reliable trend reference. Choose EMA when you need quicker signals and are willing to accept more false moves.
Practical Considerations
- Timeframe matters: An SMA(20) on a daily chart covers ~1 month of trading. The same SMA(20) on a 5-minute chart covers less than 2 hours. Always consider what time window your period actually represents.
- Volatile markets: In highly volatile crypto markets, very short SMA periods (below 10) can produce excessive whipsaw. Consider using a slightly longer period or switching to EMA for faster response with less noise.
- Flat markets: When price oscillates around the SMA in a range, the indicator generates many false signals. Combine with a trend filter (e.g., ADX or higher-timeframe SMA) to avoid trading during consolidation.
Alerts
The SMA indicator does not support built-in alert rules. To create alerts based on SMA crossovers or price-SMA interactions, use the general Alerts system with custom conditions.Related Indicators
- EMA — Exponential Moving Average, faster-reacting alternative
- VWAP — Volume-weighted average, institutional benchmark
- Bollinger Bands — SMA with volatility bands