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.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。