Compare simple and exponential moving averages
3 min read
A simple moving average gives each input in its rolling window equal weight. An exponential moving average gives newer inputs greater weight, with the impact of earlier inputs decaying over time. Either line summarizes past prices. The interval and input series matter as much as the period count.
Compare the same input
Use completed closes from the same session definition and adjustment basis. A short rolling average usually responds more quickly than a long one. An EMA can react earlier than an SMA of the same nominal length. That responsiveness also makes a brief outlier more visible.
Hypothetical example
Five completed closes of $28, $28, $29, $29, and $31 have a five-bar SMA of $29. If the next close is $28, the five-bar SMA remains $29 because the oldest $28 rolls out. An EMA can move downward after that new close because it gives the incoming observation more weight.
Practice
Place an SMA and an EMA of equal length on a historical chart. Count reversals in their slope during a range and a trend. Note how many would have been visible using completed bars alone.
Calculate what changes after one bar
An EMA can be updated by adding a share of the difference between the new value and the existing average. Use a hypothetical existing average of $40, a new close of $44 and a teaching weight of one quarter. The next EMA would be $41. If the following close remains $44, the EMA moves another $0.75 to $41.75. An equally weighted rolling average also depends on the value that dropped out of the window. Show that difference by writing a five-value window and crossing out the oldest observation whenever you add another.
Plan a fair comparison
Choose a sufficiently long warm-up history before reviewing where the lines intersect. An EMA initialized from a short history can differ from another platform's reading even if both use the same settings. Review the source input, such as close versus typical price. Decide ahead of time whether you compare the lines during a developing candle or after it closes. If they are close together, small revisions from a newly completed bar can switch their order. Try the same method on a trending sample and a sideways sample and log the duration between changes.
Check your interpretation
The short average crosses above the long average at $48, but the next bars stay between $47 and $48.50 while the two lines intersect again. Was the original cross calculated incorrectly? The calculation can be correct while the market remains sideways. Averages measure prior price behavior and cross as observations enter and leave their windows. A useful exercise records how frequently a crossover persists given a fixed definition, including periods where transaction costs would outweigh the moves you are testing.
Data-quality drill
On a paper chart, compare applying a moving average to closes with applying the same window to each bar's midpoint. If the closes consistently sit near the highs, the close-based line can differ from the midpoint version. Choose one input ahead of the exercise and write it in your legend. Changing it mid-test can alter when a crossover first becomes visible.
Further reading
Continue chart context
Lesson 5 of 10

