OPEN-SOURCE SCRIPT
Updated TRI - Smart Zones

============================================================================
# TRI - SMART ZONES v2.0
## Professional Smart Money Concepts Indicator for Pine Script v6
============================================================================
## ๐ OVERVIEW
**TRI - Smart Zones** is a comprehensive Smart Money Concepts indicator that
combines multiple institutional trading concepts into a single, powerful tool.
Built with Pine Script v6 for optimal performance and reliability.
## ๐ฏ CORE FEATURES
### **Fair Value Gaps (FVG)**
- **Detection**: Automatic identification of price imbalances
- **Types**: Bullish and Bearish Fair Value Gaps
- **Threshold**: Customizable gap size requirements (0.1% default)
- **Extension**: Configurable zone projection length
- **Mitigation**: Real-time tracking of gap fills
### **Order Blocks (OB)**
- **Detection**: Volume-based institutional footprint identification
- **Types**: Bullish and Bearish Order Blocks
- **Method**: Pivot-based volume analysis with configurable lookback
- **Validation**: Market structure confirmation required
- **Extension**: Adjustable zone projection
### **BSL/SSL Liquidity Levels**
- **Multi-Timeframe**: Automatic higher timeframe reference
- **Dynamic**: Real-time level updates and extensions
- **Visual**: Clear line markings with timeframe labels
- **Smart**: Adaptive timeframe selection based on current chart
### **Fibonacci Extensions**
- **ZigZag Integration**: Advanced pivot point detection
- **Levels**: Customizable Fibonacci ratios (38.2%, 61.8%, 100%, 161.8%)
- **Projection**: Dynamic extension from swing points
- **Visual**: Subtle dashed lines with level/price labels
### **Smart Dashboard**
- **Zone Statistics**: Real-time FVG and OB counts
- **Success Rates**: Mitigation percentages for each zone type
- **Market Bias**: Intelligent bullish/bearish/neutral assessment
- **Positioning**: Customizable location and size
### **Zone Analysis Engine**
- **Technical Confluence**: RSI, ADX, ATR, Volume analysis
- **VWAP Integration**: Institutional price reference
- **Confidence Scoring**: High/Mid/Low signal classification
- **Signal Arrows**: Visual trade direction indicators
## ๐ ALERT SYSTEM
### **Market Structure Alerts**
- `Market Bias Changed` - Shift in overall market sentiment
- `BSL Touched` - Buy Side Liquidity level reached
- `SSL Touched` - Sell Side Liquidity level reached
### **Zone Touch Alerts**
- `OB Touched` - Any Order Block interaction
- `Bullish OB Touched` - Bullish Order Block touch
- `Bearish OB Touched` - Bearish Order Block touch
- `FVG Touched` - Any Fair Value Gap interaction
- `Bullish FVG Touched` - Bullish FVG touch
- `Bearish FVG Touched` - Bearish FVG touch
- `Zone Touched` - Any Smart Zone interaction
- `Bullish Zone Touched` - Any bullish zone touch
- `Bearish Zone Touched` - Any bearish zone touch
## โ๏ธ CONFIGURATION
### **Zone Detection**
- Enable/disable FVG and OB detection independently
- Maximum zones per type (3-15, default: 8)
- Zone-specific threshold and extension settings
### **Visual Customization**
- Individual color schemes for each zone type
- Adjustable transparency levels
- Configurable line styles and widths
- Dashboard positioning and sizing options
### **Technical Analysis**
- RSI, ADX, ATR period customization
- Volume threshold multipliers
- Confidence level color coding
- Signal display toggle
## ๐ PINE SCRIPT v6 OPTIMIZATIONS
- **User-Defined Types**: Structured data for zones and statistics
- **Methods**: Type-specific operations for better code organization
- **Enhanced Arrays**: Optimized memory management
- **Switch Statements**: Improved performance for zone classification
- **Error Handling**: Robust input validation and edge case management
- **Performance**: Efficient algorithms for real-time analysis
## ๐ TRADING APPLICATIONS
### **Entry Strategies**
- Zone confluence for high-probability setups
- Multi-timeframe confirmation via BSL/SSL
- Fibonacci extension targets
- Signal arrows for directional bias
### **Risk Management**
- Zone mitigation for stop-loss placement
- Market bias for position sizing
- Dashboard statistics for strategy validation
### **Market Analysis**
- Institutional footprint identification
- Liquidity level mapping
- Market structure assessment
- Trend continuation vs reversal analysis
## ๐ง TECHNICAL SPECIFICATIONS
- **Version**: Pine Script v6
- **Overlay**: True (draws on price chart)
- **Max Objects**: 100 boxes, 100 lines, 50 labels
- **Performance**: Optimized for real-time analysis
- **Compatibility**: All TradingView chart types and timeframes
# TRI - SMART ZONES v2.0
## Professional Smart Money Concepts Indicator for Pine Script v6
============================================================================
## ๐ OVERVIEW
**TRI - Smart Zones** is a comprehensive Smart Money Concepts indicator that
combines multiple institutional trading concepts into a single, powerful tool.
Built with Pine Script v6 for optimal performance and reliability.
## ๐ฏ CORE FEATURES
### **Fair Value Gaps (FVG)**
- **Detection**: Automatic identification of price imbalances
- **Types**: Bullish and Bearish Fair Value Gaps
- **Threshold**: Customizable gap size requirements (0.1% default)
- **Extension**: Configurable zone projection length
- **Mitigation**: Real-time tracking of gap fills
### **Order Blocks (OB)**
- **Detection**: Volume-based institutional footprint identification
- **Types**: Bullish and Bearish Order Blocks
- **Method**: Pivot-based volume analysis with configurable lookback
- **Validation**: Market structure confirmation required
- **Extension**: Adjustable zone projection
### **BSL/SSL Liquidity Levels**
- **Multi-Timeframe**: Automatic higher timeframe reference
- **Dynamic**: Real-time level updates and extensions
- **Visual**: Clear line markings with timeframe labels
- **Smart**: Adaptive timeframe selection based on current chart
### **Fibonacci Extensions**
- **ZigZag Integration**: Advanced pivot point detection
- **Levels**: Customizable Fibonacci ratios (38.2%, 61.8%, 100%, 161.8%)
- **Projection**: Dynamic extension from swing points
- **Visual**: Subtle dashed lines with level/price labels
### **Smart Dashboard**
- **Zone Statistics**: Real-time FVG and OB counts
- **Success Rates**: Mitigation percentages for each zone type
- **Market Bias**: Intelligent bullish/bearish/neutral assessment
- **Positioning**: Customizable location and size
### **Zone Analysis Engine**
- **Technical Confluence**: RSI, ADX, ATR, Volume analysis
- **VWAP Integration**: Institutional price reference
- **Confidence Scoring**: High/Mid/Low signal classification
- **Signal Arrows**: Visual trade direction indicators
## ๐ ALERT SYSTEM
### **Market Structure Alerts**
- `Market Bias Changed` - Shift in overall market sentiment
- `BSL Touched` - Buy Side Liquidity level reached
- `SSL Touched` - Sell Side Liquidity level reached
### **Zone Touch Alerts**
- `OB Touched` - Any Order Block interaction
- `Bullish OB Touched` - Bullish Order Block touch
- `Bearish OB Touched` - Bearish Order Block touch
- `FVG Touched` - Any Fair Value Gap interaction
- `Bullish FVG Touched` - Bullish FVG touch
- `Bearish FVG Touched` - Bearish FVG touch
- `Zone Touched` - Any Smart Zone interaction
- `Bullish Zone Touched` - Any bullish zone touch
- `Bearish Zone Touched` - Any bearish zone touch
## โ๏ธ CONFIGURATION
### **Zone Detection**
- Enable/disable FVG and OB detection independently
- Maximum zones per type (3-15, default: 8)
- Zone-specific threshold and extension settings
### **Visual Customization**
- Individual color schemes for each zone type
- Adjustable transparency levels
- Configurable line styles and widths
- Dashboard positioning and sizing options
### **Technical Analysis**
- RSI, ADX, ATR period customization
- Volume threshold multipliers
- Confidence level color coding
- Signal display toggle
## ๐ PINE SCRIPT v6 OPTIMIZATIONS
- **User-Defined Types**: Structured data for zones and statistics
- **Methods**: Type-specific operations for better code organization
- **Enhanced Arrays**: Optimized memory management
- **Switch Statements**: Improved performance for zone classification
- **Error Handling**: Robust input validation and edge case management
- **Performance**: Efficient algorithms for real-time analysis
## ๐ TRADING APPLICATIONS
### **Entry Strategies**
- Zone confluence for high-probability setups
- Multi-timeframe confirmation via BSL/SSL
- Fibonacci extension targets
- Signal arrows for directional bias
### **Risk Management**
- Zone mitigation for stop-loss placement
- Market bias for position sizing
- Dashboard statistics for strategy validation
### **Market Analysis**
- Institutional footprint identification
- Liquidity level mapping
- Market structure assessment
- Trend continuation vs reversal analysis
## ๐ง TECHNICAL SPECIFICATIONS
- **Version**: Pine Script v6
- **Overlay**: True (draws on price chart)
- **Max Objects**: 100 boxes, 100 lines, 50 labels
- **Performance**: Optimized for real-time analysis
- **Compatibility**: All TradingView chart types and timeframes
Release Notes
# TRI - SMART ZONES INDICATOR
---
## Description
**TRI - Smart Zones** is an advanced **TradingView indicator** that combines modern technical analysis with intelligent support and resistance zones.
It automatically identifies:
- **Fair Value Gaps (FVG)**
- **Order Blocks (OB)**
...and integrates **Fibonacci analysis**, **BSL/SSL** and technical indicators to provide **high-probability trading signals**.
---
## Main Features
| Feature | Description |
|---------|-------------|
| **Smart Zone Detection** | Automatically identifies FVG and OB |
| **Technical Analysis** | RSI, MACD, ADX, CCI, VWAP, ATR with integrated analysis |
| **Fibonacci Extensions** | Extension levels based on ZigZag |
| **BSL/SSL Levels** | Break of Structure and Structure Level Lines |
| **Market Bias Analysis** | Bias calculation based on statistics |
| **Trading Signals** | Automatic signals with multiple confirmations |
| **Complete Dashboard** | Real-time statistics and insights |
---
## Technical Components
- **Fair Value Gaps (FVG):** Price gaps that create attraction zones
- **Order Blocks (OB):** Volume & pivot-based order blocks
- **ZigZag Analysis:** Automatic swing high/low identification
- **Fibonacci Extensions:** `0%`, `38.2%`, `61.8%`, `100%`, `161.8%`, etc.
- **BSL/SSL:** Structure lines to identify breaks and levels
- **Technical Alignment:** Scoring system for confluence
---
## Trading Signals
The indicator generates automatic signals when:
1. Price interacts with **smart zones** (FVG/OB)
2. Technical indicators **confirm the direction**
3. Market bias is **aligned**
4. Technical strength is **LOW / MID / HIGH**
---
## Visualization
- **Colored Zones:** Distinct bullish/bearish colors for FVG and OB
- **Fibonacci Lines:** Extension levels with labels
- **BSL/SSL Circles:** Markers for structure breaks
- **Signal Labels:** Trading entries with SL/TP
- **Dashboard:** Real-time table with statistics and bias
---
## Customizable Parameters
- **Zone Detection:** Thresholds & extensions for FVG/OB
- **Technical Analysis:** Lengths & thresholds for indicators
- **Visual Settings:** Colors, styles & sizes
- **Signal Filters:** Minimum strength & confirmations
- **Risk Management:** Customizable **Risk/Reward** ratio
---
## Dashboard Statistics
| Metric | Description |
|--------|-------------|
| **Zone Count** | Total number of zones created |
| **Mitigation Rate** | Percentage of respected zones |
| **Success Rate** | Success rate by zone type |
| **Market Bias** | BULLISH / BEARISH / NEUTRAL |
| **Active Zones** | Number of currently active zones |
---
## Advantages
- **Multi-Timeframe** analysis
- **Real-Time** updates
- **Highly Customizable**
- **Professional-grade** trading tool
- **Educational** for market structure learning
---
## Technical Notes
- Compatible with **Pine Script v6**
- Performance optimized
- Automatic memory management
- Supports multiple sessions
Release Notes
DESCRIPTION:Professional institutional-grade zone analysis indicator that identifies and scores
Fair Value Gaps (FVG) and Order Blocks (OB) based on multiple algorithmic factors.
KEY FEATURES:
โข Directional Context Analysis (22%) - Ensures zone alignment with market trend
โข Support/Resistance Proximity (20%) - Fibonacci, psychological levels, BSL/SSL, SMA200
โข Momentum Analysis (18%) - RSI and ADX with directional context for optimal timing
โข Volume Confirmation (16%) - Institutional participation validation
โข Liquidity Analysis (12%) - Smart money positioning (BSL/SSL)
โข Technical Confluence (8%) - Multi-timeframe validation
โข Divergence Analysis (4%) - Momentum warning signals
ZONE SCORING SYSTEM:
โข STRONG (Green triangles): โฅ55% - Institutional-grade setups only
โข NEUTRAL (Orange triangles): 40-54% - Professional-grade setups
โข WEAK (Gray circles): <40% - Retail/avoid setups
MOMENTUM INTEGRATION:
โข RSI oversold conditions (โค35) boost bullish zones regardless of trend
โข RSI overbought conditions (โฅ65) boost bearish zones regardless of trend
โข Extreme RSI (โค20, โฅ80) provide 20% bonus for matching zone types
โข ADX confirms trend strength and validates momentum signals
DIRECTIONAL LOGIC:
โข Zones aligned with primary trend (SMA200) receive highest scores
โข Counter-trend zones receive reduced but not eliminated scores
โข Perfect RSI conditions can override trend penalties for bounce/rejection setups
PROFESSIONAL FILTERS:
โข Age decay: Zones lose effectiveness over time (500+ bars = weak)
โข Volatility filter: High ATR spikes degrade reliability
โข Market bias: Considers overall smart money positioning
ALERTS:
โข Strong Bull/Bear Zone: Green triangle signals with โฅ55% probability score
โข FVG Contact/Mitigation: Individual alerts for Fair Value Gap interactions
โข OB Contact/Mitigation: Individual alerts for Order Block interactions
โข Smart Zone Contact/Mitigation: Aggregated alerts for any zone interaction
โข BSL/SSL Breakthrough: Liquidity level breakthrough alerts
USAGE:
Focus on GREEN triangles for highest probability setups. RSI conditions
now properly support counter-trend bounces/rejections when extreme.
Release Notes
DESCRIPTION:Professional institutional-grade zone analysis indicator that identifies and scores
Fair Value Gaps (FVG) and Order Blocks (OB) based on multiple algorithmic factors.
KEY FEATURES:
โข Directional Context Analysis (22%) - Ensures zone alignment with market trend
โข Support/Resistance Proximity (20%) - Fibonacci, psychological levels, BSL/SSL, SMA200
โข Momentum Analysis (18%) - RSI and ADX with directional context for optimal timing
โข Volume Confirmation (16%) - Institutional participation validation
โข Liquidity Analysis (12%) - Smart money positioning (BSL/SSL)
โข Technical Confluence (8%) - Multi-timeframe validation
โข Divergence Analysis (4%) - Momentum warning signals
ZONE SCORING SYSTEM:
โข STRONG (Green triangles): โฅ55% - Institutional-grade setups only
โข NEUTRAL (Orange triangles): 40-54% - Professional-grade setups
โข WEAK (Gray circles): <40% - Retail/avoid setups
MOMENTUM INTEGRATION:
โข RSI oversold conditions (โค35) boost bullish zones regardless of trend
โข RSI overbought conditions (โฅ65) boost bearish zones regardless of trend
โข Extreme RSI (โค20, โฅ80) provide 20% bonus for matching zone types
โข ADX confirms trend strength and validates momentum signals
DIRECTIONAL LOGIC:
โข Zones aligned with primary trend (SMA200) receive highest scores
โข Counter-trend zones receive reduced but not eliminated scores
โข Perfect RSI conditions can override trend penalties for bounce/rejection setups
PROFESSIONAL FILTERS:
โข Age decay: Zones lose effectiveness over time (500+ bars = weak)
โข Volatility filter: High ATR spikes degrade reliability
โข Market bias: Considers overall smart money positioning
ALERTS:
โข Strong Bull/Bear Zone: Green triangle signals with โฅ55% probability score
โข FVG Contact/Mitigation: Individual alerts for Fair Value Gap interactions
โข OB Contact/Mitigation: Individual alerts for Order Block interactions
โข Smart Zone Contact/Mitigation: Aggregated alerts for any zone interaction
โข BSL/SSL Breakthrough: Liquidity level breakthrough alerts
USAGE:
Focus on GREEN triangles for highest probability setups. RSI conditions
now properly support counter-trend bounces/rejections when extreme.
Release Notes
TRI - SMART ZONES INDICATOR v2.0 - ADVANCED PROBABILITY SYSTEMDESCRIPTION:
Professional institutional-grade zone analysis indicator with advanced probability-based
signal system. Identifies Fair Value Gaps (FVG) and Order Blocks (OB) with multi-factor
algorithmic scoring, real-time probability assessment, and comprehensive market structure analysis.
๐ฏ CORE ZONE DETECTION:
- ๐ Fair Value Gaps (FVG): Institutional imbalance zones with customizable detection
- ๐ข Order Blocks (OB): Smart money accumulation/distribution zones
- ๐ง BSL/SSL Liquidity: Buy Side/Sell Side Liquidity levels with pivot analysis
- ๐ Fibonacci Extensions: Multi-level retracement and extension analysis
- ๐ฏ Psychological Levels: Dynamic round number price levels
- ๐ ZigZag Structure: Market structure with percentage variation labels
๐ฏ PROBABILITY SIGNAL SYSTEM (Main Feature):
- ๐ด RED Triangles (HIGH 80-100%): Strongest institutional-grade setups
- ๐ก YELLOW Triangles (MEDIUM 65-79%): Professional-grade opportunities
- ๐ข GREEN Triangles (LOW 50-64%): Conservative entry points
- โฒ UP triangles (below bar): Expected BOUNCE UP from zone
- โผ DOWN triangles (above bar): Expected BOUNCE DOWN from zone
๐ต REAL-TIME CURRENT BAR INDICATOR:
- ๐ต BLUE Triangles: Current bar direction with GOOD probability (>threshold)
- โซ GRAY Triangles: Current bar direction with LOW probability (<threshold)
- Always visible on last bar only - shows predicted market direction
- Fallback logic when no zones active (RSI + SMA200 based)
๐ฏ LEGACY BOUNCE SIGNALS (Alternative System):
- ๐ข Green triangles (Normal): Bullish OB + RSI debounce + SMA200 trend alignment
- ๐ด Red triangles (Normal): Bearish OB + RSI debounce + SMA200 trend alignment
- ๐ Yellow diamonds (Small): SMA200 retracement with momentum confirmation
- High-probability conditions: RSI 20/80 extremes, debounce patterns, ADX >25
๐ MULTI-FACTOR ANALYSIS ENGINE (13 Factors):
- RSI Analysis (25%): Oversold/overbought conditions with debounce detection
- ADX Strength (20%): Trend strength validation and momentum confirmation
- Volume Analysis (15%): Institutional participation and smart money flow
- Volatility Filter (15%): ATR-based market condition assessment
- Candlestick Patterns (15%): Doji, Hammer, Shooting Star, Engulfing analysis
- MACD Momentum (10%): Directional bias and turning point detection
- Multi-Timeframe (10%): Higher timeframe confluence (4H RSI + Daily SMA200)
- Price Action Context (8%): Position within recent high/low range
- SMA200 Distance (7%): Proximity to key institutional trend line
- Zone Quality Assessment: Age, size, freshness, historical performance
- Key Level Proximity: Distance to psychological and Fibonacci levels
- Historical Performance: Past zone behavior and success rate
- Market Structure Context: Overall trend and momentum alignment
๐ VISUAL ENHANCEMENTS:
- ๐ ZigZag Labels: Configurable percentage variation display on pivots
- ๐จ Custom Colors: User-defined bull/bear label colors and styling
- ๐ Market Structure: Clear visualization of swings and pivot points
- ๐๏ธ Dashboard: Optional statistics and performance metrics display
- ๐ง Debug Mode: Detailed probability breakdown and factor analysis
โ๏ธ CONFIGURATION GROUPS:
- Zone Detection: FVG/OB sensitivity and filtering options
- BSL/SSL Settings: Liquidity level detection and pivot analysis
- Fibonacci Extension: Multi-level retracement and extension setup
- Visual Settings: Colors, transparency, and display preferences
- ZigZag Lines: Structure analysis and percentage label configuration
- Probability Signals: Threshold settings and multi-timeframe options
- Zone Analysis: Technical indicator parameters and debug options
๐ง TECHNICAL ARCHITECTURE (PineScript Optimized):
- updateTechnicalIndicators(): Core TA calculations (called every bar in main())
- updateProbabilityIndicators(): Probability system (called in detectProbabilitySignals())
- updateOBIndicators(): Order Block calculations (called in createObZone())
- calculateZoneProbability(): Multi-factor analysis with pre-calculated values
- detectProbabilitySignals(): Main signal detection and classification engine
- Runtime Safety: Comprehensive null checks and historical data validation
- Performance: All ta.* functions called every bar (PineScript compliance)
๐จ COMPREHENSIVE ALERT SYSTEM:
- Zone Interactions: FVG/OB Contact and Mitigation alerts
- Probability Signals: High/Medium/Low probability bounce alerts
- Legacy Bounce Signals: RSI debounce and SMA200 retracement alerts
- BSL/SSL Liquidity: Breakthrough and interaction alerts
- Current Bar Signals: Real-time direction prediction alerts
- Aggregated Alerts: Smart Zone contact/mitigation summary alerts
๐ก TRADING RECOMMENDATIONS:
- ๐ด RED Probability Triangles: Highest confidence institutional setups (80-100%)
- ๐ต BLUE Current Bar: Real-time market direction with good probability
- ๐ SMA200 Diamonds: Key trend line retracement opportunities
- ๐ ZigZag + Fibonacci: Market structure and retracement analysis
- ๐ง BSL/SSL Levels: Liquidity grab and institutional positioning
- Combine multiple signal types for maximum confluence and reliability
Release Notes
TRI - SMART ZONES INDICATOR v2.1DESCRIPTION:
Professional institutional-grade zone analysis indicator with advanced probability-based
signal system. Identifies Fair Value Gaps (FVG) and Order Blocks (OB) with multi-factor
algorithmic scoring, real-time probability assessment, and comprehensive market structure analysis.
๐ฏ CORE ZONE DETECTION:
- ๐ Fair Value Gaps (FVG): Institutional imbalance zones with customizable detection
- ๐ข Order Blocks (OB): Smart money accumulation/distribution zones
- ๐ง BSL/SSL Liquidity: Buy Side/Sell Side Liquidity levels with pivot analysis
- ๐ Fibonacci Extensions: Multi-level retracement and extension analysis
- ๐ฏ Psychological Levels: Dynamic round number price levels
- ๐ ZigZag Structure: Market structure with percentage variation labels
๐ฏ PROBABILITY SIGNAL SYSTEM (Main Feature):
- ๐ด RED Triangles (HIGH 80-100%): Strongest institutional-grade setups
- ๐ก YELLOW Triangles (MEDIUM 65-79%): Professional-grade opportunities
- ๐ข GREEN Triangles (LOW 50-64%): Conservative entry points
- โฒ UP triangles (below bar): Expected BOUNCE UP from zone
- โผ DOWN triangles (above bar): Expected BOUNCE DOWN from zone
๐ต REAL-TIME CURRENT BAR INDICATOR:
- ๐ต BLUE Triangles: Current bar direction with GOOD probability (>threshold)
- โซ GRAY Triangles: Current bar direction with LOW probability (<threshold)
- Always visible on last bar only - shows predicted market direction
- Fallback logic when no zones active (RSI + SMA200 based)
๐ฏ LEGACY BOUNCE SIGNALS (Alternative System):
- ๐ข Green triangles (Normal): Bullish OB + RSI debounce + SMA200 trend alignment
- ๐ด Red triangles (Normal): Bearish OB + RSI debounce + SMA200 trend alignment
- ๐ Yellow diamonds (Small): SMA200 retracement with momentum confirmation
- High-probability conditions: RSI 20/80 extremes, debounce patterns, ADX >25
๐ MULTI-FACTOR ANALYSIS ENGINE (13 Factors):
- RSI Analysis (25%): Oversold/overbought conditions with debounce detection
- ADX Strength (20%): Trend strength validation and momentum confirmation
- Volume Analysis (15%): Institutional participation and smart money flow
- Volatility Filter (15%): ATR-based market condition assessment
- Candlestick Patterns (15%): Doji, Hammer, Shooting Star, Engulfing analysis
- MACD Momentum (10%): Directional bias and turning point detection
- Multi-Timeframe (10%): Higher timeframe confluence (4H RSI + Daily SMA200)
- Price Action Context (8%): Position within recent high/low range
- SMA200 Distance (7%): Proximity to key institutional trend line
- Zone Quality Assessment: Age, size, freshness, historical performance
- Key Level Proximity: Distance to psychological and Fibonacci levels
- Historical Performance: Past zone behavior and success rate
- Market Structure Context: Overall trend and momentum alignment
๐ VISUAL ENHANCEMENTS:
- ๐ ZigZag Labels: Configurable percentage variation display on pivots
- ๐จ Custom Colors: User-defined bull/bear label colors and styling
- ๐ Market Structure: Clear visualization of swings and pivot points
- ๐๏ธ Dashboard: Optional statistics and performance metrics display
- ๐ง Debug Mode: Detailed probability breakdown and factor analysis
โ๏ธ CONFIGURATION GROUPS:
- Zone Detection: FVG/OB sensitivity and filtering options
- BSL/SSL Settings: Liquidity level detection and pivot analysis
- Fibonacci Extension: Multi-level retracement and extension setup
- Visual Settings: Colors, transparency, and display preferences
- ZigZag Lines: Structure analysis and percentage label configuration
- Probability Signals: Threshold settings and multi-timeframe options
- Zone Analysis: Technical indicator parameters and debug options
๐ง TECHNICAL ARCHITECTURE (PineScript Optimized):
- updateTechnicalIndicators(): Core TA calculations (called every bar in main())
- updateProbabilityIndicators(): Probability system (called in detectProbabilitySignals())
- updateOBIndicators(): Order Block calculations (called in createObZone())
- calculateZoneProbability(): Multi-factor analysis with pre-calculated values
- detectProbabilitySignals(): Main signal detection and classification engine
- Runtime Safety: Comprehensive null checks and historical data validation
- Performance: All ta.* functions called every bar (PineScript compliance)
๐จ COMPREHENSIVE ALERT SYSTEM:
- Zone Interactions: FVG/OB Contact and Mitigation alerts
- Probability Signals: High/Medium/Low probability bounce alerts
- Legacy Bounce Signals: RSI debounce and SMA200 retracement alerts
- BSL/SSL Liquidity: Breakthrough and interaction alerts
- Current Bar Signals: Real-time direction prediction alerts
- Aggregated Alerts: Smart Zone contact/mitigation summary alerts
๐ก TRADING RECOMMENDATIONS:
- ๐ด RED Probability Triangles: Highest confidence institutional setups (80-100%)
- ๐ต BLUE Current Bar: Real-time market direction with good probability
- ๐ SMA200 Diamonds: Key trend line retracement opportunities
- ๐ ZigZag + Fibonacci: Market structure and retracement analysis
- ๐ง BSL/SSL Levels: Liquidity grab and institutional positioning
- Combine multiple signal types for maximum confluence and reliability
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.