Simple Moving Average (SMA)
The Simple Moving Average smooths price data by calculating the average closing price over a specified number of periods. It is one of the most fundamental trend-following indicators.
TL;DR
- SMA is a trend indicator used in technical analysis
- Price above SMA indicates bullish trend; price below indicates bearish. Crossovers between different SMA periods generate buy/sell signals.
- Best timeframes: H1, H4, D1
- Skip to API docs →
What is Simple Moving Average?
The Simple Moving Average smooths price data by calculating the average closing price over a specified number of periods. It is one of the most fundamental trend-following indicators.
How SMA is Calculated
SMA = (P₁ + P₂ + ... + Pₙ) / n
where P = closing price, n = number of periods
Available periods: 10, 20, 50, 100, 200 How to Interpret SMA
Price above SMA indicates bullish trend; price below indicates bearish. Crossovers between different SMA periods generate buy/sell signals.
Trading Strategies Using SMA
Strategy 1: Golden Cross / Death Cross
When the 50-period SMA crosses above the 200-period SMA (golden cross), it signals a bullish trend. The opposite (death cross) signals bearish.
Entry Rules
Buy when SMA(50) crosses above SMA(200). Sell when SMA(50) crosses below SMA(200).
Exit Rules
Exit on the opposite crossover signal or when price closes significantly below the SMA(50).
Strategy 2: SMA Bounce Strategy
In trending markets, price often pulls back to key SMAs before continuing. The SMA(20) and SMA(50) act as dynamic support/resistance.
Entry Rules
In an uptrend, buy when price bounces off SMA(20) or SMA(50) with a bullish candlestick pattern.
Exit Rules
Exit when price closes below the SMA used as support, or target a 2:1 reward-to-risk ratio.
Combining SMA with Other Indicators
SMA works best when combined with complementary indicators:
- SMA + Exponential Moving Average: Combine for stronger confluence signals
- SMA + MACD: Combine for stronger confluence signals
- SMA + Bollinger Bands: Combine for stronger confluence signals
SMA Across Different Timeframes
SMA works across all 7 timeframes but performs best on H1, H4, D1 for most trading styles.
Accessing SMA via TickAtlas API
https://tickatlas.com/v1/indicator Python Example
import requests
url = "https://tickatlas.com/v1/indicator"
headers = {"X-API-Key": "YOUR_API_KEY"}
params = {
"symbol": "EURUSD",
"indicator": "SMA_20",
"timeframe": "H1"
}
response = requests.get(url, headers=headers, params=params)
data = response.json()
print(data) Sample Response
{
"symbol": "EURUSD",
"indicator": "SMA_20",
"timeframe": "H1",
"timestamp": "2026-03-21T14:00:00Z",
"value": 58.43,
"signal": "neutral"
} Common Mistakes to Avoid
- 1
Using SMA as a sole entry signal without trend confirmation
- 2
Applying short-period SMAs to noisy lower timeframes
- 3
Ignoring the lag inherent in all moving averages — SMA reacts slower than EMA
Frequently Asked Questions
What is the best SMA period for day trading?
For day trading, SMA(20) and SMA(50) are popular on H1 charts. The SMA(200) on H1 is widely watched as a major trend filter. The best period depends on your strategy and market conditions.
What is the difference between SMA and EMA?
SMA gives equal weight to all periods, while EMA gives more weight to recent prices. EMA reacts faster to price changes but may generate more false signals. SMA is smoother and better for identifying long-term trends.
How to access SMA data via API?
Use GET /v1/indicator?symbol=EURUSD&indicator=SMA_20&timeframe=H1 with your API key. Available periods: SMA_10, SMA_20, SMA_50, SMA_100, SMA_200.
Continue learning
More trend indicators
- Indicator
Exponential Moving Average (EMA)
The Exponential Moving Average gives more weight to recent prices, making it more responsive to new information than the SMA.
Read more - Indicator
Moving Average Convergence Divergence (MACD)
MACD is a trend-following momentum indicator that shows the relationship between two EMAs.
Read more - Indicator
Bollinger Bands (BB)
Bollinger Bands consist of a middle SMA band with upper and lower bands at standard deviations.
Read more
Ready to use SMA data in your application?
Start your free trial and access real-time SMA data across 7 timeframes.