OPEN-SOURCE SCRIPT
[AlscapeLabs] HTF Candle Stack (Multi-Timeframe)

Overview
The HTF Candle Stack (Multi-TF) indicator is a powerful visualization tool designed to overlay high-timeframe (HTF) price action directly onto your current chart, independent of the chart's price scale. This gives traders a clear, aligned, and non-overlapping view of simultaneous price movements across customizable timeframes.
By stacking the candles horizontally next to the chart's price action, the indicator allows for quick identification of multi-timeframe correlation, trend confluence, and key levels without switching chart timeframes.
Key Features
- 6 Independent Stacks: Configure up to 6 separate timeframes (e.g., 5m, 15m, 1H, 4H, Daily, Weekly) to view the complete market fractals from micro to macro.
- Price-Aligned Visualization: All HTF candle stacks are perfectly aligned with the main chart's vertical price axis
- Replay Mode Safe: Includes dedicated logic to prevent "duplicate candles" during Bar Replay, ensuring accurate backtesting and historical analysis.
- Toggleable Stacks: Each stack can be individually enabled or disabled via input settings
- Dynamic Spacing: The distance between active stacks is automatically calculated and adjusted based on the visibility of the preceding stack.
Settings Guide
Stack Configuration (1 - 6)
Each of the six stacks has identical controls:
- Show/Hide: Enable or disable this specific stack.
- Timeframe: The specific HTF to display (e.g., "60" for 1 Hour, "D" for Daily).
[*}Count: How many candles to show in this stack (Current Active Candle + Past Closed Candles). Tip: Use higher counts (10-12) for lower TFs (Stack 1-2) and lower counts (2-4) for higher TFs (Stack 5-6)
Candle Color
Controls global coloring
- Bullish / Bearish: Customize the body colors.
- Wick: Separate control for wick color and transparency
Layout
- Distance from Chart: How far (in bars) to the right the first stack begins
- Space between Stacks: The gap (in bars) between each active stack.
- Candle Width: The thickness of the HTF candles.
Labels
Displays a time-frame next to the active (live) candle in each stack
- Show TF Labels: Enable or disable labels through all stacks
- Text Color: Label text color
- Background: Label background color
- Style: Label position (Left, Down)
- Size: Label text size (Tiny, Small, Normal, Large, Huge)
Developed by AlscapeLabs
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.