Two SPY Moving Averages, Both Labeled 20, Tell Different Stories
TradingView analyst Investrade shows why SPY's 20-period SMA and VWMA diverge during a sharp decline: same bars, same closes, different weights. Here's what the gap tells traders.
By Nathan Brooks
3 min read

What's News
- SPY's 20-period SMA and VWMA can show different values on the same 4-hour chart because they weight closes differently.
- The SMA gives each of 20 closes an equal 5% share; the VWMA gives more influence to high-volume bars.
- In the captured decline, the VWMA sat below the SMA because volume weighting pulled the average toward lower closes.
- A rolling VWMA continually updates, unlike an anchored VWAP that accumulates from a fixed starting event.
- On a 4-hour chart, '20' means 20 bars — roughly 3.5 trading days, not 20 trading days.
A State Street SPDR S&P 500 ETF (AMEX: SPY) chart can carry two moving averages, both set to a length of 20, and both can show different numbers at the same moment. TradingView analyst Investrade laid out exactly why in a recent Chart Basics walkthrough — and the answer has nothing to do with a data glitch.
The setup is simple. Both lines use the same 20 bars, the same closing prices, and the same 4-hour timeframe. Yet in the captured chart, the white and amber averages track closely for most of the window, then visibly separate during a sharp decline at the right edge. The white simple moving average (SMA) sits above the amber volume-weighted moving average (VWMA) after the selloff.
Same window, different weights
The divergence comes down to arithmetic, not mystery. As Investrade explains, "The white simple moving average gives each of the latest 20 closing prices an equal share. The amber volume-weighted moving average gives greater influence to closes from bars with more trading volume."
In other words: the time window matches, the price source matches, and the weights do not. Each close in the SMA contributes exactly 5% of the final number. In the VWMA, a close on a heavy-volume 4-hour bar pulls harder on the line than a close on a thin one.
That's why the VWMA dropped below the SMA in the decline. "Taken across the full 20-bar window, volume weighting pulls the average toward lower closing prices," Investrade notes. Volume clustered around the falling bars, so the weighted line leaned into the weakness faster than the equal-weight line did.
What the gap doesn't tell you
Traders sometimes over-read these separations, and Investrade is explicit about the limits. "That does not mean every high-volume bar fell. It also does not reveal who traded or why."
The gap between the lines reflects only how closing prices and volume are distributed within the selected window. It's a structural artifact of the weighting math — not a footprint of institutional buying, retail panic, or any specific market participant. If you're using the divergence as a signal, that's the honest ceiling on what it can support.
What does "20" actually mean here?
One detail practitioners trip on: the chart is a 4-hour chart. So "20" means 20 chart bars — roughly 3.5 trading days of price action — not 20 trading days. Both lines roll forward continuously: new bars enter the window, old bars drop out, and the averages recompute with each completed bar.
Investrade also draws a distinction practitioners frequently blur: a rolling VWMA is not an anchored VWAP. The VWMA in this example keeps sliding forward with the chart. An anchored VWAP accumulates from one fixed starting event — an earnings print, a session open, a swing high — and doesn't roll.
How to test it yourself
Investrade's suggested exercise is worth running before you trust either line in live trading:
- Add an SMA and a VWMA, both with length 20 and source Close, to the same chart.
- Find a completed section where the lines separate.
- Compare the volume bars beneath that section.
- Ask which closing prices received more influence in the weighted calculation.
The takeaway for anyone running trend or crossover systems on SPY: when volume concentrates during directional moves, your VWMA-based signals will fire earlier than SMA-based ones — sometimes by a meaningful margin. Knowing which line your strategy actually reads is the difference between interpreting the divergence and getting interpreted by it. Investrade flags the analysis as educational only, with securities shown as illustrations rather than buy or sell recommendations.
Source: tradingview.com
More from Nathan Brooks
Show full bio
News editor covering regulation, policy and their impact on entrepreneurship, startups and venture funding at Business Bearings.
2,460 articles