OPEN-SOURCE SCRIPT
Aktualisiert

[FS] Time & Cycles

1 660
[SF] Time & Cycles

A comprehensive trading session indicator that helps traders identify and track key market sessions and their price levels. This tool is particularly useful for forex and futures traders who need to monitor multiple trading sessions.

Key Features:
• Multiple Session Support:
- London Session
- New York Session
- Sydney Session
- Asia Session
- Customizable TBD Session

• Session Visualization:
- Clear session boxes with customizable colors
- Session labels with adjustable visibility
- Support for sessions crossing midnight
- Timezone-aware calculations

• Price Level Tracking:
- Daily High/Low levels
- Weekly High/Low levels
- Previous session High/Low levels
- Customizable history depth for each level type

• Customization Options:
- Adjustable colors for each session
- Customizable border styles
- Label visibility controls
- Timezone selection
- History level depth settings

• Technical Features:
- High-performance calculation engine
- Support for multiple timeframes
- Efficient memory usage
- Clean and intuitive visual display

Perfect for:
• Forex traders monitoring multiple sessions
• Futures traders tracking market hours
• Swing traders identifying key session levels
• Day traders planning their trading hours
• Market analysts studying session patterns

The indicator helps traders:
- Identify active trading sessions
- Track session-specific price levels
- Monitor market activity across different time zones
- Plan trades based on session boundaries
- Analyze price action within specific sessions

Note: This indicator is designed to work across all timeframes and is optimized for performance with minimal impact on chart loading times.
Versionshinweise
[SF] Time & Cycles

A comprehensive trading session indicator that helps traders identify and track key market sessions and their price levels. This tool is particularly useful for forex and futures traders who need to monitor multiple trading sessions.

Key Features:
• Multiple Session Support:
- London Session
- New York Session
- Sydney Session
- Asia Session
- Customizable TBD Session

• Session Visualization:
- Clear session boxes with customizable colors
- Session labels with adjustable visibility
- Support for sessions crossing midnight
- Timezone-aware calculations

• Price Level Tracking:
- Daily High/Low levels
- Weekly High/Low levels
- Previous session High/Low levels
- Customizable history depth for each level type

• Customization Options:
- Adjustable colors for each session
- Customizable border styles
- Label visibility controls
- Timezone selection
- History level depth settings

• Technical Features:
- High-performance calculation engine
- Support for multiple timeframes
- Efficient memory usage
- Clean and intuitive visual display

Perfect for:
• Forex traders monitoring multiple sessions
• Futures traders tracking market hours
• Swing traders identifying key session levels
• Day traders planning their trading hours
• Market analysts studying session patterns

The indicator helps traders:
- Identify active trading sessions
- Track session-specific price levels
- Monitor market activity across different time zones
- Plan trades based on session boundaries
- Analyze price action within specific sessions

Note: This indicator is designed to work across all timeframes and is optimized for performance with minimal impact on chart loading times.
Versionshinweise
### Added
- **This Week feature**: New checkbox and color picker for current week levels
- **WH/WL labels**: Weekly High and Weekly Low labels for the current week
- **Current week display**: Shows the highest and lowest prices of the current week with orange horizontal lines
- **Independent control**: "This Week" can be toggled on/off independently from historical weekly levels

### Changed
- **PWL/PWH correction**: Fixed display offset issue where PWL-2/PWH-2 was showing instead of PWL/PWH
- **Label positioning**: "This Week" checkbox moved to optimal position (after "Today", before "D")
- **Line display**: Weekly levels now display as horizontal lines extending to the right
- **Comment translation**: All French comments translated to English for better code readability

### Fixed
- **Weekly level display**: Resolved issue where WH/WL labels were not appearing on the chart
- **Line orientation**: Fixed vertical line issue - weekly levels now display as proper horizontal lines
- **Current week tracking**: Improved initialization and tracking of current week high/low values
- **Display conditions**: Simplified plot_level function logic to ensure reliable label display

### Technical Improvements
- **Variable initialization**: Added proper initialization of current week variables at script start
- **Display logic**: Enhanced plot_level function to handle current bar display correctly
- **Code structure**: Improved code organization and readability
- **Error handling**: Better handling of edge cases in weekly level calculations

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.