How Is the SMA Calculated?
Add the last N closing prices and divide by N. A 20-day SMA on a daily chart uses the sum of the last twenty closes divided by twenty. Each day, the oldest close drops off and the newest enters. Intraday SMAs use the same math on whatever bar length you choose—five-minute, hourly, or daily. Because every bar counts equally, a spike ten days ago influences a 20-period SMA as much as yesterday’s close until it rolls off the window.
That equal weighting makes SMAs smoother than EMAs over the same period—they change more slowly when price suddenly accelerates.
Why Do Traders Favor Specific SMA Periods?
The 20-period SMA often tracks short-term swing bias on daily and intraday charts. The 50-period SMA marks intermediate trend—many funds watch it on dailies. The 200-period SMA is the long-term benchmark: price above a rising 200 SMA is commonly labeled a bull regime; below a falling 200, bear. Golden cross (50 above 200) and death cross (50 below 200) are slow signals—useful for bias, late for precision entries. Match the period to how long you intend to hold, not to what looked best on one chart last week.
On weekly charts, a 10-week SMA approximates a 50-day view for position traders who zoom out for regime checks.
How Do SMAs Act as Support and Resistance?
In uptrends, pullbacks frequently stall at a rising SMA as buyers defend the average price paid over the window. Stops often sit just below the line or the last swing low beneath it. In downtrends, rallies into a falling SMA can offer short entries with stops above. The touch is not magic—liquidity clusters there because many participants watch the same numbers. Failed holds—two closes beyond the SMA against your bias—signal trend fatigue or range conditions.
Treat the SMA as a zone: wicks through the line are normal; consecutive closes on the wrong side matter more for invalidation.
When Are SMA Crossovers Useful?
A faster SMA crossing above a slower one suggests recent prices are climbing above the longer average—bullish crossover logic. Reverse for bearish. Crossovers lag price turns and generate whipsaw when both averages flatten in ranges. Filter crossovers with trend context: only take bullish crosses when price is above the 200 SMA, or when ADX shows rising trend strength. Some traders require the crossover bar to close above both averages with relative volume above 1.2.
Log every crossover signal for a month without trading to see false rate on your universe before risking capital on the rule alone.
How Does SMA Compare to EMA on the Same Chart?
Plot 20 SMA and 20 EMA together on a volatile small cap: EMA hugs price tighter; SMA lags spikes and reduces false breaks on the average itself. Choose SMA when you want cleaner trend definition and fewer average pierces. Choose EMA when entry speed matters more than smoothness. Many systems use SMA for higher timeframe bias and EMA for execution timeframe—document which line triggers your stop so you are not switching mid-trade.
SMAs work best on liquid symbols where the average reflects broad participation; thin names gap through averages without respectful pullbacks.