1. Valmy
  2. Learn
  3. Indicator catalog
  4. T30

Is a rally broad or narrow? Stocks above their moving average and new highs minus new lows

Intermediate 13 min read

Short answerA rally is broad when most members of an index or exchange rise with it and narrow when a few, often the largest, carry it. The percentage of constituents above a moving average counts members trading above their own 50-day or 200-day average. New highs minus new lows counts members closing at a 52-week high minus those closing at a 52-week low. New index highs with shrinking readings mean a narrowing rally: in this lesson's synthetic example, the index peaks at 1,206.7 with only 27% of members above their 50-day average. Narrowing has preceded some declines, but narrow rallies can last months, so the readings do not time a top.

A quote of an index weighted by market value will not tell you that most of its members are falling while it rises; these two counts will. Both depend on the universe you count and on details such as eligibility and whether highs are judged on closing or intraday prices, so before comparing two sources for the same day, check that they count the same way.

Valmy noteValmy's v1 strategy language includes the simple moving average and no other indicator, so the percentage of constituents above a moving average and new highs minus new lows are taught here for reading charts (as of 26 November 2026). The strategy language evaluates one instrument at a time, so it cannot compute breadth across many instruments.

Scope note: Valmy v1 does not offer company shares. This lesson helps you read breadth studies published for stock markets and judge how a crypto version would have to be built.

Which members are counted: the universe behind every breadth reading#

Every breadth study counts the members of a universe: for example, all issues listed on the New York Stock Exchange (NYSE), or the members of one index. Change the universe and the reading changes. Three questions come before any interpretation: what is in the universe, how membership changes, and when a "day" ends.

  • Exchange-wide counts include more than operating companies. NYSE breadth counts can include closed-end funds, preferred shares and depositary receipts as well as common stocks. Many of those move with interest rates rather than with company results.
  • Index membership changes. Providers add and remove members. A study rebuilt today from current members leaves out the companies that were removed, often after falling, so past breadth looks better than it was (survivorship bias).
  • Counts weigh every member equally; most indexes do not. That difference is exactly what these studies expose, as the synthetic example below shows. There, the five largest of 100 stocks made up 58.3% of the index's value.
  • Crypto has no official universe. A crypto version needs a chosen list, such as the top 50 tokens by market value on a date (a list that changes and suffers survivorship), a chosen venue and quote currency, stablecoins excluded, and a cutoff for the daily close. Binance's spot API, for example, returns daily candles in UTC by default. These inputs are often unavailable or non-standard, so read the method before the chart.

How many stocks are joining the rally? covers these universe questions in more depth.

Percentage of constituents above a moving average: how many members are in their own uptrend#

The percentage of constituents above a moving average is the share of a universe's members whose latest close is above their own simple moving average (SMA) of closes, recalculated each day. Its inputs are each member's daily closes; volume is not used. Its scale runs from 0% to 100%, with 50% as the midpoint. Common lookbacks are 50 days for short- to medium-term trends and 150 or 200 days for longer ones; StockCharts' ChartSchool describes these settings and treats readings above 70% as overbought and below 30% as oversold, while noting that the levels vary by index. A member is eligible only once it has enough history for its average. The sources checked for this lesson do not credit the study to a single creator.

Calculating the percentage above a moving average step by step#

For each eligible member, compare today's close with its own SMA. Count the members above, then divide by the number of eligible members. To keep the arithmetic short, this example uses a 5-day SMA and five invented stocks (synthetic data); the method is the same with 50 or 200 days. Stock E starts trading on day 3, so it has no 5-day average until day 7.

Stock Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7
A 10.0 10.2 10.4 10.3 10.6 10.8 10.7
B 20.0 19.8 19.5 19.6 19.2 19.0 19.4
C 15.0 15.3 15.1 15.4 15.6 15.2 14.9
D 8.0 8.1 7.9 7.8 7.7 7.9 8.2
E 30.0 31.0 32.5 33.0 34.0

The first SMA exists on day 5. For stock A it is (10.0 + 10.2 + 10.4 + 10.3 + 10.6) ÷ 5 = 51.5 ÷ 5 = 10.30, and A's close of 10.6 is above it. Working the other stocks the same way:

Day SMA of A, B, C, D (E) Above their SMA Eligible Percentage above
5 10.30, 19.62, 15.28, 7.90 (none) A, C 4 2 ÷ 4 = 50%
6 10.46, 19.42, 15.32, 7.88 (none) A, D 4 2 ÷ 4 = 50%
7 10.56, 19.34, 15.24, 7.90 (32.10) A, B, D, E 5 4 ÷ 5 = 80%

