OPEN-SOURCE SCRIPT
Güncellendi

EdgeXplorer - Phantom Flow

175
Phantom Flow by EdgeXplorer

Phantom Flow is a high-precision, visual market structure toolkit inspired by core ICT (Inner Circle Trader) concepts — including Order Blocks (OBs), Fair Value Gaps (FVGs), Market Structure Shifts (MSS), Liquidity Zones, Killzones, and Balance Price Ranges (BPRs). Designed for real-time clarity and SMC-aligned trading, this tool enhances raw ICT theory with practical execution features: extended zone logic, session filters, and pivot-sensitive rendering.

Whether you’re swing trading on HTF or scalping intraday moves in New York or London, Phantom Flow gives you a clean, structured lens through which to interpret price behavior — without clutter or noise.



🔍 What Does Phantom Flow Do?

This indicator maps out multiple price action phenomena in one system. It detects and plots:
• Order Blocks (OBs) — potential institutional footprints
• Fair Value Gaps (FVGs) — inefficiencies or imbalance zones
• Market Structure Shifts (MSS) — directional break points
• Liquidity Zones — buy-side and sell-side wick traps
• Balance Price Ranges (BPRs) — overlap zones from opposing FVGs
• Killzones (Sessions) — session-specific high-probability windows


anlık görüntü

Each element is toggleable, color-coded, and drawn directly on the chart, creating an intuitive visual environment to identify potential setups or confirm directional bias.



⚙️ How It Works – Technical Breakdown

1. Pivot Engine

Phantom Flow uses ta.pivothigh() and ta.pivotlow() with a configurable lookback period to establish reactive swing points for structure and liquidity logic.

2. Market Structure Shifts (MSS)

MSS logic checks for breaks above prior highs or below prior lows:
• If price closes above a previous pivot high, it flags a bullish MSS.
• If price closes below a previous pivot low, it flags a bearish MSS.

Each MSS is marked with a line and label at the structure break.

anlık görüntü


3. Order Blocks (OBs)

When a swing high or low is confirmed:
• A bearish OB is plotted between the open and high of the pivot bar.
• A bullish OB is plotted between the low and open of the pivot bar.

OB zones are drawn as transparent boxes that project forward several candles.

4. Fair Value Gaps (FVGs)


anlık görüntü

Imbalance zones are defined when:
• A bullish FVG occurs if the current low is above the high from two candles ago, and price closed bullish.
• A bearish FVG occurs if the current high is below the low from two candles ago, and price closed bearish.

These are visualized as boxes with “FVG” labels.

5. Balance Price Ranges (BPRs)

If both a bullish and bearish FVG overlap in the same bar:
• A gray BPR box is plotted to represent the zone where those inefficiencies cancel or compress into a range.

Useful for tracking potential accumulation or consolidation.

6. Liquidity Zones (Wick Detection)

Using ATR-based wick thresholds:
• Buy-side Liquidity is identified where long lower wicks form beneath pivot lows.
• Sell-side Liquidity is identified where long upper wicks form above pivot highs.

These zones indicate where stop hunts or liquidity grabs may occur.

7. Killzones (Sessions)

Two sessions are visualized using background colors:
• New York Killzone (default: 7:00–9:00 EST) — yellow background
• London Killzone (default: 2:00–5:00 GMT) — blue background

Sessions are dynamically aligned with your chart’s timeframe and location.



📈 What Each Visual Element Represents

Element Meaning
Green OB Box Bullish order block (potential demand zone)
Red OB Box Bearish order block (potential supply zone)
Teal FVG Box Bullish fair value gap (imbalance to the upside)
Maroon FVG Box Bearish fair value gap (imbalance to the downside)
Gray BPR Box Balance price range — compression of opposing gaps
Blue Liquidity Zone Buy-side liquidity below a swing low
Orange Liquidity Zone Sell-side liquidity above a swing high
Lime Line + Label Bullish Market Structure Shift (MSS ↑)
Fuchsia Line + Label Bearish Market Structure Shift (MSS ↓)
Yellow / Blue Background Killzone time blocks for NY or London

