The 200-day moving average (200-day SMA) is the average closing price of a stock over the last 200 trading days. The average moves because each new closing price replaces the oldest one. Critivest measures the distance from the line. A value of 0.1 means the price is 10% above it, and −0.1 means it is 10% below.
DistanceFrom200DayAverage > 0
No registration, on well-known stocks.
How is the distance from the 200-day moving average calculated?
200-day moving average = sum of the closing prices of the last 200 trading days / 200
Distance from the 200-day moving average = (price − 200-day average) / 200-day average
200 trading days are about 40 weeks, since there is no trading on weekends and holidays. The 50-day line uses the same calculation over 50 trading days, or about ten weeks. With fewer prices in the average, it responds faster to changes in the share price.
What are a golden cross and a death cross?
Chart analysts call it a golden cross when the 50-day line crosses above the 200-day line. When it crosses below, they call it a death cross. Critivest measures the distance between the lines:
Moving average spread = (50-day average − 200-day average) / 200-day average
A positive value means the 50-day average is above the 200-day average. On a golden cross the value turns from negative to positive, on a death cross from positive to negative.
How far is the price from its 52-week high?
The 52-week high and low are the highest and lowest prices of the past year. Critivest calculates the price's distance from both in the same way as from the 200-day average, and its position in the range between them:
Position in the 52-week range = (price − 52-week low) / (52-week high − 52-week low)
At 0 the price is at the low, at 1 at the high, and at 0.5 exactly in the middle.
What does a distance of 0.1 from the 200-day moving average mean?
For the stock of the fictional Example Company:
| Price | EUR 88 |
|---|---|
| 50-day moving average | EUR 84 |
| 200-day moving average | EUR 80 |
| 52-week high | EUR 100 |
| 52-week low | EUR 60 |
| Distance from the 200-day average | (88 − 80) / 80 = 0.1, or 10% above |
| Moving average spread | (84 − 80) / 80 = 0.05, or 5% above |
| Distance from the 52-week high | (88 − 100) / 100 = −0.12, or 12% below |
| Position in the 52-week range | (88 − 60) / (100 − 60) = 0.7 |
If the price fell to EUR 72, it would be (72 − 80) / 80 = −0.1, or 10% below the 200-day average.
When are the 200-day moving average and the golden cross of little use?
- Moving averages describe how the price has moved so far. They say nothing about how the price or the company will develop.
- The averages lag the price, the 200-day average more than the 50-day average. A crossover also depends on which older closing prices drop out.
- When the price moves sideways, the averages lie close together and can cross several times in a short time.
- The 52-week high and low each rest on a single price. A brief intraday spike can set them for a whole year.
Using moving averages in your own criteria
This condition is met if the price is above the 200-day moving average:
DistanceFrom200DayAverage > 0
1 of 2 stocks meets this condition
|
Example Company
DistanceFrom200DayAverage 0.1 (10%)
|
Met |
|---|---|
|
Sample Corporation
DistanceFrom200DayAverage -0.06 (-6%)
|
Not met |
This condition is met whenever the 50-day average is above the 200-day average:
MovingAverageSpread > 0
If you add such a condition to a strategy, Critivest can notify you when a stock starts or stops meeting the strategy. You set the limits yourself; the conditions are examples, not recommendations.
Combining it with other criteria
A strategy combines several criteria and sets how many of them a stock has to meet. How to set that number: Required criteria.
Which price data does Critivest use?
Critivest takes the price (Price), the 50- and 200-day moving averages (FiftyDayAverage,
TwoHundredDayAverage) and the 52-week high and low (FiftyTwoWeekHigh,
FiftyTwoWeekLow) from its data provider and updates them at least once a day on trading days. All
values are in the currency the stock trades in.
The moving averages are simple averages of closing prices, in which every day counts equally. Critivest does not offer exponential moving averages (EMA), which weight recent prices more. The 52-week high and low come from intraday prices, so they can lie above the highest and below the lowest closing price.
If one of the values is missing, the metric is not available. The position in the 52-week range is also missing when the high and low are equal.
Periods and missing values: Methodology.
Formula reference in Critivest
Name in conditions: DistanceFrom200DayAverage
DistanceFrom200DayAverage = (Price - TwoHundredDayAverage) / TwoHundredDayAverage
Distance from the 200-day average as a fraction (0.1 means 10%); positive above and negative below the average
Name in conditions: DistanceFrom50DayAverage
DistanceFrom50DayAverage = (Price - FiftyDayAverage) / FiftyDayAverage
Distance from the 50-day average as a fraction (0.1 means 10%); positive above and negative below the average
Name in conditions: MovingAverageSpread
MovingAverageSpread = (FiftyDayAverage - TwoHundredDayAverage) / TwoHundredDayAverage
50-day average relative to the 200-day average as a fraction (0.1 means 10%); positive when the 50-day average is higher
Name in conditions: DistanceFrom52WeekHigh
DistanceFrom52WeekHigh = (Price - FiftyTwoWeekHigh) / FiftyTwoWeekHigh
Distance from the 52-week high as a fraction (0.1 means 10%); negative below the high and zero at the high
Name in conditions: DistanceFrom52WeekLow
DistanceFrom52WeekLow = (Price - FiftyTwoWeekLow) / FiftyTwoWeekLow
Distance from the 52-week low as a fraction (0.1 means 10%); positive above the low and zero at the low
Name in conditions: PositionIn52WeekRange
PositionIn52WeekRange = (Price - FiftyTwoWeekLow) / (FiftyTwoWeekHigh - FiftyTwoWeekLow)
Position in the 52-week price range as a fraction; 0 is the low and 1 is the high
Names used in conditions
Price- Share price
TwoHundredDayAverage- 200-day average share price
FiftyDayAverage- 50-day average share price
FiftyTwoWeekHigh- 52-week high share price
FiftyTwoWeekLow- 52-week low share price
Related formulas
- Stock beta: What a stock's beta measures, how it is calculated, what a beta above or below 1 means, and why values differ between sources.
- P/E ratio (price-to-earnings ratio): The P/E ratio compares market value with annual earnings. Forward P/E uses expected earnings. Formulas for P/E, earnings yield and earnings per share (EPS).
- Dividend yield: How to calculate dividend yield and payout ratio: dividends paid relative to market value, earnings and free cash flow, with a worked example.
Sources
- Moving average, Wikipedia
Last updated: November 20, 2026