OPEN-SOURCE SCRIPT
EdgeXplorer – Smart Money Structure

EdgeXplorer – Smart Money Structure
A full-spectrum price action tool built to track BOS/CHoCH, swing pivots, order blocks, and institutional liquidity zones — all on one clean chart.
Designed for serious price action traders, this engine gives you a real-time visual breakdown of market structure the way smart money sees it. Whether you’re a scalper, intraday trader, or swing strategist — this tool helps you track momentum shifts, trend flips, and liquidity traps with clarity.
⸻
🧠 What It Does
EdgeXplorer – Smart Money Structure detects and visualizes:
• Break of Structure (BOS) and Change of Character (CHoCH) patterns
• Swing vs. Internal trend structure
• Order blocks with mitigation tracking
• Liquidity points (Equal Highs & Lows)
• Fair Value Gaps (FVGs) and price imbalances
• Premium/Discount zones based on range extremes
All of this is plotted live with customizable visual styles, trend logic, and alert support — no repainting, no guessing.

⸻
⚙️ How It Works (Plain English)
The script uses pivot highs/lows to define structural points on the chart. From there:
• A BOS marks a continuation of the current trend (price breaks the most recent high/low in trend direction).
• A CHoCH flags a potential reversal (price breaks against the current trend direction).
• Structure is tracked internally (short-term pivots) and on a swing basis (larger moves).
• Order blocks are identified at structural breaks using volatility filtering (ATR or Range logic), then highlighted and monitored for mitigation.
• You can also display liquidity pools (Equal Highs/Lows) and FVG zones for imbalance-based setups.
• Optional trend coloring lets you visually follow directional bias.
⸻
📈 Visual Elements Breakdown
Element Meaning
🟢/🔴 BOS or CHoCH Labels Show trend continuation or reversal (internal + swing)
🔷 Zones Order Blocks (bullish/bearish, internal or swing, with mitigation filter)
🔺 HH / HL / LH / LL High/low swing labels based on pivot relationships
🔲 Gray Zones Mitigated order blocks (already tapped)
📊 Background Color Optional trend-based candle coloring
⚪ Fair Value Gaps Imbalance zones between candles
📍 EQH/EQL Equal High / Equal Low liquidity zones

