Indicators··8 min read

Breadth Proxy: New Highs/New Lows Index

1 references, link-verified · 1 primaryEditor of record: Shane CantyStandards review editorial standard · audit log

Market breadth measures participation across a basket of securities and is traditionally published for major indices (new highs and lows on US equities exchanges are reported daily by financial data providers). This indicator approximates breadth by tracking how often the current symbol (and optional companion symbols) touch new highs or new lows within a specified lookback window. Traders use breadth to confirm the conviction of moves: when most symbols in a basket reach new levels together, underlying momentum is strong; divergence between breadth and price may signal weakening participation and potential reversal. This tool is useful for swing traders, index analysts, and those managing sector or thematic baskets who want a simple, real-time breadth gauge without external data feeds.

//@version=6
indicator("Breadth Proxy: New Highs/New Lows Index", overlay=false)

// User inputs
lookbackBars = input.int(252, "Lookback Window (bars)", minval=1)
accumPeriod = input.int(20, "Accumulation Period", minval=1)
showSymbol2 = input.bool(false, "Include Symbol 2")
showSymbol3 = input.bool(false, "Include Symbol 3")
symbol2 = input.string("QQQ", "Symbol 2")
symbol3 = input.string("IWM", "Symbol 3")

// === PRIMARY SYMBOL (chart symbol) ===
// For each bar, test if it reached a new high or new low within lookback window
primaryHigh = ta.highest(high, lookbackBars)
primaryLow = ta.lowest(low, lookbackBars)

// Signal: +1 for new high, -1 for new low, 0 for neither
primarySignal = (high == primaryHigh) ? 1 : ((low == primaryLow) ? -1 : 0)

// === SECONDARY SYMBOLS (optional via request.security) ===
// Pull in companion symbols if enabled; test their new highs/lows independently
symbol2High = request.security(symbol2, timeframe.period, high)
symbol2Low = request.security(symbol2, timeframe.period, low)
symbol2HighestPrice = request.security(symbol2, timeframe.period, ta.highest(high, lookbackBars))
symbol2LowestPrice = request.security(symbol2, timeframe.period, ta.lowest(low, lookbackBars))
symbol2Signal = showSymbol2 ? ((symbol2High == symbol2HighestPrice) ? 1 : ((symbol2Low == symbol2LowestPrice) ? -1 : 0)) : 0

symbol3High = request.security(symbol3, timeframe.period, high)
symbol3Low = request.security(symbol3, timeframe.period, low)
symbol3HighestPrice = request.security(symbol3, timeframe.period, ta.highest(high, lookbackBars))
symbol3LowestPrice = request.security(symbol3, timeframe.period, ta.lowest(low, lookbackBars))
symbol3Signal = showSymbol3 ? ((symbol3High == symbol3HighestPrice) ? 1 : ((symbol3Low == symbol3LowestPrice) ? -1 : 0)) : 0

// === BREADTH AGGREGATION ===
// Sum signals from all active symbols
totalSymbols = 1 + (showSymbol2 ? 1 : 0) + (showSymbol3 ? 1 : 0)
combinedSignal = primarySignal + symbol2Signal + symbol3Signal

// Accumulate breadth signals over rolling window
breadthSum = ta.sum(combinedSignal, accumPeriod)

// Convert to -100 to +100 scale
breadthIndex = (breadthSum / (accumPeriod * totalSymbols)) * 100

// === PLOTTING ===
plot(breadthIndex, "Breadth Index", color.rgb(70, 130, 180), linewidth=2)
plot(0, "Neutral", color.gray, linestyle=hline.style_dashed, linewidth=1)
hline(50, "", color.rgb(0, 150, 0), linestyle=hline.style_dotted, linewidth=1)
hline(-50, "", color.rgb(200, 50, 50), linestyle=hline.style_dotted, linewidth=1)

// Shading for zones
fill(hline(0), hline(100), color.new(color.rgb(0, 150, 0), 85), title="Bullish Zone")
fill(hline(-100), hline(0), color.new(color.rgb(200, 50, 50), 85), title="Bearish Zone")

// Bar color: green for positive breadth, red for negative
barcolor(breadthIndex > 0 ? color.new(color.rgb(0, 150, 0), 70) : color.new(color.rgb(200, 50, 50), 70))

How the code works

The indicator evaluates each incoming bar against the highest high and lowest low recorded over a lookback window (default: 252 bars, roughly one year of daily data). For the primary symbol, it assigns a signal of +1 if the bar reaches a new high, −1 if it reaches a new low, or 0 if it does neither. If additional symbols are enabled, the same logic applies to data fetched via request.security(), pulling real-time highs and lows from companion tickers.

The individual signals are summed over an accumulation period (default: 20 bars), creating a rolling tally. This sum is then normalized to a −100 to +100 scale by dividing by the product of the accumulation period and the number of active symbols. A value of +100 would mean every bar over the last 20 periods touched new highs in every symbol tracked; −100 would mean every bar touched new lows. The result is plotted as a line with shaded zones at ±50 and ±100.

