Moving averages (MA) are widely used to identify trends and smooth out price fluctuations, but they can sometimes lag behind current market movements. This delay occurs because moving averages rely on historical price data.
The lag can be reduced by using shorter lookback periods, choosing more responsive moving average types or combining them with other indicators to get faster confirmation of price changes.
This article talks about moving averages in detail, how to do it and the risks.
Key Takeaways
-
Use shorter time periods so the moving average responds more quickly to recent price changes.
-
Choose more responsive types such as the EMA or WMA, which give greater weight to recent prices.
-
Avoid making the period too short, as this can increase market noise and produce false signals.
-
Combine different moving averages to spot trend changes while filtering out short-term fluctuations.
-
Use price action, volume, or momentum indicators to confirm moving average signals before making trading decisions.
What is a Moving Average?
A moving average is a technical indicator that smooths out price data over a specified time window. For example, a 20-period moving average incorporates data from the past 20 sessions, dropping the oldest observation as each new session begins.
Types of Moving Averages Used in Technical Analysis
-
Simple Moving Average (SMA): The most basic variant, calculated by taking the arithmetic mean of a stock's prices over a specific number of periods. Every price point in the chosen window carries equal weight, producing a smooth line that filters out minor market noise but reacts slowly to sudden price shifts.
-
Exponential Moving Average (EMA): Designed to overcome the lag of the SMA by applying a multiplier that gives significantly more weight to recent price data. This makes the indicator bend toward current market action much faster, though it can still lag during volatile breakouts.
-
Weighted Moving Average (WMA): Assigns a linearly decreasing weight to older price data, ensuring that the most recent trading sessions have the greatest impact on the final calculated value. It is more responsive than an SMA and serves as the mathematical building block for the Hull Moving Average.
-
Hull Moving Average (HMA): Developed by Alan Hull to resolve the latency trade-off completely, merging weighted moving averages of different lengths with a square-root smoothing calculation to track prices closely without excessive choppiness.
Other Ways to Reduce Lag
-
Using weighted and exponential calculations: Replacing simple moving averages with Exponential Moving Averages (EMA), Weighted Moving Averages (WMA), or Hull Moving Averages (HMA) places greater weight on recent price action to react faster to market changes.
-
Applying the Kaufman Adaptive Moving Average (KAMA): Adjusting moving average periods dynamically based on market volatility, speeding up during trends and slowing down during consolidation phases.
-
Employing Zero-Lag Exponential Moving Averages (ZLEMA): Factoring in a specific lookback period to eliminate or drastically reduce inherent indicator delay.
-
Combining momentum oscillators: Utilising leading indicators like the Relative Strength Index (RSI) or Stochastic Oscillator alongside trend-following tools to anticipate shifts before price action completes a crossover.
-
Shortening timeframes: Moving to a lower intraday timeframe (e.g., shifting from a 1-hour to a 15-minute chart) naturally compresses calculation periods, though this introduces more market noise and false signals.
What is the Difference Between Hull, Simple, Exponential Moving Average, and Weighted Moving Average (WMA)
| Feature | Hull Moving Average (HMA) | Simple Moving Average (SMA) | Exponential Moving Average (EMA) | Weighted Moving Average (WMA) |
| Response to Recent Prices | Fast | Slower | Faster than SMA | Faster than SMA, slower than EMA |
| Lag | Relatively low | Higher | Moderate | Lower than SMA, higher than EMA |
| Smoothness | High | High | Moderate to High | Moderate |
| Calculation Complexity | High | Simple | Moderate | Moderate |
| Primary Use Case | Trend direction and turning points | Broad macro trend analysis | Trend and momentum tracking | Trend identification with focus on recent price action |
How to Reduce Lag in Moving Averages?
-
Shifting the Weights (EMA and WMA): Simple Moving Averages (SMA) suffer from high lag because they treat every price point equally. Exponential and Weighted Moving Averages reduce this lag by assigning greater weight to the most recent price action, causing the indicator to respond more quickly to current market prices.
-
The HMA Engineering Solution (Double-Weighting & Subtraction): The Hull Moving Average (HMA) reduces lag further through a unique formula: it calculates a faster, half-period WMA (doubling its value) and subtracts the slower full-period WMA (2 * WMA(n/2) - WMA(n)). This subtraction actively overcompensates for and cancels out historical lag.
-
Square-Root Smoothing: Speeding up a moving average normally creates choppy, erratic lines full of false signals. The HMA solves this by applying a final smoothing layer based on the square root of the period (square root of n), thereby maintaining curve smoothness without reintroducing latency.
How to Trade Moving Averages?
1. Simple Moving Average (SMA)
The SMA is the arithmetic mean of past prices, treating all historical data points equally.
-
Formula: SMA = (P1 + P2 + ... + Pn) / n (where P is the closing price and n is the total number of periods)
-
How to Use: It is best utilised on higher timeframes (such as daily or weekly charts) to map out broad macro trends or to establish major structural support and resistance zones, such as the widely watched 200-day SMA.
2. Exponential Moving Average (EMA)
The EMA actively addresses SMA latency by applying a mathematical weighting multiplier that heavily prioritises the most recent trading sessions.
-
Formula: EMA(t) = [P(t) x (2 / (n + 1))] + EMA(t-1) x [1 - (2 / (n + 1))]
-
How to Use: It is ideal for momentum trading and trend-following crossover strategies (e.g., a 9 EMA crossing above a 21 EMA to signal a bullish entry).
3. Hull Moving Average (HMA)
The HMA creatively uses staggered weighted moving averages and square-root smoothing to practically eliminate latency without sacrificing curve smoothness.
-
Formula: HMA(n) = WMA [2 x WMA(n/2) - WMA(n), square root of n]
-
How to Use: Instead of crossovers, traders monitor the HMA's slope direction to pinpoint real-time momentum shifts. A directional flip (changing from falling to rising) often serves as a primary entry or exit trigger.
Points to Keep in Mind When Using Moving Averages
-
Moving averages are lagging indicators: They are calculated using historical prices and confirm trends after they have already begun, meaning they should not be treated as predictive tools.
-
Avoid relying on a single indicator: Moving averages work best when combined with volume analysis, support and resistance levels, and broader price action to filter out false signals.
-
Match the timeframe to your strategy: Shorter periods (like 9 or 21) react quickly for short-term and intraday trading but generate more noise, while longer periods (like 50 or 200) suit macro trend analysis.
-
Watch out for whipsaws in sideways markets: In choppy or range-bound conditions, moving averages can flip frequently and produce false entries and exits.
-
Understand the indicator's core purpose: Use indicators such as the Hull Moving Average to identify slope direction and momentum turning points, rather than relying on delayed crossover strategies.
Conclusion
Moving averages remain indispensable tools for identifying market trends, but they inherently carry latency due to their reliance on historical price data. While traditional indicators like the Simple Moving Average (SMA) prioritise smoothness at the cost of speed, and the Exponential Moving Average (EMA) applies recent weighting to reduce lag, innovative tools like the Hull Moving Average (HMA) successfully minimise delay altogether. By combining a faster half-period Weighted Moving Average, full-period subtraction, and square-root smoothing, the HMA tracks price fluctuations closely without sacrificing readability.
