OPEN-SOURCE SCRIPT
Multi-TF Candle Counter

This indicator counts candles starting from a specific date across up to 4 different timeframes at once. It's designed to help traders track market cycles and identify potential turning points using the Denizhan number sequence.
Key Features:
✅ Multi-Timeframe Support
Current chart timeframe
5-minute candles
15-minute candles
1-hour candles
✅ Smart Label Placement
Shows higher timeframe counts only on the first candle of that period
Example: On a 1-minute chart, the 5m counter only appears every 5 minutes
Prevents chart clutter while maintaining accuracy
✅ Number Sequence Highlighting
Automatically highlights special numbers: 1, 3, 7, 13, 21, 31, 43, 57, 73...
These numbers follow the pattern: n² - (n-1)
Special numbers appear in RED for easy identification
✅ Fully Customizable
Enable/disable each timeframe independently
Choose custom colors for each timeframe
Set label position (High, Low, Close, Open)
Single start/end date applies to all timeframes
Toggle special number highlighting on/off
How to Use:
Add to Chart: Apply the indicator to any chart
Set Date Range: Confirm the start and end dates (applies to all timeframes)
Enable Timeframes: Turn on the timeframes you want to track
Customize Colors: Set different colors for each timeframe to distinguish them
Watch for Red Numbers: Special Denizhan numbers appear in red as potential turning points
Use Cases:
Cycle Tracking: Monitor how many candles have passed since a significant event
Multi-Timeframe Analysis: See relationships between different timeframe counts
Pattern Recognition: Identify when multiple timeframes align at special numbers
Reversal Points: Watch for Denizhan numbers as potential support/resistance timing
Settings Overview:
Start Date (All TF)
End Date (All TF)
Each Timeframe Has:
Enable toggle
Text color
Label location
Special number highlighting
Note: This indicator works on any timeframe but is most effective on lower timeframes (1m, 5m, 15m) when tracking higher timeframe counts.
Key Features:
✅ Multi-Timeframe Support
Current chart timeframe
5-minute candles
15-minute candles
1-hour candles
✅ Smart Label Placement
Shows higher timeframe counts only on the first candle of that period
Example: On a 1-minute chart, the 5m counter only appears every 5 minutes
Prevents chart clutter while maintaining accuracy
✅ Number Sequence Highlighting
Automatically highlights special numbers: 1, 3, 7, 13, 21, 31, 43, 57, 73...
These numbers follow the pattern: n² - (n-1)
Special numbers appear in RED for easy identification
✅ Fully Customizable
Enable/disable each timeframe independently
Choose custom colors for each timeframe
Set label position (High, Low, Close, Open)
Single start/end date applies to all timeframes
Toggle special number highlighting on/off
How to Use:
Add to Chart: Apply the indicator to any chart
Set Date Range: Confirm the start and end dates (applies to all timeframes)
Enable Timeframes: Turn on the timeframes you want to track
Customize Colors: Set different colors for each timeframe to distinguish them
Watch for Red Numbers: Special Denizhan numbers appear in red as potential turning points
Use Cases:
Cycle Tracking: Monitor how many candles have passed since a significant event
Multi-Timeframe Analysis: See relationships between different timeframe counts
Pattern Recognition: Identify when multiple timeframes align at special numbers
Reversal Points: Watch for Denizhan numbers as potential support/resistance timing
Settings Overview:
Start Date (All TF)
End Date (All TF)
Each Timeframe Has:
Enable toggle
Text color
Label location
Special number highlighting
Note: This indicator works on any timeframe but is most effective on lower timeframes (1m, 5m, 15m) when tracking higher timeframe counts.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.