OPEN-SOURCE SCRIPT
EdgeXplorer - Dynamic Price Action

EdgeXplorer – Dynamic Price Action
Dynamic Price Action by EdgeXplorer is a high-precision structural framework that detects and maps market structure shifts, liquidity zones, and sweep events in real time. Built for traders who prioritize price behavior over indicators, this suite intelligently interprets swing pivots, volatility ranges, and institutional footprints to surface key decision-making zones on your chart.
Whether you trade Smart Money Concepts (SMC), classical price action, or hybrid strategies, Dynamic Price Action helps you visualize where price is reacting, where it’s hunting stops, and when structure is shifting — without the noise.
⸻
🔍 What Does Dynamic Price Action Do?
This indicator tracks three core elements:
1. Market Structure Shifts – Bullish and bearish swing breaks (BOS and MSS)
2. Liquidity Zones – Dynamic detection of potential buy-side and sell-side liquidity pools
3. Sweep Events – Real-time detection when liquidity is taken out (aka stop hunts or raids)
It also contains logic for Order Block detection, giving you a foundational structure for further Smart Money analysis (note: OB visuals are currently off by default but fully supported).

⸻
⚙️ How It Works – Technical Breakdown
1. Market Structure (BOS / MSS)
• Detects swing highs and lows using a 3-bar pivot system
• When a valid swing is confirmed:
• A BOS (Break of Structure) line is drawn for bullish shifts
• An MSS (Market Structure Shift) line is drawn for bearish transitions
• Lines are plotted with customizable styles and optional labels
2. Liquidity Detection
• Liquidity zones are marked based on:
• Recent confirmed swing highs or lows
• ATR-based range check (swing must exceed Liquidity Sensitivity threshold)
• Post-swing candle direction (bullish or bearish close)
• Sell-Side Liquidity = swing highs likely containing stop clusters
• Buy-Side Liquidity = swing lows likely containing stop clusters
• Each zone is tagged visually and stored for later sweep checks
3. Sweep Recognition
• If price breaches a previously tagged liquidity level:
• A “Sell Sweep” label appears above the former sell-side zone
• A “Buy Sweep” label appears below the former buy-side zone
• Zones are removed after being swept to reduce clutter
4. Order Block Logic (Optional)
• The script includes full logic to detect bullish/bearish order blocks based on:
• Body-based or wick-based structure (user preference)
• Candle volume criteria
• Visuals are turned off for now but can be easily re-enabled
⸻
📈 What You See on the Chart
Visual Element Meaning
Green BOS Line Bullish break of market structure (higher high)
Red MSS Line Bearish shift in structure (lower low)
“Sellside Liquidity” Label Area above a swing high likely to hold resting liquidity
“Buyside Liquidity” Label Area below a swing low likely to hold resting liquidity
“Sell Sweep” Label A stop hunt above a prior high
“Buy Sweep” Label A stop hunt below a prior low
All elements are dynamically drawn, adapting to price behavior with zero repainting.

⸻
📊 Inputs & Settings Explained
Market Structures
Setting Description
Enable Market Structures Toggle BOS/MSS logic
Detection Mode Conceptual filter: Short-Term, Mid-Term, Long-Term (doesn’t affect logic)
Show Labels Display BOS and MSS labels above/below structure
Line Style Choose between Solid, Dashed, or Dotted
Bullish/Bearish Colors Customize line and label appearance
Liquidity Zones
Setting Description
Liquidity Sensitivity How large a swing must be (ATR multiplier) to qualify as a liquidity point
Order Blocks
Setting Description
Use Candle Body If true, OB zones are based on open/close instead of high/low
⸻
🧠 How Traders Can Interpret Dynamic Price Action
Structure-Based Bias:
• BOS = bullish structure continuing → look for long setups
• MSS = bearish structure breaking down → caution for reversals
Liquidity Zones:
• Price nearing a Sellside Liquidity zone? Watch for sweep + rejection
• Price tapping Buyside Liquidity? Look for absorption or reversal
Sweep Events:
• A Buy Sweep can signal accumulation
• A Sell Sweep can mark distribution or a trap breakout
Use sweeps as confirmation, trap detection, or entry filters.

