OPEN-SOURCE SCRIPT
Price Displacement Model

👑
✝️
Title:
Price Displacement Model
Description:
The Price Displacement Model is a market structure indicator designed to identify validated bullish and bearish reversal points using price displacement from running extremes. Signals are generated only when price moves a minimum user-defined distance away from a prior extreme and alternates direction, helping filter noise and prevent repeated same-side signals. This displacement-based approach focuses on structural shifts rather than fixed pivots or lagging fractals, making it adaptable across multiple timeframes. All shapes plotted stem from the same unique trigger, price displacement, allowing all aspects of your structure to be in sync.
Key Features:
• Price Displacement Confirmation: Reversals require price to move beyond a configurable threshold from the running high or low.
• Break Source Control: Choose between Close-based or Wick-based confirmation for conservative or responsive behavior.
• Candle Direction Filtering: Demand requires bullish candles; Supply requires bearish candles.
• Internal Market Structure Labels: Automatically classifies swings as HH, HL, LH, or LL based on prior confirmed structure.
• ZigZag Structure Visualization: Draws non-repainting zigzag lines connecting confirmed swing points only.
• Price displacement automatically plots supply and demand zones for your reference
• Internal Displacement Input Combined with External Input gives a 2-tier perspective of market structure
• Alerts: Built-in alert conditions for bullish (Demand) and bearish (Supply) reversals.
Inputs & Settings:
• Toggle Internal Displacement Candle Overlay & Bar Colors
• Internal Price Displacement Threshold
• External Price Displacement Threshold
• Break Source (Close or Wick)
• ZigZag Line Color
• ZigZag Line Width
• Supply/Demand zones toggle and color
Usage:
This indicator helps traders:
• Identify meaningful structural reversals driven by price displacement
• Track alternating Supply and Demand zones within market structure
• Distinguish higher highs/lows from lower highs/lows in real time
• Use structural signals as confirmation alongside higher-timeframe bias or other tools
Technical Notes:
• Signals are structure confirmations, not trade entries.
• The zigzag and labels are derived only from confirmed reversals and do not repaint historical structure.
• Works on standard OHLC charts. Non-standard chart types (Heikin Ashi, Renko, etc.) may alter displacement behavior.
• Past structural signals do not guarantee future market performance.
✝️
Title:
Price Displacement Model
Description:
The Price Displacement Model is a market structure indicator designed to identify validated bullish and bearish reversal points using price displacement from running extremes. Signals are generated only when price moves a minimum user-defined distance away from a prior extreme and alternates direction, helping filter noise and prevent repeated same-side signals. This displacement-based approach focuses on structural shifts rather than fixed pivots or lagging fractals, making it adaptable across multiple timeframes. All shapes plotted stem from the same unique trigger, price displacement, allowing all aspects of your structure to be in sync.
Key Features:
• Price Displacement Confirmation: Reversals require price to move beyond a configurable threshold from the running high or low.
• Break Source Control: Choose between Close-based or Wick-based confirmation for conservative or responsive behavior.
• Candle Direction Filtering: Demand requires bullish candles; Supply requires bearish candles.
• Internal Market Structure Labels: Automatically classifies swings as HH, HL, LH, or LL based on prior confirmed structure.
• ZigZag Structure Visualization: Draws non-repainting zigzag lines connecting confirmed swing points only.
• Price displacement automatically plots supply and demand zones for your reference
• Internal Displacement Input Combined with External Input gives a 2-tier perspective of market structure
• Alerts: Built-in alert conditions for bullish (Demand) and bearish (Supply) reversals.
Inputs & Settings:
• Toggle Internal Displacement Candle Overlay & Bar Colors
• Internal Price Displacement Threshold
• External Price Displacement Threshold
• Break Source (Close or Wick)
• ZigZag Line Color
• ZigZag Line Width
• Supply/Demand zones toggle and color
Usage:
This indicator helps traders:
• Identify meaningful structural reversals driven by price displacement
• Track alternating Supply and Demand zones within market structure
• Distinguish higher highs/lows from lower highs/lows in real time
• Use structural signals as confirmation alongside higher-timeframe bias or other tools
Technical Notes:
• Signals are structure confirmations, not trade entries.
• The zigzag and labels are derived only from confirmed reversals and do not repaint historical structure.
• Works on standard OHLC charts. Non-standard chart types (Heikin Ashi, Renko, etc.) may alter displacement behavior.
• Past structural signals do not guarantee future market performance.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.