OPEN-SOURCE SCRIPT
ที่อัปเดต: Label Temps Réel - Position Adaptative

🕒 REAL-TIME CANDLE TIMESTAMP LABEL
Displays the current candle's date and time directly on your chart with automatic updates.
✨ KEY FEATURES:
• Automatic timestamp label at the bottom of the chart (like the price label on the right)
• Vertical line connecting the active candle to the timestamp
• Real-time updates: moves automatically with each new candle
• Adaptive positioning: works perfectly on ALL timeframes (1M to 1W+)
🎨 CUSTOMIZATION OPTIONS:
• Label Style: Rectangle, Arrow Up/Down, Circle
• Line Style: Solid, Dotted, Dashed
• Text Layout: Horizontal (1 line) or Vertical (2 lines)
• Colors: Independent label and line colors
• Size: Tiny to Huge label sizes
• Distance: Adjustable spacing (% of visible range)
📅 TIME FORMAT:
HH:MM - DD-MM (Hour:Minute - Day-Month)
No year displayed for cleaner visuals.
⚙️ TECHNICAL DETAILS:
• 100% Pine Script v6 compliant
• Zero lag or repainting
• Minimal resource usage (1 label + 1 line)
• Position calculated as percentage of visible range = always consistent visual placement
🎯 USE CASES:
Perfect for traders who need constant time awareness without cluttering the chart.
Especially useful for multi-timeframe analysis and session timing.
💡 NO CONFIGURATION NEEDED:
Add to chart → Works immediately. Customize later if desired.
---
Built with Pine Script v6 | Lightweight | Universal Compatibility
Displays the current candle's date and time directly on your chart with automatic updates.
✨ KEY FEATURES:
• Automatic timestamp label at the bottom of the chart (like the price label on the right)
• Vertical line connecting the active candle to the timestamp
• Real-time updates: moves automatically with each new candle
• Adaptive positioning: works perfectly on ALL timeframes (1M to 1W+)
🎨 CUSTOMIZATION OPTIONS:
• Label Style: Rectangle, Arrow Up/Down, Circle
• Line Style: Solid, Dotted, Dashed
• Text Layout: Horizontal (1 line) or Vertical (2 lines)
• Colors: Independent label and line colors
• Size: Tiny to Huge label sizes
• Distance: Adjustable spacing (% of visible range)
📅 TIME FORMAT:
HH:MM - DD-MM (Hour:Minute - Day-Month)
No year displayed for cleaner visuals.
⚙️ TECHNICAL DETAILS:
• 100% Pine Script v6 compliant
• Zero lag or repainting
• Minimal resource usage (1 label + 1 line)
• Position calculated as percentage of visible range = always consistent visual placement
🎯 USE CASES:
Perfect for traders who need constant time awareness without cluttering the chart.
Especially useful for multi-timeframe analysis and session timing.
💡 NO CONFIGURATION NEEDED:
Add to chart → Works immediately. Customize later if desired.
---
Built with Pine Script v6 | Lightweight | Universal Compatibility
เอกสารเผยแพร่
REAL-TIME CANDLE TIMESTAMP LABELDisplays the current candle's date and time directly on your chart with automatic real-time updates and a vertical line connecting the active candle to the timestamp label.
KEY FEATURES
Automatic timestamp label positioned at the bottom of the chart, similar to the price label displayed on the right side. The label updates automatically with each new candle and follows the active bar in real-time.
Vertical line connects the current candle to the timestamp label below, providing clear visual reference. The line can be customized with solid, dotted, or dashed styles.
Universal adaptive positioning works perfectly on all timeframes from 1 minute to monthly charts without any manual adjustment. The distance is calculated as a percentage of the visible price range, ensuring consistent visual placement regardless of timeframe or zoom level.
CUSTOMIZATION OPTIONS
Label Style: Choose between Rectangle, Arrow Up, Arrow Down, or Circle shapes.
Line Style: Select Solid, Dotted, or Dashed appearance for the vertical line.
Date/Time Format: Four format options available:
HH:MM - DD-MM (compact format with hour, minute, day, month)
HH:MM - Day Name (displays weekday name like Monday, Tuesday, etc.)
HH:MM:SS - DD-MM-YYYY (full format with seconds and year)
DD-MM HH:MM (European date-first format)
Text Layout: Switch between Horizontal one-line display or Vertical two-line layout.
Colors: Independent color selection for label background and connecting line.
Size: Five size options from Tiny to Huge for the label text.
Distance: Adjustable spacing as percentage of visible range for optimal positioning.
TECHNICAL SPECIFICATIONS
Built with Pine Script v6 for maximum compatibility and performance. Zero lag or repainting issues. Minimal resource usage with only one label and one line object. Position calculated dynamically based on visible price range, ensuring the label stays at a consistent visual location regardless of market volatility or chart settings.
USE CASES
Perfect for traders who need constant time awareness without cluttering the chart. Especially useful for multi-timeframe analysis, session timing, and maintaining temporal context during trading. The vertical line provides instant visual reference to the exact candle being timestamped.
SETUP
Add the indicator to your chart and it works immediately with default settings. All customization is optional and accessible through the indicator settings panel. No configuration required for basic functionality.
เอกสารเผยแพร่
Summary of New FeaturesHere's a simple report of the latest changes to the indicator:
NEW FEATURE 1: UTC Timezone Adjustment
Added a UTC offset parameter that lets you adjust the displayed time to match your local timezone. The default value is 0 (UTC time), but you can change it to any value between -12 and +14 hours.
Examples:
Set to +1 for Paris time
Set to -5 for New York Eastern Time
Set to +9 for Tokyo time
The time calculation automatically adjusts all displayed values including hours, minutes, and even the day of the week if your timezone offset causes the date to change.
NEW FEATURE 2: Additional Date Format Option
Added a new date format option called "HH:MM - Day Name - DD" that displays:
The time in hours and minutes
The full day name (Monday, Tuesday, etc.)
The day number of the month
Example output: "15:00 - Monday - 02"
This format combines three pieces of information in one line, making it useful for traders who need both the weekday name and the specific date.
UPDATED: Total Date Format Options
The indicator now offers five different date and time format choices:
HH:MM - DD-MM (compact format)
HH:MM - Day Name (shows weekday name)
HH:MM - Day Name - DD (new: shows weekday name and day number)
HH:MM:SS - DD-MM-YYYY (full format with seconds and year)
DD-MM HH:MM (European format with date first)
All formats work with the UTC offset adjustment, ensuring accurate time display regardless of your location.
TECHNICAL IMPLEMENTATION
The UTC offset works by converting the offset hours into milliseconds and adding them to the candle timestamp. The script then extracts all time components (hour, minute, day, month, day of week) from this adjusted timestamp, ensuring consistency across all displayed values.
The tooltip now shows the current UTC offset setting, helping users confirm which timezone they are viewing.
USER BENEFIT
These changes make the indicator truly international. Traders anywhere in the world can now see candle timestamps in their local time without manual calculation, and they can choose the date format that best matches their regional preferences or trading style.
สคริปต์โอเพนซอร์ซ
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.
คำจำกัดสิทธิ์ความรับผิดชอบ
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.
สคริปต์โอเพนซอร์ซ
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.
คำจำกัดสิทธิ์ความรับผิดชอบ
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.