All shapes are bounded in time and logic — there are no arbitrary plots.



📊 Inputs & Settings Explained

Input Description
Execution Mode (Live / Backtest) Determines whether to run real-time or backtest-friendly calculations
Pivot Sensitivity (lookback) Controls how far back to look for pivots — higher values = stronger swing filters
Show MSS Toggle to display Market Structure Shift lines and labels
Show OB Toggle to display Order Block zones from swing points
Show FVG Toggle to visualize Fair Value Gaps as they appear
Show Liquidity Zones Displays wick-based buy/sell-side liquidity traps
Show BPR Zones Highlights overlapping bullish and bearish FVGs as compression zones
Show Killzones Enables session-based background highlighting for NY/London

Color Settings

Customize each visual element with transparency-controlled colors for OBs, FVGs, MSS lines, liquidity zones, and killzones.



🧠 How Traders Can Use Phantom Flow

Phantom Flow is not a signal generator. It’s a market narrative visualizer. Here’s how to integrate it into your approach:
• OB + FVG = Confluence: Look for fair value gaps forming around order blocks. These often suggest institutional entry zones.
• MSS + Liquidity = Trap Setup: Market structure shifts occurring after price taps liquidity often signal reversals or fakeouts.
• BPRs = Choke Points: If opposing FVGs compress, expect consolidation or expansion shortly after.
• Killzones = Context Windows: Use sessions to filter signal quality. For example, only trade FVGs during the London/NY overlap.

This tool works best when layered with:
• BOS/CHOCH detection
• Premium/Discount logic
• Risk-based execution models



🧪 Optional Use Case Ideas
• Intraday scalping based on NY/London killzone + MSS
• Swing trading off HTF OB + LQ zones
• Fade or trend-continuation setups using FVGs + BPR
• Combine with displacement candles or volume to validate zones
Sürüm Notları
Phantom Flow by EdgeXplorer

Phantom Flow is a high-precision, visual market structure toolkit inspired by core ICT (Inner Circle Trader) concepts — including Order Blocks (OBs), Fair Value Gaps (FVGs), Market Structure Shifts (MSS), Liquidity Zones, Killzones, and Balance Price Ranges (BPRs). Designed for real-time clarity and SMC-aligned trading, this tool enhances raw ICT theory with practical execution features: extended zone logic, session filters, and pivot-sensitive rendering.

Whether you’re swing trading on HTF or scalping intraday moves in New York or London, Phantom Flow gives you a clean, structured lens through which to interpret price behavior — without clutter or noise.



🔍 What Does Phantom Flow Do?

This indicator maps out multiple price action phenomena in one system. It detects and plots:
• Order Blocks (OBs) — potential institutional footprints
• Fair Value Gaps (FVGs) — inefficiencies or imbalance zones
• Market Structure Shifts (MSS) — directional break points
• Liquidity Zones — buy-side and sell-side wick traps
• Balance Price Ranges (BPRs) — overlap zones from opposing FVGs
• Killzones (Sessions) — session-specific high-probability windows


anlık görüntü

Each element is toggleable, color-coded, and drawn directly on the chart, creating an intuitive visual environment to identify potential setups or confirm directional bias.



⚙️ How It Works – Technical Breakdown

1. Pivot Engine

Phantom Flow uses ta.pivothigh() and ta.pivotlow() with a configurable lookback period to establish reactive swing points for structure and liquidity logic.

2. Market Structure Shifts (MSS)

MSS logic checks for breaks above prior highs or below prior lows:
• If price closes above a previous pivot high, it flags a bullish MSS.
• If price closes below a previous pivot low, it flags a bearish MSS.

Each MSS is marked with a line and label at the structure break.

anlık görüntü


3. Order Blocks (OBs)

