OPEN-SOURCE SCRIPT
Market Breadth Momentum

The indicator operates by fetching data from external tickers (usually market internal symbols like ATHI and ATLO) and processing them through a momentum filter. It aims to identify "breadth thrusts" or exhaustion points before they become obvious on a standard price chart.
Key ComponentsCustom Data Inputs: By default, it uses New Highs and New Lows tickers. You can toggle between calculating the Net difference (Highs minus Lows) or a Ratio (Highs divided by Lows).
Dual Mode Logic:Raw Mode: Visualizes the raw spread between highs and lows.Momentum Mode: Applies a McClellan-style calculation (Fast EMA minus Slow EMA) to show the rate of change in market breadth.Signal Line: Includes a 9-period EMA (Signal Line) to help identify trend shifts and provide crossover alerts.
Visual InterpretationThe indicator is displayed in a separate pane below the price chart:ElementDescription
Teal ColumnsIndicate that the breadth momentum is increasing (bullish divergence or strengthening trend).
Maroon Columns Indicate that the breadth momentum is decreasing (bearish divergence or weakening trend).Orange LineThe Signal Line; used to smooth out noise and provide entry/exit triggers.Zero LineThe "neutral" mark. Values above zero generally suggest bullish internal health; values below suggest bearish.
Identifying Divergences
If the S&P 500 is making new price highs, but the Breadth Momentum histogram is making lower highs, it suggests the rally is losing participation. This is often a precursor to a market correction.
Momentum Crossovers
A common signal is the "Signal Line Cross." When the columns cross above the orange Signal Line, it indicates a short-term surge in market participation (a "Thrust").
Mean Reversion
Extreme extensions away from the Zero Line (either positive or negative) can signal that the market is overbought or oversold on an internal level, regardless of what the price action looks like.
Settings & Inputs
New Highs/Lows Ticker: Ensure these match the symbols provided by your broker (e.g., HI_NY or ATHI).
Fast/Slow EMA: Standard settings are 19 and 39 (McClellan defaults), but these can be tightened for faster scalping or widened for long-term trend following.
Show Momentum: Toggle this off if you simply want to see the raw "Net Highs" data without the EMA smoothing.
Key ComponentsCustom Data Inputs: By default, it uses New Highs and New Lows tickers. You can toggle between calculating the Net difference (Highs minus Lows) or a Ratio (Highs divided by Lows).
Dual Mode Logic:Raw Mode: Visualizes the raw spread between highs and lows.Momentum Mode: Applies a McClellan-style calculation (Fast EMA minus Slow EMA) to show the rate of change in market breadth.Signal Line: Includes a 9-period EMA (Signal Line) to help identify trend shifts and provide crossover alerts.
Visual InterpretationThe indicator is displayed in a separate pane below the price chart:ElementDescription
Teal ColumnsIndicate that the breadth momentum is increasing (bullish divergence or strengthening trend).
Maroon Columns Indicate that the breadth momentum is decreasing (bearish divergence or weakening trend).Orange LineThe Signal Line; used to smooth out noise and provide entry/exit triggers.Zero LineThe "neutral" mark. Values above zero generally suggest bullish internal health; values below suggest bearish.
Identifying Divergences
If the S&P 500 is making new price highs, but the Breadth Momentum histogram is making lower highs, it suggests the rally is losing participation. This is often a precursor to a market correction.
Momentum Crossovers
A common signal is the "Signal Line Cross." When the columns cross above the orange Signal Line, it indicates a short-term surge in market participation (a "Thrust").
Mean Reversion
Extreme extensions away from the Zero Line (either positive or negative) can signal that the market is overbought or oversold on an internal level, regardless of what the price action looks like.
Settings & Inputs
New Highs/Lows Ticker: Ensure these match the symbols provided by your broker (e.g., HI_NY or ATHI).
Fast/Slow EMA: Standard settings are 19 and 39 (McClellan defaults), but these can be tightened for faster scalping or widened for long-term trend following.
Show Momentum: Toggle this off if you simply want to see the raw "Net Highs" data without the EMA smoothing.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Confluence Trading Tools LLC — Multi-timeframe trading indicators built for day traders, swing traders, and crypto traders. Request access and learn more at confluencetradingtools.com
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Confluence Trading Tools LLC — Multi-timeframe trading indicators built for day traders, swing traders, and crypto traders. Request access and learn more at confluencetradingtools.com
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.