OPEN-SOURCE SCRIPT
已更新 Supply/Demand Zones - Fixed v3 (Cross YES Only)

This Pine Script indicator creates Supply/Demand Zones with specific filtering criteria for TradingView. Here's a comprehensive description:
Supply/Demand Zones -(Cross YES Only)
Core Functionality
Session-Based Analysis: Identifies and visualizes price ranges during user-defined time sessions
Cross Validation Filter: Only displays zones when the "Cross" condition is met (Open and Close prices cross the mid-range level)
Real-Time Monitoring: Tracks price action during active sessions and creates zones after session completion
Key Features
Time Range Configuration
Customizable session hours (start/end time with minute precision)
Timezone support (default: Europe/Bucharest)
Flexible scheduling for different trading sessions
Visual Elements
Range Border: Dotted outline showing the full session range (High to Low)
Key Levels: Horizontal lines for High, Low, and Mid-range levels
Sub-Range Zones: Shaded areas showing Open and Close price zones
Percentage Labels: Display the percentage of range occupied by Open/Close zones
Active Session Background: Blue background highlighting during active sessions
Smart Filtering System
Cross Condition: Only creates zones when:
Open < Mid AND Close > Mid (bullish cross), OR
Open > Mid AND Close < Mid (bearish cross)
This filter ensures only significant price movements that cross the session's midpoint are highlighted
Customization Options
Display Controls: Toggle visibility for borders, lines, zones, and labels
Color Schemes: Full color customization for all elements
Transparency Settings: Adjustable transparency for zone fills
Text Styling: Configurable label colors and information display
Technical Specifications
Maximum capacity: 500 boxes, 500 lines, 200 labels
Overlay indicator (draws directly on price chart)
Bar-time based positioning for accurate historical placement
Use Cases
Supply/Demand Trading: Identify key price levels where institutions may have interest
Session Analysis: Understand price behavior during specific trading hours
Breakout Detection: Focus on sessions where price crosses significant levels
Support/Resistance: Use range levels for future trade planning
What Makes It Unique
The "Cross YES Only" filter ensures that only meaningful price sessions are highlighted - those where the market shows directional bias by crossing from one side of the range to the other, indicating potential institutional interest or significant market sentiment shifts.
Supply/Demand Zones -(Cross YES Only)
Core Functionality
Session-Based Analysis: Identifies and visualizes price ranges during user-defined time sessions
Cross Validation Filter: Only displays zones when the "Cross" condition is met (Open and Close prices cross the mid-range level)
Real-Time Monitoring: Tracks price action during active sessions and creates zones after session completion
Key Features
Time Range Configuration
Customizable session hours (start/end time with minute precision)
Timezone support (default: Europe/Bucharest)
Flexible scheduling for different trading sessions
Visual Elements
Range Border: Dotted outline showing the full session range (High to Low)
Key Levels: Horizontal lines for High, Low, and Mid-range levels
Sub-Range Zones: Shaded areas showing Open and Close price zones
Percentage Labels: Display the percentage of range occupied by Open/Close zones
Active Session Background: Blue background highlighting during active sessions
Smart Filtering System
Cross Condition: Only creates zones when:
Open < Mid AND Close > Mid (bullish cross), OR
Open > Mid AND Close < Mid (bearish cross)
This filter ensures only significant price movements that cross the session's midpoint are highlighted
Customization Options
Display Controls: Toggle visibility for borders, lines, zones, and labels
Color Schemes: Full color customization for all elements
Transparency Settings: Adjustable transparency for zone fills
Text Styling: Configurable label colors and information display
Technical Specifications
Maximum capacity: 500 boxes, 500 lines, 200 labels
Overlay indicator (draws directly on price chart)
Bar-time based positioning for accurate historical placement
Use Cases
Supply/Demand Trading: Identify key price levels where institutions may have interest
Session Analysis: Understand price behavior during specific trading hours
Breakout Detection: Focus on sessions where price crosses significant levels
Support/Resistance: Use range levels for future trade planning
What Makes It Unique
The "Cross YES Only" filter ensures that only meaningful price sessions are highlighted - those where the market shows directional bias by crossing from one side of the range to the other, indicating potential institutional interest or significant market sentiment shifts.
版本注释
This Pine Script indicator creates Supply/Demand Zones with specific filtering criteria for TradingView. Here's a comprehensive description:Supply/Demand Zones -(Cross YES Only)
Core Functionality
Session-Based Analysis: Identifies and visualizes price ranges during user-defined time sessions
Cross Validation Filter: Only displays zones when the "Cross" condition is met (Open and Close prices cross the mid-range level)
Real-Time Monitoring: Tracks price action during active sessions and creates zones after session completion
Key Features
Time Range Configuration
Customizable session hours (start/end time with minute precision)
Timezone support (default: Europe/Bucharest)
Flexible scheduling for different trading sessions
Visual Elements
Range Border: Dotted outline showing the full session range (High to Low)
Key Levels: Horizontal lines for High, Low, and Mid-range levels
Sub-Range Zones: Shaded areas showing Open and Close price zones
Percentage Labels: Display the percentage of range occupied by Open/Close zones
Active Session Background: Blue background highlighting during active sessions
Smart Filtering System
Cross Condition: Only creates zones when:
Open < Mid AND Close > Mid (bullish cross), OR
Open > Mid AND Close < Mid (bearish cross)
This filter ensures only significant price movements that cross the session's midpoint are highlighted
Customization Options
Display Controls: Toggle visibility for borders, lines, zones, and labels
Color Schemes: Full color customization for all elements
Transparency Settings: Adjustable transparency for zone fills
Text Styling: Configurable label colors and information display
Technical Specifications
Maximum capacity: 500 boxes, 500 lines, 200 labels
Overlay indicator (draws directly on price chart)
Bar-time based positioning for accurate historical placement
Use Cases
Supply/Demand Trading: Identify key price levels where institutions may have interest
Session Analysis: Understand price behavior during specific trading hours
Breakout Detection: Focus on sessions where price crosses significant levels
Support/Resistance: Use range levels for future trade planning
What Makes It Unique
The "Cross YES Only" filter ensures that only meaningful price sessions are highlighted - those where the market shows directional bias by crossing from one side of the range to the other, indicating potential institutional interest or significant market sentiment shifts.
版本注释
# Supply/Demand Zones Indicator**Smart range-based indicator that identifies validated supply and demand zones using price action patterns.**
## Key Features:
- **Time-based Range Detection**: Monitors price action within specified time intervals
- **Cross Validation**: Identifies ranges where open and close cross the midpoint (50% level)
- **Target Validation**: Confirms zones only when price extends 0.5x range beyond high/low
- **Automatic Mitigation**: Tracks and removes zones when price returns to them
- **Visual Elements**: Shows range borders, high/low/mid lines, and sub-range zones (open/close areas)
## How It Works:
1. Captures high/low/open/close during specified time session
2. Detects "Cross YES" condition (open and close on opposite sides of range midpoint)
3. Monitors next 50 bars for price to reach target level (high/low + 0.5x range)
4. Creates unmitigated zone if target is hit without returning to midpoint
5. Automatically removes zones when price touches them again
## Settings:
- **Timezone Offset**: UTC-based time adjustment (-12 to +14 hours)
- **Session Time**: Customizable start/end hours and minutes
- **Display Options**: Toggle borders, lines, zones, and labels
- **Colors & Transparency**: Full customization of visual elements
- **Debug Mode**: Shows validation process and monitoring levels
Perfect for identifying high-probability reversal zones based on institutional order flow concepts.
版本注释
# Supply/Demand Zones Indicator**Smart range-based indicator that identifies validated supply and demand zones using price action patterns.**
## Key Features:
- **Time-based Range Detection**: Monitors price action within specified time intervals
- **Cross Validation**: Identifies ranges where open and close cross the midpoint (50% level)
- **Target Validation**: Confirms zones only when price extends 0.5x range beyond high/low
- **Automatic Mitigation**: Tracks and removes zones when price returns to them
- **Visual Elements**: Shows range borders, high/low/mid lines, and sub-range zones (open/close areas)
## How It Works:
1. Captures high/low/open/close during specified time session
2. Detects "Cross YES" condition (open and close on opposite sides of range midpoint)
3. Monitors next 50 bars for price to reach target level (high/low + 0.5x range)
4. Creates unmitigated zone if target is hit without returning to midpoint
5. Automatically removes zones when price touches them again
## Settings:
- **Timezone Offset**: UTC-based time adjustment (-12 to +14 hours)
- **Session Time**: Customizable start/end hours and minutes
- **Display Options**: Toggle borders, lines, zones, and labels
- **Colors & Transparency**: Full customization of visual elements
- **Debug Mode**: Shows validation process and monitoring levels
Perfect for identifying high-probability reversal zones based on institutional order flow concepts.
版本注释
Bux fix版本注释
bug fix版本注释
V3.1开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。