On day 7, stock E joins with a close of 34.0 above its first average of 32.10. Without E the reading would be 3 ÷ 4 = 75%. If E were counted in the total but treated as "not above", it would be 3 ÷ 5 = 60%. The same prices give 60%, 75% or 80% depending on the eligibility rule, which is why a careful source states it. With a 200-day average, a company that listed six months ago is simply not eligible.

Reading the percentage above a moving average on a chart#

Read the percentage against the index. Both rising is a broad advance. The index rising while the percentage falls means fewer members are in their own uptrends: a narrowing rally. Figure 1 uses a synthetic universe of 100 stocks and its cap-weighted index, designed so that the five largest members keep rising after day 52 while most of the others fall.

Two aligned panels of synthetic data over 168 trading days. Top: a cap-weighted index of 100 stocks rises from 1,000 to a high of 1,206.7 on day 138, then falls to 1,052.0. Bottom: the percentage of members above their 50-day SMA (solid) peaks at 89% on day 18 and falls to 12% on day 80; the percentage above the 200-day SMA (dashed) falls below 50% on day 77. On day 138 the readings are 27% and 22%. Both readings end at 12% and 11%.
Figure 1. Synthetic data. A marks broad participation, B the index high with few members in uptrends, and C and D two identical "oversold" readings with opposite outcomes.
  • A, days 1 to 52: broad. The index rose 6.1% and the 50-day reading stayed at or above 70% every day, peaking at 89% on day 18.
  • The narrowing, days 52 to 138. The 50-day reading fell first, to 23% by day 72, while the slower 200-day reading was still 71%. The 200-day reading dropped below 50% on day 77.
  • B, day 138: the index high. The index reached 1,206.7, yet only 27% of members were above their 50-day average and 22% above their 200-day average. The index was rising on its largest members.

A competing reading is that a few dominant companies can lead for a long time on their own results, and the rest may catch up rather than drag the index down. The percentage shows how narrow the advance is, not what happens next.

When the percentage above a moving average misleads#

An extreme reading is not a signal by itself. In Figure 1 the 50-day reading was 12% on day 80 (C) and again 12% on day 148 (D). After C the index rose 15.1% to its high. After D it fell another 7.1% to 1,052.0 by day 168. ChartSchool makes the same point: becoming oversold is not always a buy signal, and in strong trends overbought readings can repeat. Other ways it misleads:

  • The lookback changes the story. On day 72 the 50-day reading said 23% of members were in uptrends, while the 200-day reading said 71%. Neither is wrong; they measure different horizons.
  • Eligibility rules change the number, as the step-by-step example showed (60%, 75% or 80% from the same prices).
  • Small universes are coarse. In a 30-stock index, one stock moves the reading by 3.3 percentage points.
  • Equal counts ignore size. A reading of 27% can come with a rising index if the 27% are the largest members, as at point B.

New highs minus new lows: how many members are breaking out or breaking down#

New highs minus new lows is the number of members that closed at their highest level of the past 52 weeks, minus the number that closed at their lowest, for one universe and one value per day. Its inputs are each member's daily prices over the lookback; volume is not used. Its unit is a count of issues, and a percentage version divides by the number of members. The default lookback is 52 weeks, which is about 252 trading days for US stocks and 365 days for crypto, which trades every day. A member with less history than the lookback cannot qualify until it has enough. A key setting is which prices define the high: the calculation in this lesson uses closes, but some published counts use intraday highs and lows. TradingView's breadth data, for example, compares each stock's high in the current session with its high over the lookback. The sources checked do not credit the study to a single creator.

Calculating new highs minus new lows step by step#

For each member and day, check whether today's close is at or above every close in the lookback window that ends today (a new high), or at or below every close in it (a new low); ties count. Then subtract the count of new lows from the count of new highs. This example uses a 5-day window instead of 252 days and five invented stocks (synthetic data), so day 5 is the first day with a full window.

Stock Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7 Day 8
F 50 51 52 51 53 54 53 55
G 40 39 38 39 37 36 37 35
H 30 31 30.5 31 30.8 30.6 30.9 30.7
I 20 20.5 21 21.5 22 21 20 19
J 60 59 61 62 63 64 65 66

