What Is a Moving Average? SMA and EMA Explained - Perpmate
A moving average (MA) is a technical indicator that calculates the average price of an asset over a defined number of periods, creating a smoothed line on the chart that helps traders identify the prevailing trend direction. In perpetual futures trading, moving averages are among the most widely used tools for determining whether to go long or short and for timing entries and exits.
Types of Moving Averages
Simple Moving Average (SMA)
The SMA calculates the arithmetic mean of closing prices over a set number of periods. Each period carries equal weight.
Formula: SMA = (P1 + P2 + P3 + ... + Pn) / n
Example: A 20-period SMA on a daily chart adds up the last 20 closing prices and divides by 20. If BTC closed at $60,000, $60,500, $61,000... over 20 days, the SMA reflects the average of all 20 values.
Characteristics:
- Smooth and stable line
- Slower to react to sudden price changes
- Best for identifying longer-term trends
- Less prone to false signals in choppy markets
Exponential Moving Average (EMA)
The EMA applies more weight to recent prices, making it more responsive to current market conditions.
Characteristics:
- Reacts faster to price changes than SMA
- Hugs price action more closely
- Better for short-term and day trading
- More prone to whipsaws in ranging markets
SMA vs. EMA Comparison
| Feature | SMA | EMA |
|---|---|---|
| Weighting | Equal across all periods | Heavier on recent prices |
| Responsiveness | Slower | Faster |
| Best for | Swing trades, long-term trends | Day trades, scalping, fast markets |
| False signals | Fewer in choppy markets | More in choppy markets |
| Lag | Higher | Lower |
Key Moving Average Periods
Different periods serve different purposes. The most important ones for perps traders:
| Period | Timeframe Focus | What It Shows |
|---|---|---|
| 9 or 10 | Very short-term | Immediate momentum, used by scalpers |
| 20 | Short-term | Current trend direction, swing trade entries |
| 50 | Medium-term | Intermediate trend, institutional reference |
| 100 | Medium-long term | Broader trend filter |
| 200 | Long-term | Major trend direction, bull vs. bear market divider |
The 200-day moving average is often considered the dividing line between a bull market (price above the 200 MA) and a bear market (price below the 200 MA).
Moving Average Crossover Signals
When two moving averages of different periods cross, it generates a trading signal:
Golden Cross (Bullish)
The shorter MA crosses above the longer MA. This indicates that recent price momentum is turning positive and a new uptrend may be forming.
Classic golden cross: 50-day SMA crosses above the 200-day SMA.
Perps application: A golden cross on the daily chart suggests opening long positions on pullbacks, as the broader trend is shifting bullish.
Death Cross (Bearish)
The shorter MA crosses below the longer MA. This indicates that recent momentum is turning negative and a downtrend may be beginning.
Classic death cross: 50-day SMA crosses below the 200-day SMA.
Perps application: A death cross suggests favoring short positions on rallies, as the trend is shifting bearish.
Trading with Moving Averages on Perpmate
Strategy 1: Trend Direction Filter
Use the 200 EMA on the 4-hour chart to determine your directional bias:
- Price above 200 EMA: Only look for long entries
- Price below 200 EMA: Only look for short entries
This single rule filters out many losing trades by keeping you aligned with the dominant trend.
Strategy 2: MA Bounce Entries
In a trending market, price often pulls back to a key moving average before continuing in the trend direction.
Example -- Long entry off the 20 EMA:
- BTC is in an uptrend, consistently bouncing off the 20 EMA on the 4-hour chart.
- Price pulls back to the 20 EMA at $62,000.
- Entry: Long at $62,100 with 10x leverage. Margin: $1,000 USDC. Position size: $10,000.
- TL: $61,200 (below the 20 EMA by a buffer). Risk: ($62,100 - $61,200) / $62,100 x 10 = 14.5% of margin = $145.
- TP: $64,500 (previous swing high). Profit: ($64,500 - $62,100) / $62,100 x 10 = 38.6% of margin = $386.
- Risk-reward: 1:2.7.
Strategy 3: EMA Crossover System
Use the 9 EMA and 21 EMA on the 1-hour chart for short-term perp trades:
- 9 EMA crosses above 21 EMA: Open a long position
- 9 EMA crosses below 21 EMA: Open a short position
- Stop-loss: Below the most recent swing low (for longs) or above the most recent swing high (for shorts)
This system works well in trending markets but produces whipsaws during consolidation.
Practical Example: Combining MAs with Support/Resistance
ETH is trading at $3,400. The 50 EMA on the daily chart sits at $3,350, and there is horizontal support at $3,300. This confluence of the MA and the support level strengthens the case for a long entry:
- Entry: Long ETH at $3,360 (near the 50 EMA) with 5x leverage. Margin: $2,000. Position size: $10,000.
- TL: $3,240 (below both the MA and the horizontal support). Risk: ($3,360 - $3,240) / $3,360 x 5 = 17.9% of margin = $357.
- TP: $3,600 (next resistance). Profit: ($3,600 - $3,360) / $3,360 x 5 = 35.7% of margin = $714.
- Risk-reward: 1:2.
The combination of moving average support and horizontal support provides a higher-confidence entry than either signal alone.
Common Moving Average Mistakes
- Using MAs in ranging markets: Moving averages are trend-following indicators. In sideways markets, they produce repeated false signals. Only trust MA signals when there is a clear trend.
- Relying on a single MA: Using one moving average in isolation provides weak signals. Combine MAs with support and resistance, volume, or other indicators.
- Chasing crossover signals late: By the time a golden cross or death cross appears on the daily chart, a large portion of the move may already be over. Use lower timeframe crossovers for earlier entries.
- Over-optimizing periods: Constantly changing MA periods to fit past data (curve fitting) does not produce reliable future results. Stick to widely followed periods (20, 50, 200).
Related Terms
- Bull Market: Price trading above key moving averages signals bullish conditions
- Bear Market: Price trading below key moving averages signals bearish conditions
- Support and Resistance: Moving averages act as dynamic support and resistance levels
- Take Profit (TP): Can be set at the next moving average level in counter-trend trades
- MACD: An indicator built from moving average relationships
For more trading strategies, read our guide on common trading mistakes to avoid.