⸻
🧪 Strategy Use Cases
• 🔍 Smart Money Concepts (SMC): Combine BOS/MSS + sweeps for refined CHoCH entries
• 🔄 Reversal Traders: Wait for sweep + structure shift before entering against prior trend
• 📉 Trend Continuation: Use BOS + liquidity clears to confirm direction
• 🎯 Scalping: Sweep zones act as high-probability entry areas on LTFs
Dynamic Price Action by EdgeXplorer is a high-precision structural framework that detects and maps market structure shifts, liquidity zones, and sweep events in real time. Built for traders who prioritize price behavior over indicators, this suite intelligently interprets swing pivots, volatility ranges, and institutional footprints to surface key decision-making zones on your chart.
Whether you trade Smart Money Concepts (SMC), classical price action, or hybrid strategies, Dynamic Price Action helps you visualize where price is reacting, where it’s hunting stops, and when structure is shifting — without the noise.
⸻
🔍 What Does Dynamic Price Action Do?
This indicator tracks three core elements:
1. Market Structure Shifts – Bullish and bearish swing breaks (BOS and MSS)
2. Liquidity Zones – Dynamic detection of potential buy-side and sell-side liquidity pools
3. Sweep Events – Real-time detection when liquidity is taken out (aka stop hunts or raids)
It also contains logic for Order Block detection, giving you a foundational structure for further Smart Money analysis (note: OB visuals are currently off by default but fully supported).
⸻
⚙️ How It Works – Technical Breakdown
1. Market Structure (BOS / MSS)
• Detects swing highs and lows using a 3-bar pivot system
• When a valid swing is confirmed:
• A BOS (Break of Structure) line is drawn for bullish shifts
• An MSS (Market Structure Shift) line is drawn for bearish transitions
• Lines are plotted with customizable styles and optional labels
2. Liquidity Detection
• Liquidity zones are marked based on:
• Recent confirmed swing highs or lows
• ATR-based range check (swing must exceed Liquidity Sensitivity threshold)
• Post-swing candle direction (bullish or bearish close)
• Sell-Side Liquidity = swing highs likely containing stop clusters
• Buy-Side Liquidity = swing lows likely containing stop clusters
• Each zone is tagged visually and stored for later sweep checks
3. Sweep Recognition
• If price breaches a previously tagged liquidity level:
• A “Sell Sweep” label appears above the former sell-side zone
• A “Buy Sweep” label appears below the former buy-side zone
• Zones are removed after being swept to reduce clutter
4. Order Block Logic (Optional)
• The script includes full logic to detect bullish/bearish order blocks based on:
• Body-based or wick-based structure (user preference)
• Candle volume criteria
• Visuals are turned off for now but can be easily re-enabled
⸻
📈 What You See on the Chart
Visual Element Meaning
Green BOS Line Bullish break of market structure (higher high)
Red MSS Line Bearish shift in structure (lower low)
“Sellside Liquidity” Label Area above a swing high likely to hold resting liquidity
“Buyside Liquidity” Label Area below a swing low likely to hold resting liquidity
“Sell Sweep” Label A stop hunt above a prior high
“Buy Sweep” Label A stop hunt below a prior low
All elements are dynamically drawn, adapting to price behavior with zero repainting.
⸻
📊 Inputs & Settings Explained
Market Structures
Setting Description
Enable Market Structures Toggle BOS/MSS logic
Detection Mode Conceptual filter: Short-Term, Mid-Term, Long-Term (doesn’t affect logic)
Show Labels Display BOS and MSS labels above/below structure
Line Style Choose between Solid, Dashed, or Dotted
Bullish/Bearish Colors Customize line and label appearance
Liquidity Zones
Setting Description
Liquidity Sensitivity How large a swing must be (ATR multiplier) to qualify as a liquidity point
Order Blocks
Setting Description
Use Candle Body If true, OB zones are based on open/close instead of high/low
⸻
🧠 How Traders Can Interpret Dynamic Price Action
Structure-Based Bias:
• BOS = bullish structure continuing → look for long setups
• MSS = bearish structure breaking down → caution for reversals
Liquidity Zones:
• Price nearing a Sellside Liquidity zone? Watch for sweep + rejection
• Price tapping Buyside Liquidity? Look for absorption or reversal
Sweep Events:
• A Buy Sweep can signal accumulation
• A Sell Sweep can mark distribution or a trap breakout
Use sweeps as confirmation, trap detection, or entry filters.
⸻
🧪 Strategy Use Cases
• 🔍 Smart Money Concepts (SMC): Combine BOS/MSS + sweeps for refined CHoCH entries
• 🔄 Reversal Traders: Wait for sweep + structure shift before entering against prior trend
• 📉 Trend Continuation: Use BOS + liquidity clears to confirm direction
• 🎯 Scalping: Sweep zones act as high-probability entry areas on LTFs
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。