Moving average and the 200-day line explained simply
A moving average is the mean of the closing prices over a fixed number of past days, recalculated every day: the newest price is added, the oldest drops out. The 200-day line is the moving average of the last 200 trading days and shows the long-term course of a price.
In short
- A moving average smooths out daily swings and makes the rough direction of a price visible.
- The simple version (SMA) weights all days equally; the exponential one (EMA) weights recent days more heavily.
- The 200-day line covers roughly ten months of price history.
- If the price is above the line, it was recently higher than its average over the past 200 trading days. That is not a forecast.
- Dividing the price by its average gives a ratio that lets you compare securities: relative strength by Levy.
As of 11/16/2026
How far is a price above its average? The scanner shows it in comparison.
Go to the scannerThe average in everyday language
Imagine you write down the temperature every morning. A single cold day in May tells you little. The average of the last two weeks tells you more about whether it is getting warmer.
Prices work the same way. A day at minus 3% can be noise. The average over many days shows where the price stands overall. And because a new value is added every day and the oldest drops out, this average moves along. Hence the name "moving".
SMA and EMA: two ways to calculate
Every charting program shows two abbreviations. Both mean a moving average; they just calculate it differently.
Worked example: SMA
SMA stands for simple moving average. Sample figures over five days: the closing prices are 10, 11, 12, 11 and 13. Together that is 57. Divided by 5, that gives 11.4.
On the sixth day the price closes at 14. Now the 10 from the first day drops out. The new series is 11, 12, 11, 13, 14, together 61, divided by 5 gives 12.2. The line has risen.
The 200-day line works exactly the same way, just with 200 values. That is why a single day barely moves it. Example: if a price of 90 drops out and one of 106 is added, the line rises by only 16 ÷ 200 = 0.08.
Worked example: EMA
The EMA (exponential moving average) gives more weight to the most recent days. It uses a smoothing factor of 2 ÷ (n + 1). For five days that is 2 ÷ 6, or one third.
Same sample figures: the previous day's EMA is 11.4, the new price is 14. New EMA = 11.4 + (14 − 11.4) × ⅓ = about 12.27. So here the EMA has risen a bit more than the SMA. It reacts faster to turns, but fluctuates more.
Which version is "right"? Neither. What matters is that you use the same one when comparing.
Why exactly 200 days?
There is no fixed rule. 200 trading days are about ten calendar months, almost a full trading year. The number became customary because it has appeared in market reports for decades, so many market participants watch it.
Other time windows are just as legitimate. Short lines such as 20 or 50 days react quickly and jitter. Long ones such as 200 days are sluggish and filter out almost everything that happens within a few weeks. Levy's original paper used the current week plus the 26 weeks before it. RSL-scan offers 26 weeks for the longer view and 26 days for the shorter one.
In the scanner you choose 26 weeks for the longer view or 26 days for the shorter one.
View the time framesPrice above or below the line: what it tells you
This is the question most people are really asking. If the price is above the 200-day line, it is higher than its average over the last 200 days. Many read this as a sign of an intact uptrend, especially when the line itself is rising. That may be true. How to check a trend properly is covered under how to spot a trend.
Golden cross and death cross
You hear these terms often. A golden cross is when the 50-day line crosses the 200-day line from below. A death cross is the reverse. Both describe that the short-term average has shifted relative to the long-term one. Nothing more.
Typical thinking errors
First: reading every crossover as a turning point. If a price moves sideways around its line, it crosses it constantly, and almost none of these crossovers is a real turn. That is why we read a crossover not as a call to act, but as an observation. Second: forgetting that the line lags. After a slump it stays above the price for a long time; after a recovery it stays below for a long time. Third: automatically reading "above the line" as good. If a price is 40% above it, above all it has run a long way.
By the way: RSI and MACD also work with averages. How is explained on the page about RSI and MACD.
From the line to a ratio: the distance in percent
"Above or below the line" is a yes-or-no question. The more interesting question is: how far? Divide the price by its average. Price 110, average 100 (sample figures) gives 1.10. The price is 10% above the line.
That is exactly relative strength by Levy. The advantage: you can use it to compare securities with very different prices and sort them by strength, the basic idea behind momentum. RSL-scan ranks securities by this ratio within one market and re-sorts the ranking in the scanner once a day. The rules Levy derived from it are described on the page about Levy's method.
Price divided by average, sorted for an entire market: that is the ranking.
View the rankingMethod and author
RSL-scan editorial team. RSL-scan ranks securities by relative strength (Levy RSL) within one market. The rankings are re-sorted once a day. No forecast. The basis is the ratio from R. A. Levy, "Relative Strength as a Criterion for Investment Selection", Journal of Finance, 1967: price divided by moving average, at RSL-scan over 26 weeks or 26 days. All figures on this page are sample values. As of 11/16/2026.
Frequently asked questions
What is a moving average?
A moving average is the mean of the closing prices over a fixed number of past days. Every day the newest price is added and the oldest drops out. This creates a smoothed line on the chart.
What is the 200-day line?
The 200-day line is the average of the closing prices of the last 200 trading days, roughly ten months of price history. It is recalculated every trading day.
What does the 200-day line tell you?
It shows whether the price is above or below its long-term average. Many see a price above a rising line as an uptrend. That is not a forecast, and in sideways phases the price often crosses the line without consequences.
How do you calculate the 200-day line?
You add up the closing prices of the last 200 trading days and divide by 200. The next day the oldest price drops out and the newest is added. Charting programs show the line automatically.
200-day line: EMA or SMA?
Usually the simple version (SMA) is meant. The EMA weights recent prices more heavily and reacts faster. Neither is better in principle.
Where is the 200-day line of the S&P 500?
It changes every trading day and can be shown in any charting program. This page deliberately gives no current value, because it would already be out of date tomorrow.
Sources
- Deutsche Börse, stock exchange glossary: Gleitender Durchschnitt (in German). Definition of the moving average, simple version, 200-day line.
- TickerEagle: 200-Tage-Linie: Trendfilter einfach erklärt (in German). 200 trading days as roughly ten months, lag of the line, typical thinking errors.
- Kagels Trading: GD 200 oder 200 Tage Linie (in German). 200-day line, golden cross and death cross.
- Wikipedia: MACD. Smoothing factor of the EMA, 2 ÷ (n + 1).
- RSL-scan, strategy page: RSL-scan: Strategy. RSL = price ÷ average price, time frames 26 weeks and 26 days, Levy's original 27 prices.
- RSL-scan, home page and FAQ: RSL-scan. Ranking within one market, re-sorting once a day.
- All calculations on this page use sample figures.
The ranking is re-sorted once a day. No forecast.
Go to the scannerNot a buy recommendation / not investment advice. Past performance is not a reliable indicator of future results.