PROTECTED SOURCE SCRIPT

Consecutive Candles Counter

29
The Consecutive Candles Counter is a simple yet powerful indicator designed to help traders identify and analyze consecutive red or green candle patterns on any timeframe. This tool automatically counts unbroken streaks of bullish or bearish candles within your specified date range, making it easier to spot momentum trends and potential reversal points.

Key Features

Dual Mode Tracking: Toggle between counting consecutive red (bearish) or green (bullish) candles with a single click
Custom Date Range: Set specific start and end dates to analyze historical patterns or focus on recent price action
Visual Streak Display: Clean line graph showing the progression of consecutive candles over time
Real-Time Information Table: Displays current streak count, candle type, and date range status at a glance
Customizable Interface:
  • Show/hide the information table
  • Adjust table size from Tiny to Huge
  • Color-coded visuals (red for bearish, green for bullish)

Works on All Timeframes: Optimized for daily charts but functions on any timeframe

How It Works
The indicator monitors each candle's close price relative to its open price:
  • Red Candle: Close < Open (bearish)
  • Green Candle: Close > Open (bullish)

When consecutive candles of the selected type appear, the counter increases. The streak resets to zero when:
  • An opposite color candle appears
  • The price action moves outside your specified date range


Use Cases

Momentum Trading: Identify extended runs of bullish or bearish candles that may signal strong trends
Reversal Detection: Spot when consecutive streaks end, potentially indicating trend exhaustion
Pattern Analysis: Study historical consecutive candle patterns to understand market behavior
Risk Management: Recognize when a trend might be overextended
Backtesting: Test strategies based on consecutive candle counts within specific date ranges

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.