OPEN-SOURCE SCRIPT
已更新

Custom Daily Session Zones by Koenigsegg

500
Custom Daily Session Zones

🟣 Description
This indicator displays customizable trading session time zones as background highlights on your chart, on any timeframe you choose. The inline info tooltip provides the precise start and end times of the three largest market sessions—the US, the EU, and ASIA—for quick reference. It provides flexible control over session times for different days of the week, making it ideal for traders who need to visualize specific market hours or trading sessions.

🟣 Key Features
- Flexible Session Configuration: Set a common session time for all days or customize individual sessions for each day of the week
- Per-Day Control: Enable or disable sessions for specific days (Monday through Sunday)
- Color Customization: Choose unique colors for each day's session zones
- UTC Timezone Standard: All session times are defined in UTC to ensure consistency across charts
- Clean Visual Display: Non-intrusive background highlighting that doesn't interfere with price action

🟣 How to Use
- Common Session Mode: Use the default mode to apply the same session time across all enabled days
- Manual Per-Day Mode: Enable "Manual per-day sessions" to set different session times for each day
- Day Selection: Toggle individual days on/off based on your trading schedule
- Color Coding: Customize colors for each day to easily distinguish between different sessions

🟣 Technical Details
- Uses Pine Script v6 for optimal performance
- Implements proper session time detection using TradingView's built-in time functions
- Operates in UTC timezone for all session calculations
- Lightweight code that doesn't impact chart performance

🟣 Use Cases
- Highlight specific trading sessions (London, New York, Tokyo, etc.)
- Mark important market hours for your trading strategy
- Visualize different session overlaps
- Create custom trading time windows
- Track market activity during specific hours

🟣 Compatibility
- Works on all timeframes
- Compatible with all asset classes (Forex, Stocks, Crypto, Futures, etc.)
- Supports all TradingView chart types
- Responsive design that adapts to different screen sizes

🟣 Image Descriptions
- First Image (main image): Shows multiple New York Stock Exchange sessions from 1:30 p.m. to 8:00 p.m. (UTC), on the 15-minute timeframe, with each day’s zone colored differently to demonstrate the indicator’s customizable color settings.

- Second Image: A zoomed‑in fractal chart view of the same New York session on the 15-minute timeframe, illustrating how the background session zone appears even at higher detail levels.
快照

Third Image: A close‑up of the New York session (1:30 p.m. to 8:00 p.m.) on the 3-minute timeframe, reaffirming the consistency of zone highlighting across different zoom levels.
快照

🟣 Future Updates (v2)
In the next release, you’ll be able to define multiple session blocks per day—displaying two distinct colored zones within the same trading day. This will help you visualize when one market session ends and another begins without losing chart clarity.

🟣 Conclusion
This indicator is perfect for traders who need precise control over Market Session visualization and want to maintain a clean, professional chart appearance.

🟣 Disclaimer
This script is provided for educational and illustrative purposes only. It is not financial or trading advice, nor a recommendation to buy or sell any asset. Always conduct your own research and consult a professional before making any trading decisions.
發行說明
Custom Daily Session Zones - Update v2.0

See it in action! The new session end line indicator clearly marks when your current trading session will end, helping you plan your trades more effectively.

📸 Screenshot:
快照


What's Changed:

► Streamlined Configuration
- Removed the common session time input and manual per-day toggle
- Now uses only the per-day session settings directly (simpler, cleaner interface)

► Added Session End Line Indicator
- New feature: Shows a vertical line at the end of the current active session
- Fully customizable:
• Color picker
• Line style: Solid, Dotted, or Dashed
• Line width: 1-4
- Only displays during live sessions to indicate when the session will end

► Added DST Switch Dates Reference
- Added Daylight Saving Time transition dates in the tooltip
- Shows when to switch between Summer and Winter times
- Helps users know exactly when to adjust their session time settings throughout the year
- Original tooltip already included the Summer/Winter hours - now also includes WHEN to switch

► Session Reference Info
- Moved session times reference tooltip to a new location
- Now includes comprehensive timezone information for global markets


What Stayed the Same:
- All original functionality preserved
- Per-day color, time, and enable/disable settings unchanged
- Historical session background coloring works exactly as before
- No changes to the core session detection logic


Default Settings:
- Session end line: Blue dotted line (width 1)
- All other defaults remain as in the original


The update essentially adds one new feature (session end line), includes DST reference information, and simplifies the interface by removing redundant options, while maintaining 100% of the original functionality.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。