⸻
🔧 Inputs & Settings
🧭 Structure Modes:
• Historical = Plots all historical BOS/CHoCH events
• Present = Keeps the chart clean by only showing the latest active structure
🔁 Internal vs Swing:
• Internal Structure = Short-term pivots (fast reaction, more signals)
• Swing Structure = Higher timeframe trend (stronger confirmation)
🎯 Order Block Filters:
• Choose between ATR-based (volatility-adjusted) or Cumulative Range (fixed width)
• Define how many OB zones to display per structure type
• Enable/disable mitigated OB highlights
💡 Visual Customization:
• Toggle colored vs. monochrome labels
• Turn on/off trend-based candle coloring
• Set custom colors for all bullish/bearish elements
🔍 Liquidity Tools:
• Show Equal High/Low zones with sensitivity threshold
• Display Fair Value Gaps with optional auto-filtering
• Highlight premium/discount zones relative to swing range
⸻
🧠 How to Interpret the Chart
Use BOS/CHoCH for:
• Spotting trend reversals (CHoCH = possible flip)
• Confirming momentum continuation (BOS = trend intact)
Use Order Blocks for:
• Entry areas after a break — especially if price retraces to an unmitigated OB
• Smart money footprints — these zones often align with institutional volume
Use Liquidity Zones for:
• Fade or trap setups — EQH/EQL often precede false breakouts
• Confirming areas where smart money may engineer stops or reactions
Use Premium/Discount Zones to:
• Avoid chasing — enter where price is undervalued (discount) or take profit where it’s overvalued (premium)
⸻
📊 Strategy Tips
• Scalpers: Focus on internal CHoCH + OB zones on 1m–15m
• Swing traders: Watch for swing CHoCH + OB alignment on 1h–4h
• Breakout traders: Use BOS labels with EQH/EQL sweep confirmation
• Confluence traders: Stack internal + swing + OB + FVG for high-probability setups
⸻
📣 Alerts Included:
✅ Internal BOS / CHoCH
✅ Swing BOS / CHoCH
Get notified instantly when structure shifts — no need to babysit the chart.
A full-spectrum price action tool built to track BOS/CHoCH, swing pivots, order blocks, and institutional liquidity zones — all on one clean chart.
Designed for serious price action traders, this engine gives you a real-time visual breakdown of market structure the way smart money sees it. Whether you’re a scalper, intraday trader, or swing strategist — this tool helps you track momentum shifts, trend flips, and liquidity traps with clarity.
⸻
🧠 What It Does
EdgeXplorer – Smart Money Structure detects and visualizes:
• Break of Structure (BOS) and Change of Character (CHoCH) patterns
• Swing vs. Internal trend structure
• Order blocks with mitigation tracking
• Liquidity points (Equal Highs & Lows)
• Fair Value Gaps (FVGs) and price imbalances
• Premium/Discount zones based on range extremes
All of this is plotted live with customizable visual styles, trend logic, and alert support — no repainting, no guessing.
⸻
⚙️ How It Works (Plain English)
The script uses pivot highs/lows to define structural points on the chart. From there:
• A BOS marks a continuation of the current trend (price breaks the most recent high/low in trend direction).
• A CHoCH flags a potential reversal (price breaks against the current trend direction).
• Structure is tracked internally (short-term pivots) and on a swing basis (larger moves).
• Order blocks are identified at structural breaks using volatility filtering (ATR or Range logic), then highlighted and monitored for mitigation.
• You can also display liquidity pools (Equal Highs/Lows) and FVG zones for imbalance-based setups.
• Optional trend coloring lets you visually follow directional bias.
⸻
📈 Visual Elements Breakdown
Element Meaning
🟢/🔴 BOS or CHoCH Labels Show trend continuation or reversal (internal + swing)
🔷 Zones Order Blocks (bullish/bearish, internal or swing, with mitigation filter)
🔺 HH / HL / LH / LL High/low swing labels based on pivot relationships
🔲 Gray Zones Mitigated order blocks (already tapped)
📊 Background Color Optional trend-based candle coloring
⚪ Fair Value Gaps Imbalance zones between candles
📍 EQH/EQL Equal High / Equal Low liquidity zones
⸻
🔧 Inputs & Settings
🧭 Structure Modes:
• Historical = Plots all historical BOS/CHoCH events
• Present = Keeps the chart clean by only showing the latest active structure
🔁 Internal vs Swing:
• Internal Structure = Short-term pivots (fast reaction, more signals)
• Swing Structure = Higher timeframe trend (stronger confirmation)
🎯 Order Block Filters:
• Choose between ATR-based (volatility-adjusted) or Cumulative Range (fixed width)
• Define how many OB zones to display per structure type
• Enable/disable mitigated OB highlights
💡 Visual Customization:
• Toggle colored vs. monochrome labels
• Turn on/off trend-based candle coloring
• Set custom colors for all bullish/bearish elements
🔍 Liquidity Tools:
• Show Equal High/Low zones with sensitivity threshold
• Display Fair Value Gaps with optional auto-filtering
• Highlight premium/discount zones relative to swing range
⸻
🧠 How to Interpret the Chart
Use BOS/CHoCH for:
• Spotting trend reversals (CHoCH = possible flip)
• Confirming momentum continuation (BOS = trend intact)
Use Order Blocks for:
• Entry areas after a break — especially if price retraces to an unmitigated OB
• Smart money footprints — these zones often align with institutional volume
Use Liquidity Zones for:
• Fade or trap setups — EQH/EQL often precede false breakouts
• Confirming areas where smart money may engineer stops or reactions
Use Premium/Discount Zones to:
• Avoid chasing — enter where price is undervalued (discount) or take profit where it’s overvalued (premium)
⸻
📊 Strategy Tips
• Scalpers: Focus on internal CHoCH + OB zones on 1m–15m
• Swing traders: Watch for swing CHoCH + OB alignment on 1h–4h
• Breakout traders: Use BOS labels with EQH/EQL sweep confirmation
• Confluence traders: Stack internal + swing + OB + FVG for high-probability setups
⸻
📣 Alerts Included:
✅ Internal BOS / CHoCH
✅ Swing BOS / CHoCH
Get notified instantly when structure shifts — no need to babysit the chart.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.