Working day by day:

  • Day 5. The window is days 1 to 5. F closes at 53, the highest of 50, 51, 52, 51 and 53: a new high. I (22) and J (63) are also new highs. G closes at 37, below every earlier close: a new low. H's 30.8 is neither. Net: 3 − 1 = +2.
  • Day 6. F (54) and J (64) are new highs; G (36) is a new low. Net: 2 − 1 = +1.
  • Day 7. Only J (65) is a new high. I falls to 20, the lowest close of 21, 21.5, 22, 21 and 20: a new low. Net: 1 − 1 = 0.
  • Day 8. F (55) and J (66) are new highs; G (35) and I (19) are new lows. Net: 2 − 2 = 0.

Day 8 shows why the two counts deserve a look on their own: a net of zero can mean a quiet market or one where many members break out while as many break down.

Reading new highs minus new lows on a chart#

In a healthy advance, many members make new highs and few make new lows. When the index keeps rising but new highs dry up and new lows start to appear, the advance is narrowing. Figure 2 shows the same synthetic 100-stock universe as Figure 1, counting closes at a 252-day high or low.

Two aligned panels of synthetic data over 168 trading days. Top: the same cap-weighted index, peaking at 1,206.7 on day 138. Bottom: bars above zero show members closing at a 252-day high, reaching 31 on day 31; bars below zero show members closing at a 252-day low, near zero before day 52, up to 23 on day 129, 6 on day 138 when the index peaks with only 2 new highs, and 36 on day 166.
Figure 2. Synthetic data. New highs (A) fade after day 52, and by the index high (B) new lows outnumber them; new lows then surge (C).
  • A, day 31: a broad advance. 31 of the 100 members closed at a 252-day high, and on no day before day 52 did more than 1 member make a new low.
  • The narrowing, days 60 to 138. No more than 5 members made a new high on any day, while new lows rose as high as 23 on day 129. Net new highs were negative on 32 of the 39 days from day 100 to day 138.
  • B, day 138: the index high. Only 2 members closed at a 252-day high and 6 at a 252-day low, a net of −4, on the day the index set its high.
  • C, day 166: the breakdown. New lows reached 36 as the index fell.

When new highs minus new lows misleads#

Published counts can disagree because of their price rule. Using synthetic intraday highs for the same universe, day 4 had 14 new highs by closes but only 9 by intraday highs, because an earlier intraday spike set a higher bar that later closes did not clear. On day 164 the counts were 24 new lows by closes and 18 by intraday lows. On the index-high day, the intraday rule gave 1 high and 9 lows instead of 2 and 6. Neither rule is wrong, but a series must use one rule consistently.

A one-stock example shows the mechanism. Suppose stock F traded as high as 54.5 during day 5 before closing at 53, then reached 54.3 during day 6 and closed at 54. By closes, day 6 is a new high, since 54 is above 53. By intraday highs it is not, since 54.3 is below 54.5.

Other ways it misleads:

  • The lookback creates long blind spots. After a deep decline, members can rally for months without reaching a 52-week high, so new highs stay low even in a recovery.
  • Crypto needs its own window. A 52-week window is 365 daily candles for a market that trades every day, and the daily close depends on the cutoff time chosen.
  • Small counts are noisy. In a 100-stock universe, a handful of members can swing the net from positive to negative.
  • New listings cannot qualify until they have a full window of history, so a universe with many recent listings shows fewer highs and lows than its prices suggest.

Check your understanding: percentage above a moving average and new highs minus new lows#

Question. An index of 400 stocks closes at an all-time high. Twenty members listed within the past 200 trading days. Of the 380 members with 200 days of history, 152 close above their 200-day SMA. Of all 400 members, which all have 50 days of history, 96 close above their 50-day SMA. That day 18 members close at a 52-week high and 41 at a 52-week low.

  1. What percentage of eligible members is above the 200-day SMA, and what would a source that counted the 20 new listings as "not above" report?
  2. What is the percentage above the 50-day SMA, and what is net new highs?
  3. Is this rally broad or narrow, and what would you check before acting on that reading?
Show the answers

Answer.

  1. 152 ÷ 380 = 40.0% of eligible members. Counting all 400 members as the base gives 152 ÷ 400 = 38.0%. The two figures describe the same prices; check which rule a source uses before comparing them.
  2. 96 ÷ 400 = 24.0% are above their 50-day SMA. Net new highs = 18 − 41 = −23.
  3. Narrow. The index is at a record while fewer than a quarter of members are in short-term uptrends, 40% are in long-term uptrends and more members are at 52-week lows than at highs. A few large members are probably carrying the index. That is a warning about participation, not a forecast: as Figure 1 showed, an identical extreme reading can come before a rise or a fall, and narrow rallies can last for months. Before drawing a conclusion, check the universe and its membership changes, whether highs and lows use closes or intraday prices, and which members are doing the lifting.