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.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。