PROTECTED SOURCE SCRIPT
Consecutive Candles Counter

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:
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:
When consecutive candles of the selected type appear, the counter increases. The streak resets to zero when:
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
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
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน