OPEN-SOURCE SCRIPT
已更新 Market Sessions V2

🔄 MAJOR UPDATE v2.0
✨ NEW FEATURES:
- Live Info Panel with session status, timer, range & change%
- Average range statistics (based on history period)
- Weekend mode highlighting (Fri US Close → Mon Asia Open)
- Pre-market & Post-market tracking for US session (table only)
- Auto/Manual session times with validation
🔧 IMPROVEMENTS:
- Accurate official exchange hours (TSE 09:00-15:30, LSE 08:00-16:30, NYSE 09:30-16:00, ASX 10:00-16:00)
- Automatic DST handling via native timezones
- Tokyo Lunch Break indicator (11:30-12:30 JST)
- Works on all timeframes with smart adaptation (boxes ≤4H, table always)
- Bar Replay compatible
🛡️ RELIABILITY:
- Input validation for manual time entries
- Graceful handling of higher timeframes
- Optimized memory management
📖 For Forex/Crypto traders: Sessions show continuous trading hours.
Tokyo lunch (11:30-12:30 JST) is indicated in table only.
✨ NEW FEATURES:
- Live Info Panel with session status, timer, range & change%
- Average range statistics (based on history period)
- Weekend mode highlighting (Fri US Close → Mon Asia Open)
- Pre-market & Post-market tracking for US session (table only)
- Auto/Manual session times with validation
🔧 IMPROVEMENTS:
- Accurate official exchange hours (TSE 09:00-15:30, LSE 08:00-16:30, NYSE 09:30-16:00, ASX 10:00-16:00)
- Automatic DST handling via native timezones
- Tokyo Lunch Break indicator (11:30-12:30 JST)
- Works on all timeframes with smart adaptation (boxes ≤4H, table always)
- Bar Replay compatible
🛡️ RELIABILITY:
- Input validation for manual time entries
- Graceful handling of higher timeframes
- Optimized memory management
📖 For Forex/Crypto traders: Sessions show continuous trading hours.
Tokyo lunch (11:30-12:30 JST) is indicated in table only.
版本注释
Fixed a bug where session labels were not updating their position correctly when 'Show Open Price Lines' was disabled.Improved Info Panel readability: updated session labels (ASIA, EUROPE, USA, PO/AU) and added tooltips displaying official session hours and timezones.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。