OPEN-SOURCE SCRIPT
Candle Streak Scanner + Visual Highlight

The Candle Streak Scanner identifies and highlights consecutive bullish or bearish candle streaks within a user-defined lookback period. Users can specify a minimum and maximum streak length, and the indicator will automatically highlight any qualifying streaks on the chart—green for bullish streaks and red for bearish streaks. Each highlighted streak displays its length directly on the chart, while a table in the top-right shows the current lookback window, the maximum streak detected, and the total number of streaks that fall within the selected range. Both the streak labels and the table text can be switched between black or white for better visibility on different chart themes.
Strategies & Use Cases
Candle streaks often reflect short-term momentum or exhaustion in price movement. Traders can use this indicator to quickly identify periods where price has moved strongly in one direction for several candles in a row. Such streaks may signal either continuation (momentum trading) or potential reversal zones (mean-reversion setups). For example, traders may look for long bullish streaks as signs of strong buying pressure, or watch for extended streaks that exceed typical ranges as potential exhaustion points before pullbacks.
How It’s Used
Set the lookback period to define how many recent candles the indicator should analyze. Then choose the minimum and maximum streak length you want to detect (e.g., 3 to 8 candles). The indicator will automatically highlight all qualifying streaks within that range and display their length directly on the chart. The table provides a quick summary of the largest streak and how many streaks occurred in the selected range, helping traders gauge current momentum conditions at a glance.
Strategies & Use Cases
Candle streaks often reflect short-term momentum or exhaustion in price movement. Traders can use this indicator to quickly identify periods where price has moved strongly in one direction for several candles in a row. Such streaks may signal either continuation (momentum trading) or potential reversal zones (mean-reversion setups). For example, traders may look for long bullish streaks as signs of strong buying pressure, or watch for extended streaks that exceed typical ranges as potential exhaustion points before pullbacks.
How It’s Used
Set the lookback period to define how many recent candles the indicator should analyze. Then choose the minimum and maximum streak length you want to detect (e.g., 3 to 8 candles). The indicator will automatically highlight all qualifying streaks within that range and display their length directly on the chart. The table provides a quick summary of the largest streak and how many streaks occurred in the selected range, helping traders gauge current momentum conditions at a glance.
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.
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.
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.