OPEN-SOURCE SCRIPT

Candle Streak Scanner + Visual Highlight

345
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.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.