OPEN-SOURCE SCRIPT
已更新 Multi Vertical Timeline V3

English Description
Multi Vertical Timeline V3 + 3 Time Blocks
A professional trading indicator for precise time marking and session highlighting on your charts.
Key Features:
📍 6 Vertical Time Lines:
Individually configurable times (hour/minute)
Customizable colors, line widths, and styles (solid, dashed, dotted)
Enable/disable toggle for each timeline
Optional time labels
🎨 3 Trading Session Blocks:
Colored background highlights for important trading hours
Pre-configured for NY, London, and Tokyo sessions
Fully customizable start and end times
Transparent coloring for optimal chart readability
⏰ Smart Time Control:
Precise timezone offset setting (-12 to +12 hours)
Automatic adjustment for daylight saving time
Worldwide timezone support
Special handling for time blocks crossing midnight
🛠️ User-Friendly Design:
Clear grouping of all settings
Global on/off control for all labels
No performance impact through optimized code
Instant visual feedback
Use Cases:
Forex Trading (mark session overlaps)
Futures Trading (market opening hours)
Intraday Strategies (entry/exit times)
Multi-timeframe Analysis
Backtesting with time-based rules
Perfect for traders who need precise time markings and session highlights for their strategies!
Multi Vertical Timeline V3 + 3 Time Blocks
A professional trading indicator for precise time marking and session highlighting on your charts.
Key Features:
📍 6 Vertical Time Lines:
Individually configurable times (hour/minute)
Customizable colors, line widths, and styles (solid, dashed, dotted)
Enable/disable toggle for each timeline
Optional time labels
🎨 3 Trading Session Blocks:
Colored background highlights for important trading hours
Pre-configured for NY, London, and Tokyo sessions
Fully customizable start and end times
Transparent coloring for optimal chart readability
⏰ Smart Time Control:
Precise timezone offset setting (-12 to +12 hours)
Automatic adjustment for daylight saving time
Worldwide timezone support
Special handling for time blocks crossing midnight
🛠️ User-Friendly Design:
Clear grouping of all settings
Global on/off control for all labels
No performance impact through optimized code
Instant visual feedback
Use Cases:
Forex Trading (mark session overlaps)
Futures Trading (market opening hours)
Intraday Strategies (entry/exit times)
Multi-timeframe Analysis
Backtesting with time-based rules
Perfect for traders who need precise time markings and session highlights for their strategies!
發行說明
English DescriptionUpdate 12. September 2025
Multi Vertical Timeline V3 – Advanced Time-Line & Session Highlighter
A professional TradingView indicator for precise intraday time marking and session highlighting, now with past-day control.
⸻
Key Features
📍 6 Vertical Time Lines
• Individually configurable hour & minute
• Customizable color, width, and style (solid / dashed / dotted)
• Enable / disable toggle for each timeline
• Optional time labels with automatic formatting
🎨 3 Trading Session Blocks
• Transparent background highlights for key trading hours
• Pre-configured for New York, London, and Tokyo sessions
• Fully customizable start & end times
• Handles midnight-crossing sessions without errors
⏰ Smart Time & Day Control
• Precise timezone offset (-12 … +12 hours) to match your broker or exchange
• Automatic adjustment for daylight saving (via manual offset)
• Past-Day Visibility Setting:
• 0 → show only the current day (lines appear only after today’s time is reached)
• 1+ → additionally display historical days back to the chosen limit
• Prevents “yesterday’s lines” from showing when a time has not yet occurred today
🛠️ User-Friendly Design
• Clear grouping of all settings (Global / each Timeline / each Block)
• Global toggle to show or hide all labels
• Optimized Pine v6 code for minimal performance impact
• Instant visual feedback when changing settings
⸻
Typical Use Cases
• Forex – Mark London/New York/Tokyo overlaps
• Futures – Plot exchange opening times for ES, NQ, GC, etc.
• Intraday strategies – Define custom entry/exit windows
• Backtesting – Verify rules that depend on specific time windows
• Multi-timeframe analysis – Combine with indicators or price action
⸻
How to Use
1. Add to Chart
• Open the TradingView Indicators panel → “My Scripts” → MultiVTL V4.
2. Configure Global Settings
• Show All Labels – master switch for all time labels.
• Timezone Offset – align indicator times to your broker’s server or desired market.
• Past Days to Show – number of previous trading days to include (0 = only today).
3. Set Vertical Lines
• For each of the 6 timelines:
• Enable to activate.
• Choose Hour & Minute.
• Customize Color, Width, Style, and optional Label.
4. Set Trading Session Blocks
• Enable one or more of the 3 blocks.
• Define Start / End time and Color.
• Blocks will automatically highlight every allowed day within your chosen range.
5. Fine-Tune
• Adjust chart timeframe and zoom to confirm that past-day logic works:
• With Past Days = 0, lines only appear once today’s time is reached.
• Increase the value to instantly reveal historical sessions.
⸻
Perfect for traders who need clean, precise, and fully controllable time markers and session zones for any intraday strategy.
發行說明
Few improvements for backtesting use!發行說明
📋 MAJOR CHANGES AND NEW FEATURES🔥 MAIN FEATURES:
1. 12 TIME BLOCKS INSTEAD OF 3
• Extended from 3 to 12 configurable time blocks
• Perfect for ICT Macro time windows
• Each block individually toggleable
• Default: All 12 Macro windows (02:50-03:10, 03:50-04:10, etc.)
2. RANGE-ONLY MODE (NEW!)
• New checkbox: "Show Candle Range Only"
• Time blocks displayed as boxes from session High to Low
• Precise range display instead of full background coloring
• Works like professional Killzone indicators
• Functions on ALL timeframes including 30-second charts
3. MIDNIGHT FIX (CRITICAL!)
• Midnight (00:00) now works correctly with time offset
• New checkbox: "Always Show Today's Midnight"
• Solves the issue: With offset -1, Midnight became 23:00 of previous day
• Midnight time blocks (00:00-01:00) now function flawlessly
4. COLOR CORRECTION
• Time block 1 now accepts colors correctly
• All blocks use consistent color assignment
• No more display errors with activated blocks
5. MACRO PRESETS
• Default: 12 Macro time windows (20 minutes each)
• Dark gray for all blocks (70% transparency)
• Range mode enabled by default
• Only 7:00 AM line activated
• Time offset -1 hour preset
• Optimally preconfigured for ICT trading
⚙️ TECHNICAL IMPROVEMENTS:
• Fully compatible with all timeframes (30s to monthly)
• Optimized session detection for precise range recognition
• Enhanced midnight logic for time zone offsets
• Correct box extension for new highs/lows during session
• max_boxes_count=500 for historical display
📊 USE CASES:
✓ Visualize ICT Macro time windows
✓ Display precise Killzone ranges
✓ Mark London/New York/Tokyo sessions
✓ Define intraday trading time windows
✓ Multi-timeframe analysis on small charts
🎯 DEFAULT CONFIGURATION:
Time Blocks (Macros):
• Macro 1: 02:50 - 03:10
• Macro 2: 03:50 - 04:10
• Macro 3: 04:50 - 05:10
• Macro 4: 05:50 - 06:10
• Macro 5: 06:50 - 07:10
• Macro 6: 07:50 - 08:10
• Macro 7: 08:50 - 09:10
• Macro 8: 09:50 - 10:10
• Macro 9: 10:50 - 11:10
• Macro 10: 11:50 - 12:10
• Macro 11: 13:50 - 14:10
• Macro 12: 14:50 - 15:10
Settings:
• Time offset: -1 hour
• Past days: 0 (today only)
• Range mode: Enabled
• Labels: Disabled
• Color: Dark gray (70% transparency)
💡 NOTES:
• All settings fully customizable
• Range mode can be disabled anytime
• Time offset individually configurable
• Colors and labels freely selectable
• 6 additional time lines available
═══════════════════════════════════════════════════════════════════
COMPATIBILITY: TradingView Pine Script v6
VERSION: 7.0 (Makro Edition)
PREVIOUS VERSION: 5.0
═══════════════════════════════════════════════════════════════════
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。