OPEN-SOURCE SCRIPT
Orderflow Synthesis Pro [JOAT]

Orderflow Synthesis Pro [JOAT]
Introduction
The Orderflow Synthesis Pro is an advanced open-source institutional orderflow analysis indicator that combines Order Block detection, Fair Value Gap identification, Liquidity Pool mapping, and Premium/Discount Array analysis into a unified multi-dimensional flow system. This indicator helps traders identify where institutional money is positioning by analyzing price imbalances, supply/demand zones, and value arrays across the market structure.
Unlike basic support/resistance indicators that simply mark levels, this system dissects orderflow into actionable intelligence: Order Blocks reveal where institutions accumulated or distributed positions, Fair Value Gaps expose price inefficiencies that often get filled, Liquidity Pools identify where stop hunts occur, and Premium/Discount Arrays show whether price is trading at value or extremes. The indicator is designed for traders who understand that institutional footprints can be detected through systematic orderflow analysis.
Why This Indicator Exists
This indicator addresses a critical gap in retail trading: the ability to see institutional orderflow in real-time. Institutional traders leave detectable footprints through their large orders that create specific price patterns. By combining multiple orderflow methodologies, this indicator reveals:
Each component provides a different lens on institutional behavior. Order Blocks show positioning, Fair Value Gaps show inefficiencies, Liquidity Pools show manipulation targets, and Value Arrays show context. Together, they create a comprehensive view of smart money activity.

Core Components Explained
1. Order Block Detection
Order Blocks represent the last opposing candle before a strong directional move. They mark zones where institutions placed large orders:
Pine Script®
The indicator identifies Order Blocks using three criteria:
Each Order Block displays with a dark box, glowing border, and equilibrium line through the middle (50% level). Strength classification labels blocks as "STRONG" when volume exceeds 1.8x average. Order Blocks remain active until price closes through them (mitigation), at which point they're removed.
2. Fair Value Gap Analysis
Fair Value Gaps (FVGs) occur when price moves so fast that it leaves an imbalance - a gap between three consecutive candles:
Pine Script®
FVGs represent price inefficiencies where one side overwhelmed the other. The indicator:
Institutions often return to fill these gaps, making them high-probability reversal or continuation zones depending on context.
3. Liquidity Pool Mapping
Liquidity Pools form at equal highs and lows where retail traders cluster their stop losses. Institutions target these zones to trigger stops before reversing:
The indicator identifies equal highs/lows using pivot detection with tolerance:
When price sweeps these levels and reverses, it signals institutional liquidity grab - often preceding significant moves in the opposite direction.
4. Premium/Discount Arrays
Premium/Discount Arrays classify price position relative to recent range, showing whether price is expensive or cheap:
Pine Script®
The indicator displays:
Institutional traders typically buy in discount zones and sell in premium zones. This provides directional bias for entries.
5. Breaker Blocks
Breaker Blocks occur when an Order Block gets broken and price reverses. They signal failed institutional positioning or traps:
When a bullish Order Block breaks to the downside, it becomes a bearish Breaker Block. When a bearish Order Block breaks to the upside, it becomes a bullish Breaker Block. The indicator marks these with dotted boxes and "BREAKER" labels, showing zones where sentiment shifted.
6. Mitigation Blocks
Mitigation occurs when price returns to an Order Block for a retest. These provide optimal entry opportunities with defined risk:
The indicator marks mitigation with small "MIT" labels when price touches an active Order Block and shows rejection (bullish candle at bullish OB, bearish candle at bearish OB). This confirms the zone is holding and institutions are defending it.