When a swing high or low is confirmed:
• A bearish OB is plotted between the open and high of the pivot bar.
• A bullish OB is plotted between the low and open of the pivot bar.

OB zones are drawn as transparent boxes that project forward several candles.

4. Fair Value Gaps (FVGs)


anlık görüntü

Imbalance zones are defined when:
• A bullish FVG occurs if the current low is above the high from two candles ago, and price closed bullish.
• A bearish FVG occurs if the current high is below the low from two candles ago, and price closed bearish.

These are visualized as boxes with “FVG” labels.

5. Balance Price Ranges (BPRs)

If both a bullish and bearish FVG overlap in the same bar:
• A gray BPR box is plotted to represent the zone where those inefficiencies cancel or compress into a range.

Useful for tracking potential accumulation or consolidation.

6. Liquidity Zones (Wick Detection)

Using ATR-based wick thresholds:
• Buy-side Liquidity is identified where long lower wicks form beneath pivot lows.
• Sell-side Liquidity is identified where long upper wicks form above pivot highs.

These zones indicate where stop hunts or liquidity grabs may occur.

7. Killzones (Sessions)

Two sessions are visualized using background colors:
• New York Killzone (default: 7:00–9:00 EST) — yellow background
• London Killzone (default: 2:00–5:00 GMT) — blue background

Sessions are dynamically aligned with your chart’s timeframe and location.



📈 What Each Visual Element Represents

Element Meaning
Green OB Box Bullish order block (potential demand zone)
Red OB Box Bearish order block (potential supply zone)
Teal FVG Box Bullish fair value gap (imbalance to the upside)
Maroon FVG Box Bearish fair value gap (imbalance to the downside)
Gray BPR Box Balance price range — compression of opposing gaps
Blue Liquidity Zone Buy-side liquidity below a swing low
Orange Liquidity Zone Sell-side liquidity above a swing high
Lime Line + Label Bullish Market Structure Shift (MSS ↑)
Fuchsia Line + Label Bearish Market Structure Shift (MSS ↓)
Yellow / Blue Background Killzone time blocks for NY or London

All shapes are bounded in time and logic — there are no arbitrary plots.



📊 Inputs & Settings Explained

Input Description
Execution Mode (Live / Backtest) Determines whether to run real-time or backtest-friendly calculations
Pivot Sensitivity (lookback) Controls how far back to look for pivots — higher values = stronger swing filters
Show MSS Toggle to display Market Structure Shift lines and labels
Show OB Toggle to display Order Block zones from swing points
Show FVG Toggle to visualize Fair Value Gaps as they appear
Show Liquidity Zones Displays wick-based buy/sell-side liquidity traps
Show BPR Zones Highlights overlapping bullish and bearish FVGs as compression zones
Show Killzones Enables session-based background highlighting for NY/London

Color Settings

Customize each visual element with transparency-controlled colors for OBs, FVGs, MSS lines, liquidity zones, and killzones.



🧠 How Traders Can Use Phantom Flow

Phantom Flow is not a signal generator. It’s a market narrative visualizer. Here’s how to integrate it into your approach:
• OB + FVG = Confluence: Look for fair value gaps forming around order blocks. These often suggest institutional entry zones.
• MSS + Liquidity = Trap Setup: Market structure shifts occurring after price taps liquidity often signal reversals or fakeouts.
• BPRs = Choke Points: If opposing FVGs compress, expect consolidation or expansion shortly after.
• Killzones = Context Windows: Use sessions to filter signal quality. For example, only trade FVGs during the London/NY overlap.

This tool works best when layered with:
• BOS/CHOCH detection
• Premium/Discount logic
• Risk-based execution models



🧪 Optional Use Case Ideas
• Intraday scalping based on NY/London killzone + MSS
• Swing trading off HTF OB + LQ zones
• Fade or trend-continuation setups using FVGs + BPR
• Combine with displacement candles or volume to validate zones

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.