PROTECTED SOURCE SCRIPT

Candle Open Time Stamp [Higher TF Filter]

180
Key Features

Higher Timeframe Filter: Choose between "1H" or "4H". The script uses request.security to detect the exact moment a new candle opens on that timeframe.
Label Placement Options:
Below: Label appears below the low of the bar, pointing upward.
Above: Label appears above the high of the bar, pointing downward.
Inside: Label placed at the midpoint of the candle body ((open + close)/2), centered.

Timezone Control:
"Exchange" mode: Uses the symbol's native exchange timezone.
"UTC Offset" mode: Allows manual setting (default -5 for EST, common for US traders in New York, Fort Lauderdale, Miami, etc.).
Time is displayed correctly in the chosen timezone (e.g., "14:00" for 2 PM EST).

Smart Visibility:
Only shows labels on intraday charts.
Automatically disables on daily or higher timeframes.
Hides labels if your chart timeframe is higher than the selected filter (e.g., no 1H labels on a 4H chart).

Performance Optimization:
Manages labels with an array, limiting the total number (default 200, adjustable up to 500).
Automatically deletes oldest labels to stay within TradingView limits and prevent clutter.


Style Customization

Text color, background color, and text size (Tiny/Small/Normal).
Distance from price (for Above/Below placement) is intelligently scaled using a combination of ATR and minimum tick size, then multiplied by a user-adjustable factor.

Common Use Cases

Mark the start of each 4-hour session on lower-timeframe charts for ICT/SMC traders tracking "kill zones" or session bias.
Visualize exact 1H or 4H candle opens for multi-timeframe analysis.
Reference higher-TF structure while trading on 5M/15M charts without switching windows.

Clean, efficient, and highly practical for intraday traders who rely on higher-timeframe timing and structure.

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.