OPEN-SOURCE SCRIPT
HTF Candle Profile [ChartPrime]

⯁ OVERVIEW
The HTF Candle Profile [ChartPrime] visualizes higher-timeframe candle structure and its internal volume distribution directly on lower-timeframe charts. It automatically detects changes in higher-timeframe periods (daily, weekly, or monthly) and constructs a complete volume profile for each, allowing traders to see how volume is distributed across the range of that higher-timeframe candle. This helps identify whether momentum is supported by real volume strength or trapped price movement.
⯁ LOGIC
⯁ FEATURES
⯁ CONCLUSION
The HTF Candle Profile [ChartPrime] bridges lower- and higher-timeframe analysis by embedding high-resolution volume data within each major candle. It enables traders to see where liquidity and trading activity cluster inside higher-timeframe structures — revealing whether trends are volume-backed or hollow. Perfect for combining structural insight with volume confluence when analyzing market sentiment transitions across timeframes.
The HTF Candle Profile [ChartPrime] visualizes higher-timeframe candle structure and its internal volume distribution directly on lower-timeframe charts. It automatically detects changes in higher-timeframe periods (daily, weekly, or monthly) and constructs a complete volume profile for each, allowing traders to see how volume is distributed across the range of that higher-timeframe candle. This helps identify whether momentum is supported by real volume strength or trapped price movement.
⯁ LOGIC
- When a new higher-timeframe candle begins, the indicator starts collecting data for its open, high, low, close, and volume range.
- Once sufficient bars have passed (defined by the Min Period Profile input), it calculates a full profile using adaptive bin sizing derived from the range (High–Low) and ATR for scaling precision.
- The resulting bins represent the volume concentration at each price level of that higher-timeframe candle.
- A Point of Control (PoC) is highlighted — the level where the most volume occurred.
- The indicator then draws the higher-timeframe candle body and wicks at the chart’s right side, giving visual context of bullish or bearish sentiment.
⯁ FEATURES
- Automatic HTF Detection: Identifies new Daily, Weekly, or Monthly periods and updates profiles in real time.
- Dynamic Bin Calculation: Automatically adjusts bin size based on ATR and candle height for accurate volume granularity.
- Volume Profile Rendering: Displays colored volume bars extending from the candle, showing where trading activity was concentrated.
- Higher-Timeframe Candle Representation: Plots the full HTF candle (open, close, high, low) on the right side of the chart for visual clarity.
- PoC Level & Labels: Marks the point of maximum volume within the candle profile with a line and volume label.
- Configurable Levels: Toggle display of Open, Close, High, Low, and PoC for each higher-timeframe segment.
- Color-coded Sentiment: Candle and profile colors reflect bullish or bearish momentum.
⯁ CONCLUSION
The HTF Candle Profile [ChartPrime] bridges lower- and higher-timeframe analysis by embedding high-resolution volume data within each major candle. It enables traders to see where liquidity and trading activity cluster inside higher-timeframe structures — revealing whether trends are volume-backed or hollow. Perfect for combining structural insight with volume confluence when analyzing market sentiment transitions across timeframes.
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.