Visual Elements
The dashboard displays 8 key metrics:
1. Confluence Level (Extreme/Strong/Moderate/Weak)
2. Active Order Blocks count
3. Open Imbalance Zones (FVGs)
4. Liquidity Pool count
5. Value Array position (Premium/Discount/Equilibrium)
6. Flow State (Explosive/Active/Dormant)
7. Signal Quality score (0-100)
Input Parameters
Order Block Detection:
Fair Value Gaps:
Liquidity Analysis:
Premium/Discount Arrays:
Advanced Orderflow:
How to Use This Indicator
Step 1: Identify Value Context
Check the Premium/Discount Array background. Look for entries in discount zones for longs, premium zones for shorts. The equilibrium line shows fair value.
Step 2: Locate Order Blocks
Find active Order Blocks in your direction. Bullish OBs in discount = high-probability long zones. Bearish OBs in premium = high-probability short zones.
Step 3: Watch for Fair Value Gaps
FVGs often get filled. When price approaches an FVG in your direction, prepare for potential retest entry. FVG + Order Block confluence = strongest setups.
Step 4: Monitor Liquidity Pools
Equal highs/lows are magnets for price. Expect sweeps before reversals. When price takes liquidity and shows rejection, it signals institutional positioning complete.
Step 5: Confirm with Mitigation
Wait for price to return to Order Blocks (mitigation). Enter on rejection candles at OB equilibrium lines with stops below/above the block.
Step 6: Check Confluence Score
Dashboard shows confluence level. Extreme/Strong = high-probability setups. Multiple components aligning (OB + FVG + Liquidity + Value Zone) = best entries.
Best Practices
Indicator Limitations
Technical Implementation
Built with Pine Script v6 using:
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its comprehensive integration approach. While individual components (Order Blocks, Fair Value Gaps, Liquidity Pools, Premium/Discount) are established ICT concepts, this indicator is justified because:
Each component contributes unique information: Order Blocks show positioning, Fair Value Gaps show inefficiencies, Liquidity Pools show manipulation, Premium/Discount shows context, Breakers show failures, and Mitigation shows retests. The indicator's value lies in presenting these complementary perspectives simultaneously with unified classification and visual hierarchy.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Orderflow analysis is a tool for understanding market dynamics, not a crystal ball for predicting future price movement. Order Blocks do not guarantee reversals. Fair Value Gaps may not fill. Liquidity sweeps can fail. Past orderflow patterns do not guarantee future orderflow patterns. Market conditions change, and strategies that worked historically may not work in the future.
The zones displayed are analytical constructs based on current market data, not predictions of future price movement. High confluence scores do not guarantee profitable trades. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades
Introduction
The Orderflow Synthesis Pro is an advanced open-source institutional orderflow analysis indicator that combines Order Block detection, Fair Value Gap identification, Liquidity Pool mapping, and Premium/Discount Array analysis into a unified multi-dimensional flow system. This indicator helps traders identify where institutional money is positioning by analyzing price imbalances, supply/demand zones, and value arrays across the market structure.
Unlike basic support/resistance indicators that simply mark levels, this system dissects orderflow into actionable intelligence: Order Blocks reveal where institutions accumulated or distributed positions, Fair Value Gaps expose price inefficiencies that often get filled, Liquidity Pools identify where stop hunts occur, and Premium/Discount Arrays show whether price is trading at value or extremes. The indicator is designed for traders who understand that institutional footprints can be detected through systematic orderflow analysis.
Why This Indicator Exists
This indicator addresses a critical gap in retail trading: the ability to see institutional orderflow in real-time. Institutional traders leave detectable footprints through their large orders that create specific price patterns. By combining multiple orderflow methodologies, this indicator reveals:
- Order Blocks: Last opposing candle before strong directional moves - marks institutional accumulation/distribution zones
- Fair Value Gaps: Three-candle price imbalances where price moved too fast, leaving inefficiencies that often get filled
- Liquidity Pools: Equal highs and lows where retail stops cluster - prime targets for institutional sweeps
- Premium/Discount Arrays: Value zones showing whether price is expensive (premium) or cheap (discount) relative to range
- Breaker Blocks: Failed Order Blocks that reverse - signal institutional trap or change in sentiment
- Mitigation Blocks: Price returning to Order Blocks for retests - optimal entry opportunities
Each component provides a different lens on institutional behavior. Order Blocks show positioning, Fair Value Gaps show inefficiencies, Liquidity Pools show manipulation targets, and Value Arrays show context. Together, they create a comprehensive view of smart money activity.
Core Components Explained
1. Order Block Detection
Order Blocks represent the last opposing candle before a strong directional move. They mark zones where institutions placed large orders:
The indicator identifies Order Blocks using three criteria:
- Candle direction reversal (bearish to bullish or vice versa)
- Strong momentum (candle range exceeds ATR threshold)
- Volume confirmation (volume exceeds average by multiplier)
Each Order Block displays with a dark box, glowing border, and equilibrium line through the middle (50% level). Strength classification labels blocks as "STRONG" when volume exceeds 1.8x average. Order Blocks remain active until price closes through them (mitigation), at which point they're removed.
2. Fair Value Gap Analysis
Fair Value Gaps (FVGs) occur when price moves so fast that it leaves an imbalance - a gap between three consecutive candles:
FVGs represent price inefficiencies where one side overwhelmed the other. The indicator:
- Detects gaps with minimum size threshold (default 0.3%)
- Draws semi-transparent boxes marking the imbalance zone
- Tracks up to 15 active gaps simultaneously
- Auto-removes gaps when price fills them (closes within the zone)
Institutions often return to fill these gaps, making them high-probability reversal or continuation zones depending on context.
3. Liquidity Pool Mapping
Liquidity Pools form at equal highs and lows where retail traders cluster their stop losses. Institutions target these zones to trigger stops before reversing:
The indicator identifies equal highs/lows using pivot detection with tolerance:
- Detects swing highs and lows using configurable lookback
- Compares pivots to find equal levels within tolerance percentage
- Marks zones with thick horizontal lines and labels
- Displays "SELL LIQ" above equal highs, "BUY LIQ" below equal lows
When price sweeps these levels and reverses, it signals institutional liquidity grab - often preceding significant moves in the opposite direction.
4. Premium/Discount Arrays
Premium/Discount Arrays classify price position relative to recent range, showing whether price is expensive or cheap:
The indicator displays:
- Multi-gradient background (red/orange in premium, cyan/green in discount)
- Glowing iridescent equilibrium line with pulsing effect
- Fibonacci-style levels at 75%, 50%, 25% of range
- Dynamic adjustment as range evolves
Institutional traders typically buy in discount zones and sell in premium zones. This provides directional bias for entries.
5. Breaker Blocks
Breaker Blocks occur when an Order Block gets broken and price reverses. They signal failed institutional positioning or traps:
When a bullish Order Block breaks to the downside, it becomes a bearish Breaker Block. When a bearish Order Block breaks to the upside, it becomes a bullish Breaker Block. The indicator marks these with dotted boxes and "BREAKER" labels, showing zones where sentiment shifted.
6. Mitigation Blocks
Mitigation occurs when price returns to an Order Block for a retest. These provide optimal entry opportunities with defined risk:
The indicator marks mitigation with small "MIT" labels when price touches an active Order Block and shows rejection (bullish candle at bullish OB, bearish candle at bearish OB). This confirms the zone is holding and institutions are defending it.
Visual Elements
- Order Block Boxes: Dark fill with glowing neon borders (cyan for bullish, magenta for bearish)
- Equilibrium Lines: Dashed lines through Order Block midpoints
- Fair Value Gap Boxes: Semi-transparent fills (green for bullish, red for bearish)
- Liquidity Lines: Thick horizontal lines at equal highs/lows
- Premium/Discount Background: Multi-color gradient showing value zones
- Equilibrium Glow: Multi-layer iridescent line with pulsing effect
- Gradient Candles: Optional candle coloring based on strength and context
- Dashboard: Real-time metrics showing active zones and confluence
The dashboard displays 8 key metrics:
1. Confluence Level (Extreme/Strong/Moderate/Weak)
2. Active Order Blocks count
3. Open Imbalance Zones (FVGs)
4. Liquidity Pool count
5. Value Array position (Premium/Discount/Equilibrium)
6. Flow State (Explosive/Active/Dormant)
7. Signal Quality score (0-100)
Input Parameters
Order Block Detection:
- Lookback Period: Bars to analyze for OB formation (default: 20)
- Volume Multiplier: Threshold for volume confirmation (default: 1.3)
- ATR Multiplier: Threshold for momentum confirmation (default: 1.5)
- Maximum Active Blocks: Limit displayed OBs (default: 8)
- Strength Classification: Enable/disable strength labels
Fair Value Gaps:
- Minimum Gap Size: Percentage threshold for FVG detection (default: 0.3%)
- Maximum Active Gaps: Limit displayed FVGs (default: 15)
- Auto-Fill Detection: Remove gaps when filled
- Quality Filter: All/Strong Only/Extreme Only
Liquidity Analysis:
- Swing Detection Length: Pivot lookback for equal highs/lows (default: 5)
- Level Tolerance: Percentage range for "equal" levels (default: 0.15%)
- Show Sweep Markers: Display liquidity grab boxes
- Volume Confirmation: Require volume spike for liquidity zones
Premium/Discount Arrays:
- Array Lookback Period: Range calculation period (default: 50)
- Fibonacci Levels: Show 75%/50%/25% levels
- Dynamic Equilibrium: Adjust EQ line in real-time
Advanced Orderflow:
- Volume Imbalance: Mark high-volume candles
- Breaker Blocks: Show failed Order Blocks
- Mitigation Blocks: Mark OB retests
- Gradient Candles: Color candles by strength
How to Use This Indicator
Step 1: Identify Value Context
Check the Premium/Discount Array background. Look for entries in discount zones for longs, premium zones for shorts. The equilibrium line shows fair value.
Step 2: Locate Order Blocks
Find active Order Blocks in your direction. Bullish OBs in discount = high-probability long zones. Bearish OBs in premium = high-probability short zones.
Step 3: Watch for Fair Value Gaps
FVGs often get filled. When price approaches an FVG in your direction, prepare for potential retest entry. FVG + Order Block confluence = strongest setups.
Step 4: Monitor Liquidity Pools
Equal highs/lows are magnets for price. Expect sweeps before reversals. When price takes liquidity and shows rejection, it signals institutional positioning complete.
Step 5: Confirm with Mitigation
Wait for price to return to Order Blocks (mitigation). Enter on rejection candles at OB equilibrium lines with stops below/above the block.
Step 6: Check Confluence Score
Dashboard shows confluence level. Extreme/Strong = high-probability setups. Multiple components aligning (OB + FVG + Liquidity + Value Zone) = best entries.
Best Practices
- Use on liquid instruments (major forex, large-cap stocks, major crypto) for reliable signals
- Combine with higher timeframe bias - trade in direction of HTF structure
- Order Blocks work best at key levels - look for OBs near support/resistance
- FVG fills don't always happen immediately - be patient
- Liquidity sweeps often happen at session opens (London/New York)
- Premium/Discount context is critical - don't buy premium or sell discount
- Breaker Blocks signal trend changes - respect them
- Volume imbalance + Order Block = strongest zones
- Multiple mitigation attempts weaken Order Blocks
Indicator Limitations
- Orderflow analysis works best on trending markets with clear structure
- Choppy, low-volume conditions produce unreliable signals
- Order Blocks can fail - always use stop losses
- Fair Value Gaps may not fill immediately or at all in strong trends
- Liquidity sweeps can extend further than expected (stop hunts)
- Premium/Discount zones are relative - not absolute support/resistance
- The indicator shows where institutions likely positioned, not guaranteed future direction
- Multiple Order Blocks can create conflicting signals - use confluence
- Breaker Blocks require confirmation - don't trade the break alone
Technical Implementation
Built with Pine Script v6 using:
- Custom Order Block detection with volume and ATR filters
- Three-candle Fair Value Gap calculations
- Pivot-based liquidity pool identification with tolerance
- Dynamic Premium/Discount Array with gradient visualization
- Breaker Block detection through OB invalidation tracking
- Mitigation Block confirmation with candle pattern recognition
- Real-time confluence scoring system
- Advanced gradient color schemes with iridescent effects
- Comprehensive dashboard with 8 real-time metrics
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its comprehensive integration approach. While individual components (Order Blocks, Fair Value Gaps, Liquidity Pools, Premium/Discount) are established ICT concepts, this indicator is justified because:
- It synthesizes four distinct orderflow methodologies into a unified system with confluence scoring
- The Breaker Block detection provides failed Order Block analysis not available in standard OB indicators
- Mitigation Block tracking combines OB retests with candle pattern confirmation for entry precision
- The Premium/Discount Array uses multi-gradient visualization with iridescent equilibrium lines
- Volume imbalance integration adds confirmation layer to all components
- The confluence scoring system quantifies setup quality across all orderflow elements
- Real-time dashboard presents 8 metrics simultaneously for holistic orderflow analysis
Each component contributes unique information: Order Blocks show positioning, Fair Value Gaps show inefficiencies, Liquidity Pools show manipulation, Premium/Discount shows context, Breakers show failures, and Mitigation shows retests. The indicator's value lies in presenting these complementary perspectives simultaneously with unified classification and visual hierarchy.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Orderflow analysis is a tool for understanding market dynamics, not a crystal ball for predicting future price movement. Order Blocks do not guarantee reversals. Fair Value Gaps may not fill. Liquidity sweeps can fail. Past orderflow patterns do not guarantee future orderflow patterns. Market conditions change, and strategies that worked historically may not work in the future.
The zones displayed are analytical constructs based on current market data, not predictions of future price movement. High confluence scores do not guarantee profitable trades. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
The AI Trading Ecosystem, Built to win trades 📈
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
The AI Trading Ecosystem, Built to win trades 📈
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。