PROTECTED SOURCE SCRIPT
已更新 Hours Scholarships

This script displays the real-time local time of the London, New York, and Tokyo trading sessions directly on the chart. It automatically calculates whether each market is currently open or closed and presents all information inside a dynamic table that adjusts to the user’s layout settings.
🔹 Technical Features
Real Local Time Calculation:
Uses timezone-specific timestamps to show accurate local time for each financial center, independent of the user's own timezone.
Session Status Detection:
London, New York, and Tokyo opening hours are calculated using actual market schedules, including Tokyo’s split session.
Dynamic Table Rendering:
The table rebuilds itself automatically on the final bar, adjusting to the user’s size and position preferences. Only the selected sessions are shown.
Smart Alert System:
Each market includes:
a user-defined target time (HH:MM)
an individual offset in minutes
The script computes a final adjusted alert time for each market (target time − offset), with full support for midnight rollover.
High-Timeframe Compatibility:
Local time is safely recalculated using security calls on 60-minute data when needed, ensuring stable behavior even on higher timeframes.
🔹 Why This Script Is Unique
Most session-time indicators only display opening hours or highlight sessions on the chart. This script goes further by combining:
Real-time local clock display for three markets
Per-session customizable alert times
Independent minute offsets for London, New York, and Tokyo
Automatic alert-time calculation with rollover handling
Dynamic UI construction and per-row visibility control
This combination of local time tracking, intelligent alert logic, and dynamic multi-session layout is not available in standard public indicators, which justifies the script as unique in both function and design.
🔹 Technical Features
Real Local Time Calculation:
Uses timezone-specific timestamps to show accurate local time for each financial center, independent of the user's own timezone.
Session Status Detection:
London, New York, and Tokyo opening hours are calculated using actual market schedules, including Tokyo’s split session.
Dynamic Table Rendering:
The table rebuilds itself automatically on the final bar, adjusting to the user’s size and position preferences. Only the selected sessions are shown.
Smart Alert System:
Each market includes:
a user-defined target time (HH:MM)
an individual offset in minutes
The script computes a final adjusted alert time for each market (target time − offset), with full support for midnight rollover.
High-Timeframe Compatibility:
Local time is safely recalculated using security calls on 60-minute data when needed, ensuring stable behavior even on higher timeframes.
🔹 Why This Script Is Unique
Most session-time indicators only display opening hours or highlight sessions on the chart. This script goes further by combining:
Real-time local clock display for three markets
Per-session customizable alert times
Independent minute offsets for London, New York, and Tokyo
Automatic alert-time calculation with rollover handling
Dynamic UI construction and per-row visibility control
This combination of local time tracking, intelligent alert logic, and dynamic multi-session layout is not available in standard public indicators, which justifies the script as unique in both function and design.
版本注释
✅ Description for the offsets (market alerts)The offset allows you to send the alert earlier or later than the actual market opening or closing time.
You can enter a value in minutes:
A positive value → the alert will be sent before the actual time (e.g., +5 = 5 minutes early).
A negative value → the alert will be sent after the actual time (e.g., -3 = 3 minutes late).
0 = the alert is sent exactly at the specified time.
版本注释
✅ 1. Ultra-precise local time (locked to 1-minute timeframe)The display of local time (London, New York, Tokyo) is now locked to the 1-minute timeframe, ensuring accurate time even when you change your chart timeframe.
版本注释
✅ New option: Hide the “Hours” columnYou can now fully show or hide the “Hours” column, which displays the opening and closing times of the London, New York, and Tokyo stock exchanges.
This option helps simplify the table and adjust the display to your needs without altering the overall structure of the widget.
版本注释
🆕 New Update: Full Control Over the Table DisplayYour widget just became even more customizable!
You can now enjoy greater flexibility with the following features:
✅ 1. Show / Hide the “Stock Exchange” column
If you don’t need to see the market names (London, New York, Tokyo), you can now disable this column entirely.
The table automatically adjusts — no empty space, no misalignment.
✅ 2. Resize the table
Using the “Size” option (Small, Medium, Large, Extra Large), you can adjust the widget to fit your chart layout or screen space perfectly.
✅ 3. Move the table anywhere you want
Choose the exact placement of the table on your chart:
- Top Right
- Top Left
- Bottom Right
- Bottom Left
The table adapts seamlessly, stays clean, and never interferes with your market analysis.
版本注释
Correction bug 受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用,没有任何限制 — 了解更多信息这里。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用,没有任何限制 — 了解更多信息这里。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。