The bar coloring (green/red) provides a visual hint of the current direction: green bars indicate more new highs than new lows in the current accumulation period, red bars indicate the opposite.

Reading it on a chart

A trader looks for breadth extremes and divergences:

  • Breadth Index near +100: Nearly all tracked symbols are at new highs. This is rare and typically signals strong, broad uptrend participation. Reversal risk is elevated if price stalls here.
  • Breadth Index near −100: Nearly all tracked symbols are at new lows. This is a capitulation signature and often precedes bounces, particularly if reached on volume.
  • Breadth Index divergence from price: If the chart's price makes a new high but breadth lags (index below +50), fewer companion symbols are participating. This "breadth divergence" is a practitioner convention interpreted as a warning that the rally may be narrow and vulnerable to rotation or reversal.
  • Zone crossings: Movement above 0 from below or below 0 from above can signal shifts in participation momentum, useful for entries or stop placements.
  • Accumulation period tuning: A shorter period (5-10 bars) responds quickly to intraday shifts; longer periods (30-50 bars) smooth noise and highlight macro breadth trends.

Limitations

This indicator has several material limitations:

  1. New highs/lows are relative, not absolute: The indicator measures whether the current bar touches the highest or lowest price in the lookback window. It does not distinguish between a 52-week high at a price of 150 and a new high at a price of 150.01. Many traders define "new highs" as breaches of significant prior peaks; this tool's definition is mechanical.

  2. Symbol selection bias: Breadth is only as good as the basket chosen. Selecting QQQ and IWM alongside SPY produces a different breadth signal than pairing SPY with utility stocks or bonds. The user must justify the basket composition for the analysis to be valid; breadth of an arbitrary collection of symbols is not actionable.

  3. Lookback window sensitivity: The default 252-bar window assumes daily data and roughly one calendar year. On weekly or monthly charts, the window extends much further back; on minute data, it covers just hours. The user must adjust the lookback and accumulation periods to match their intended time horizon.

  4. No external data integration: The indicator cannot incorporate true published breadth data (e.g., NYSE advance/decline count, NASDAQ new highs/lows from the exchange). It only approximates breadth using price data from manually selected symbols, so comparison to official indices is not valid.

  5. Repainting risk on the accumulation period: The index is calculated as a sum over a rolling window. As bars age out of the accumulation period, historical index values can shift. This is not repainting of the current bar (which only uses confirmed historical data), but users who rely on past index levels as signals should be aware that those levels may have been retroactively recalculated.

  6. Multiple timeframes can conflict: If you apply this indicator to daily and intraday charts using the same symbol basket, the daily breadth index may diverge from the intraday one simply because bar counts differ. Breadth analysis is most coherent when conducted at a single, consistent timeframe.


Key definitions

Breadth: Participation in a price move as measured by the fraction of securities in a basket that are moving in the same direction or reaching new levels. High breadth suggests conviction; low breadth suggests concentration or divergence.

New high: A price that equals or exceeds the highest price recorded during the lookback period for that security.

New low: A price that equals or falls below the lowest price recorded during the lookback period for that security.

Lookback window: The fixed number of prior bars used to calculate the highest high and lowest low against which the current bar is compared.

Accumulation period: The rolling number of bars over which breadth signals are summed to compute the final index; shorter windows are more responsive, longer windows are smoother.

Breadth divergence: A scenario in which price reaches a new high but the breadth indicator does not, or vice versa. Practitioner convention treats this as a warning of weakening participation and potential reversal.


References

  1. Investopedia, "Breadth Indicators", Investopedia (accessed 2026). Provides definition and practitioner use of breadth analysis in technical analysis.

  2. CME Group, "Equity Index Specifications and Price Discovery", CME (2024). Outlines how major index constituents are tracked and aggregated, context for multi-symbol analysis. URL: https://www.cmegroup.com/ (primary)

  3. CFTC, "Commitments of Traders (COT) Report", U.S. Commodity Futures Trading Commission (ongoing). While focused on futures positioning, illustrates how regulatory agencies aggregate participation across instruments; analogous to breadth measurement. URL: (link no longer resolves) (primary)

  4. Investopedia, "Advance/Decline Line (A/D Line)", Investopedia (2024). Explains cumulative advance/decline as a breadth measure, the traditional foundation for indicators like this one.

  5. Wikipedia, "Breadth (Technical Analysis)", Wikipedia (accessed 2026). Provides historical and mechanics overview of breadth indicators in markets.


Educational research on historical data only. Not investment advice, not a signal, and never a performance promise. Past results do not predict future performance. Every reference is link-verified before publication and every paper is re-audited weekly against the library's editorial standard.

Last reviewed by the PropLedger research pipeline: 2026-11-29. Educational research on historical data, not financial advice.

Educational research on historical data only. Not investment advice, not a signal, and never a performance promise. Past results do not predict future performance. Every reference is link-verified before publication and every paper is re-audited weekly against the library's editorial standard. Found an error? Email support@prop-ledger.org and the paper is corrected or withdrawn.