OPEN-SOURCE SCRIPT
Atualizado 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.
Notas de Lançamento
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.
Notas de Lançamento
# 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.
Notas de Lançamento
# 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.
Notas de Lançamento
Bux fixNotas de Lançamento
bug fixNotas de Lançamento
V3.1Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.