Technical analysis · Glossary
Moving average
A smoothed series calculated from prices over a rolling window.
Definition and explanation
A moving average smooths price data by calculating an average over a defined lookback. A simple moving average weights observations equally, while an exponential moving average gives more weight to recent values. Moving averages lag price and can produce false signals in sideways markets.
Example
A 20-period moving average on a 1-hour chart averages the relevant prices across the latest 20 hourly periods.
Calculating a simple moving average by hand
A simple moving average (SMA) adds up the last n closing prices and divides by n. With five daily closes of $100, $102, $101, $105 and $107, the 5-day SMA is (100 + 102 + 101 + 105 + 107) / 5 = $103. When the next close of $110 arrives, the oldest value of $100 drops out and the new average becomes (102 + 101 + 105 + 107 + 110) / 5 = $105.
That rolling replacement is why the line moves: each new bar adds one price and removes another. A sudden change in the line can come as much from an unusual old price leaving the window as from the new price entering it.
How the exponential version weights recent prices
An exponential moving average (EMA) uses a smoothing factor, commonly 2 / (n + 1). For a 9-period EMA that factor is 0.2, so EMA today = price today x 0.2 + EMA yesterday x 0.8. If yesterday's EMA was $100 and today's close is $110, the new EMA is 22 + 80 = $102.
Every past price still has some influence, but that influence decays over time. The result tracks recent moves more closely than an SMA of the same length, at the cost of reacting more to short-lived spikes.
Practical uses on a chart
Traders use moving averages to describe direction (is the line rising or falling?), to gauge stretch (how far is price from its average?) and as dynamic reference levels where price has previously paused. The slope of a longer average is often a cleaner read of trend than any single candle.
Lookback length should suit the holding period. A 20-period average on a 15-minute chart describes a few hours of trading, while a 200-period average on a daily chart spans many months. Because crypto trades continuously, a daily average includes weekends, so periods are not directly comparable with averages on assets that trade only on weekdays.
Pitfalls to keep in mind
Treating a popular average as a hard floor or ceiling is a common error; price often pierces it before reversing or keeps going. Fitting an unusual lookback because it worked on past data is another trap, since it may not hold on new data. An average is a summary of what has already happened, not a level the market is obliged to respect.
Frequently asked questions
Which moving average is best for crypto trading?
There is no single best setting. Shorter averages respond faster but are noisier, longer ones are smoother but slower, and the choice should match the timeframe you actually trade.
What does it mean when price is above the 200-day moving average?
It means the current price is higher than the average closing price of the last 200 days, which many people read as a broadly positive longer-term context. It is a description, not a forecast.
Why does my moving average differ from another platform's?
Platforms may use different price sources, different daily close times on a 24/7 market, or a different type of average. Small differences in inputs produce slightly different lines.
Educational information only. Trading terms and contract mechanics can vary by venue and market. Verify the rules of the provider you use.