OPEN-SOURCE SCRIPT
تم تحديثه

[AlscapeLabs] HTF Candle Stack (Multi-Timeframe)

664
لقطة

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
ملاحظات الأخبار
v1.1.0: Dynamic Timeframe Filtering
Added a smart visibility filter to improve the user experience when switching timeframes.

New Logic: The indicator now automatically detects your current chart's timeframe. It will hide any Stacks that are lower (faster) than your current chart.

Example:
  • If you are on a 30m chart, the 5m and 15m stacks will automatically disappear.
  • The remaining higher timeframe stacks (e.g., 1H, 4H, Daily) will automatically shift left to fill the gap.
ملاحظات الأخبار
v1.2.0: Stack Countdown Timers
Added live countdown timers to every visible stack with dynamic viewport tracking.

New logic: The indicator now calculates
  • remaining time until the live candle closes
  • the visual midpoint of your stacks.


Dynamic viewport tracking:
To keep data visible, the timers automatically snap to the Top or Bottom based on where the price is trading relative to the range.
Example: If you have a massive Daily candle and price is trading near the lows, the timers won't be stuck at the top (potentially off-screen) but will snap to the bottom, right near the price action.

Changes:
  • Added: Show Timer toggle in the "Labels" settings group.
  • Added: f_format_timer logic to convert milliseconds into HH:mm:ss
  • Added: Global scanner that aligns all timers on a single horizontal axis (highest high or lowest low) for a clean visual.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.