Research method
Moving average: simple vs exponential, and what it is for
A moving average replaces each close with the mean of a window of recent closes, so short swings cancel and the slower path of price remains. 596 readings in the TradersWeek archive use one, most often as a baseline or a trend filter for another rule rather than as a signal of its own.
- Output
- Research filter
- Input
- Closing prices of one instrument (any series can be averaged)
- Horizon
- Set by the window length N; 20 bars by default on the TradersWeek chart
- Best use
- Defining trend direction and a baseline that other rules, bands and oscillators are measured against
- A simple moving average (SMA) is the sum of the last N closes divided by N; every close in the window carries the same weight.
- An exponential moving average (EMA) updates as k × close + (1 − k) × previous EMA, with k = 2 / (N + 1), so recent closes weigh more and old ones fade out instead of dropping off.
- Both lag by construction: an average reports where price has been. A shorter window lags less and reacts to more noise.
- In the archive a moving average usually sits beside exponential smoothing (95 readings), RSI (54), trend filters (52) and MACD (42), as one input among several.
How the method is built, and where it has been read
Depends on
Often reviewed together
TRIX4 readings
Often reviewed together
Breakout system4 readings
Often reviewed together
Triangular moving average5 readings
Often reviewed together
Finite Impulse Response Filter5 readings
Often reviewed together
Contrarian strategy5 readings
Often reviewed together
Average Directional Index5 readings
Often reviewed together
Open interest analysis6 readings
Often reviewed together
Mean reversion6 readings
Read in the archive24 of 596 readings
How a moving average is calculated
Pick a window of N bars. The simple moving average adds the last N closes and divides by N. On the next bar the oldest close leaves the window and the newest enters, so the line moves only by the difference between those two values.
The exponential moving average keeps one running value instead of a window: EMA = k × close + (1 − k) × previous EMA, with k = 2 / (N + 1). For N = 20 the latest close gets 2/21 of the weight, about 9.5%, and every older close keeps a shrinking share. The first value has to come from somewhere; a common choice, and the one the TradersWeek chart uses, is the SMA of the first N closes.
The pitfall: lag, and why two EMAs disagree
An equal-weight average of the last N closes is centred (N − 1) / 2 bars in the past. Plotted on the latest bar, it turns after price has turned, and the longer the window the later the turn. The EMA reduces that delay but does not remove it.
Two "EMA 20" lines on the same data can also differ for the first stretch of history: one platform seeds with an SMA, another with the first close. The gap fades as bars accumulate, so compare readings only well past the start of the loaded history.
Parameter set
The choices that change the line
- length
- Window length
Bars in the average (N).
Default: 20A short window follows noise; a long one confirms a turn late. - type
- Weighting
Equal weights (SMA) or exponentially fading weights (EMA).
Default: Simple or exponential — chosen per lineLevels and lengths tuned on one type do not carry over to the other. - source
- Input series
What is averaged: close, midpoint of high and low, or a derived series such as an oscillator.
Default: CloseChanging the input changes the line as much as changing the length. - rule
- Reading rule
What turns the line into a decision: slope, price on one side, a full bar beyond it, a band around it.
Default: None — a separate ruleWithout one, "above the average" is only a description.
What 596 readings in the archive do with moving averages
The moving average is one of the most common building blocks in the TradersWeek research archive: 596 readings, from 48 in the 1980s through 194 in the 1990s, 180 in the 2000s and 161 in the 2010s, plus 13 from the 2020s. In 15 of them it is the main subject; everywhere else it is a component of another construction.
The most frequent companions are exponential smoothing (95 readings), RSI (54), trend filters (52), MACD (42), the stochastic oscillator (42) and market breadth (42). Crossovers of a fast and a slow average appear in 32 readings and have their own card; this one covers the average itself.
The readings where the moving average is the subject return to four themes:
- Lag and how to offset it. Readings rebuild centred averages that line up with turns at the cost of the latest bars, and slope-corrected averages that add a direction term to the plain mean of the same window.
- Smoothing inside other indicators. Many oscillators are a moving average of a raw series: a 13-day average of ease-of-movement values, a 14-interval average of balance of market power, a percent gap between the close and its average.
- A full specification. Several readings insist that the input, the weight or length rule and a stop condition be stated together, and that a stack of averages use one method at fixed lookbacks so each length acts as a filter.
- Price measured against the average. Envelopes at a fixed percentage around an SMA, bars classified as fully above, fully below or overlapping the line, and a 50/200 SMA channel with written entry, exit and invalidation rules.
Where it fits in a workflow
Use a moving average to fix the direction you are willing to trade and the level you measure stretch from. A longer average sets the side; entries, timing and stops come from other rules. Fix the type, the length and the input before you test anything, and keep them fixed while you test.
On the TradersWeek chart
Simple and Exponential Moving Average are separate overlays in the indicator list. Each draws one line on closing prices with a default period of 20, adjustable from 1 to 500. The EMA uses k = 2 / (N + 1) and is seeded with the SMA of the first N closes. The built-in Trend template places a 200-period EMA on a 4-hour chart. Weighted, Hull and other averages are separate indicators with their own cards.
