OPEN-SOURCE SCRIPT
SwRp – HTF Candle Box Overlay

SwRp – HTF Candle Box Overlay gives you a clear visual map of higher-timeframe candles directly on your lower-timeframe chart. Instead of switching timeframes, you can see the structure of each HTF candle plotted as colored boxes that update in real time as the candle forms.
Each HTF candle is drawn using two elements:
• A wick box showing the full high-to-low range
• A body box showing the open-to-close move with automatic bull/bear coloring
Both boxes follow the exact HTF open, high, low and close values, and they stay correctly anchored to price using bar-time positioning. You can customize opacity, body/wick visibility, border color, and the number of HTF candles to keep on the chart. The indicator automatically removes older candles when they exceed your set limit, so the chart stays clean.
This tool is ideal for traders who want to see HTF structure, zones, and candle behavior while analyzing entries and exits on smaller timeframes.
Key Features
• Overlay higher-timeframe candles on lower-timeframe charts
• Real-time updating of HTF candle body and wick
• Bull/bear body coloring with full opacity controls
• Independent toggles for body and wick fills
• Automatically remove older HTF candles to keep the chart clean
• Accurate price anchoring using bar-time for all boxes
• No extra lines, labels, or clutter — a clean visual multi-timeframe view
This indicator offers a simple, clear way to track the behavior of higher-timeframe candles without leaving your current chart, helping you combine HTF context with LTF execution more effectively.
Each HTF candle is drawn using two elements:
• A wick box showing the full high-to-low range
• A body box showing the open-to-close move with automatic bull/bear coloring
Both boxes follow the exact HTF open, high, low and close values, and they stay correctly anchored to price using bar-time positioning. You can customize opacity, body/wick visibility, border color, and the number of HTF candles to keep on the chart. The indicator automatically removes older candles when they exceed your set limit, so the chart stays clean.
This tool is ideal for traders who want to see HTF structure, zones, and candle behavior while analyzing entries and exits on smaller timeframes.
Key Features
• Overlay higher-timeframe candles on lower-timeframe charts
• Real-time updating of HTF candle body and wick
• Bull/bear body coloring with full opacity controls
• Independent toggles for body and wick fills
• Automatically remove older HTF candles to keep the chart clean
• Accurate price anchoring using bar-time for all boxes
• No extra lines, labels, or clutter — a clean visual multi-timeframe view
This indicator offers a simple, clear way to track the behavior of higher-timeframe candles without leaving your current chart, helping you combine HTF context with LTF execution more effectively.
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.