The 20, 50 and 200-day moving averages describe different spans of the same price history. The 20-day shows recent price behaviour, the 50-day gives intermediate context and the 200-day gives a longer-term reference. Read them together to describe a stock's position before deciding whether a particular setup fits your rules.
Start with three questions: Is price above or below each average? Are the averages rising or falling? Are the averages themselves stacked in order? Those are separate tests. A stock can close above all three while the averages remain stacked downward.
What is a moving average?
A moving average smooths a price series by combining values over time. On a daily chart, a 20-day simple moving average uses the latest 20 trading-session closes, including the current session's close once it is complete.
N-day SMA = sum of the latest N daily closes ÷ N
Trading days are not calendar days. A 20-day average covers roughly four trading weeks, a 50-day average about ten weeks and a 200-day average about forty. Holidays change the calendar span. A 20-period average on a four-hour chart is a different calculation from a 20-day average.
SMA versus EMA
A simple moving average (SMA) gives every close in its window the same weight. An exponential moving average (EMA) gives greater weight to recent prices. Its usual smoothing factor is 2 ÷ (N + 1), applied to the difference between the new close and the previous EMA. The StockCharts moving-average guide explains both calculations and their lag.
For a 20-day EMA, the factor is about 9.52%. Each close has a 5% weight in a 20-day SMA. These are different weighting methods, so their values and crossover dates can differ. Neither removes the need for a tested entry and exit rule.
The examples below use 20, 50 and 200-day SMAs of daily closing prices throughout. Prices are in US dollars, with US trading dates. The series is split-adjusted but not dividend-adjusted. Values are calculated through the named session and rounded to two decimals for display; the calculations use the full available precision.
What does the 20-day moving average tell you?
The 20-day SMA compares the latest close with roughly the last month of trading. It can help you describe a recent pullback, recovery or extension from the average.
- Close above the 20-day: the close is above the mean of the last 20 closes. It does not mean price has beaten every close in that window.
- Close below the 20-day: the close is below that recent mean. It does not, by itself, establish a new downtrend.
- Rising 20-day: the new close entering the calculation is higher than the old close dropping out. It does not prove that price rose today or that momentum is accelerating.
A pullback toward the line is a place to examine the chart, not an automatic order. Check the actual price structure, your entry condition and the price that would invalidate the setup. A moving average does not guarantee support.
A rising average can accompany a falling close
On 7 June 2024, Microsoft closed at $423.85, down from $424.52 the previous session. Its 20-day SMA nevertheless rose from $421.55 to $422.13.
The reason is arithmetic: the new $423.85 close replaced the $412.32 close from 9 May in the 20-session window. The average increased by ($423.85 − $412.32) ÷ 20 = $0.5765. A rising average and a rising daily close are not the same observation.
What does the 50-day moving average tell you?
The 50-day SMA is a slower reference for the intermediate move. Used alongside the 20-day, it helps distinguish a short pullback from a move that has also fallen below the longer window's mean.
A close below the 20-day but above the 50-day is one state. A close below both is another. Neither automatically tells you to exit: the action depends on the rules you chose before entering.
If price repeatedly crosses the 50-day, record that behaviour rather than assuming each crossing starts a durable trend. A flat or slowly changing average can be crossed by ordinary fluctuations. Repeated touches also do not prove that buyers at that level are being “used up”; the line does not reveal their orders.
What does the 200-day moving average tell you?
The 200-day SMA provides longer-term context. A close above it is above the mean of the latest 200 sessions; a close below it is below that mean. Many trend-following rules use this as a filter, but it is still a description of past prices.
Read the slope as well as the price's position. A stock can reclaim a falling 200-day average before the average turns upward. A stock above a rising 200-day can still suffer a substantial short-term decline.
Treat the line as a reference, not a precise floor. Its popularity does not establish who is trading there, how many orders are waiting or whether the next touch will hold. Gaps and continued selling can take price through it.
Example: Microsoft with the three averages together
Microsoft (NASDAQ: MSFT) shows how the same stock can move from agreement to disagreement across these windows.
At the 7 June 2024 close:
- Closing price: $423.85.
- 20-day SMA: $422.13.
- 50-day SMA: $416.01.
- 200-day SMA: $381.48.
Price was above all three averages, and their order was 20 above 50 above 200. Both conditions held. That describes the alignment; it does not establish a suitable entry price or a return to expect.
At the 25 July 2024 close:
- Closing price: $418.40.
- 20-day SMA: $450.20.
- 50-day SMA: $438.90.
- 200-day SMA: $401.14.
Price was now below the 20-day and 50-day averages while remaining above the 200-day. The averages were still ordered 20 above 50 above 200. So the stack alone would miss the fact that price had fallen below the two shorter references.
View full-size Microsoft chart
The useful question is which part of your setup has changed. A rule requiring price above all three no longer qualifies on 25 July. A rule checking only price above the 200-day still does. Record the actual rule instead of labelling the whole chart simply bullish or bearish.
Example: Apple above every average without an upward stack
On 3 May 2024, Apple (NASDAQ: AAPL) closed at $183.38. Its averages were:
- 20-day SMA: $170.50.
- 50-day SMA: $172.39.
- 200-day SMA: $181.19.
The close was above every average, but their order was 20 below 50 below 200. A price-above-all filter passed; a rule requiring 20 above 50 above 200 did not. These conditions select different sets of dates and trades.
Apple had closed at $173.03 on 2 May and opened at $186.65 on 3 May. A rule evaluated using the completed 3 May close could not have supplied that morning's entry decision. Keep the signal's observation time separate from any later execution. These examples show historical chart states, not actual trade fills or strategy performance.
How to read the 20, 50 and 200-day averages together
Use the same sequence each time:
- Fix the chart settings. Confirm daily bars, SMA or EMA, the closing-price input and the price-adjustment basis.
- Start with the 200-day. Note price above or below it and whether it has risen or fallen over your chosen comparison period.
- Add the 50-day. Check whether the intermediate reference agrees with the longer-term picture.
- Use the 20-day for the recent move. Describe a pullback, recovery or distance from the recent mean without turning a touch into an assumed fill.
- Check the order separately. “Price above all three” and “20 above 50 above 200” are different rules. State explicitly if you require both.
- Apply your trade plan. The indicator context does not replace an entry trigger, invalidation price, position size or exit rule.
If you want a defined set of entry and exit rules rather than a chart-reading guide, use the triple moving-average filter strategy. Keep that strategy's parameters distinct from the observations above.
What about golden crosses and 20/50 crossovers?
A price crossing an average and two averages crossing each other are different events. Apple closing above all three on 3 May did not mean its 50-day had crossed above its 200-day.
The terms golden cross and death cross commonly refer to the 50-day moving average crossing above or below the 200-day. A 20/50 crossover compares shorter windows. In either case, the chosen SMA or EMA setting matters, and both lines depend on prices that have already occurred.
This guide focuses on reading the three references together. For the separate trading setup, see the 20/50 EMA crossover strategy, which covers its own filters, stops and exits.
Turn the chart reading into a record you can review
Before a trade, record the date, timeframe, average type, price relative to each line and the rule you intend to follow. Keep these context notes separate from the actual entry, stop, units and exit.
Once an entry and invalidation price are defined, use the position size calculator to check the planned size. A moving-average line is not a guaranteed exit price, and the calculator does not include fees, slippage or gaps.
In Swingfolio, keep the context in your trade notes and attach the strategy you actually followed. The trading journal walkthrough shows how a plan and a review fit together. Judge a group of comparable records after costs; do not infer an edge from these selected Microsoft and Apple examples.
Common questions
Which moving average is best for swing trading?
There is no universal best setting. The 20-day reacts to a shorter window, the 50-day provides intermediate context and the 200-day provides a longer-term filter. Choose settings that match a written rule, then test that rule consistently.
Is price above all three moving averages a buy signal?
It is a filter condition. It says the latest price is above each average, not that the averages are stacked upward or that an entry has acceptable risk. The Apple example shows the difference.
What does a break below the 200-day moving average mean?
A daily close below it means the close is below the latest 200-session average. It may disqualify a rule that requires price above that line, but it does not prove a lasting downtrend or determine an exit for every strategy.
Why do moving averages differ between chart platforms?
Check SMA versus EMA, daily versus intraday bars, adjusted versus unadjusted data, the price input and whether the current session is complete. EMA starting-history choices can also produce differences. Compare the same settings and dates before treating two values as inconsistent.
Can an average rise when the stock falls?
Yes. A simple average rises when the new value exceeds the value leaving its window, even if today's close is below yesterday's. Microsoft on 7 June 2024 illustrates that distinction.
General information only. Not financial advice.


