OPEN-SOURCE SCRIPT
Price Displacement Efficiency [LB]

HI trader,
The Price Displacement Efficiency (PDE) is a momentum-oscillator designed to measure the "straightness" of price action. Based on the principles of market geometry and efficiency, it evaluates whether the market is moving with conviction in a specific direction or if it is merely "churning" with high volatility but little net progress.
The Problem It Solves:
Standard indicators often fail to distinguish between high-volatility noise and genuine trend displacement. A market can move 100 pips up and down (high movement) but end up exactly where it started (zero displacement). The PDE solves this by calculating the ratio between the net displacement and the total energy expended by price.
How It Works:
The indicator compares the absolute distance between the current price and the price n periods ago against the sum of every individual bar-to-bar move during that same window.High Efficiency (>75): Price is moving in a "straight line." This indicates a strong, healthy trend where every bit of volume is resulting in price progress.
Low Efficiency (<20): Price is oscillating heavily with no clear direction. This is typical of "Choppy" markets or accumulation/distribution phases.
Key Features:
Directional Histogram: Shows the efficiency value relative to the trend direction (Green for Bullish, Red for Bearish).
Smoothing Signal: An EMA line is applied to the raw efficiency data to help identify momentum shifts and trend transitions.
Compression Detection: The background highlights yellow when the market is in an "Inefficient" state (below 20%). This warns traders to stay out of the market or prepare for an imminent breakout.
Breakout Signals: Visual triangles appear when price exits a compression zone, signaling a potential surge in directional volatility.
How to Use It:
Trend Following: Look for values sustaining above 50/75 to stay in a trend.
Reversal Warning: If price is making new highs but the PDE is dropping sharply, it suggests the trend is becoming "inefficient" and may soon exhaust.
Volatility Contraction: Use the yellow highlighted zones to identify periods where the market is coiled, waiting for the next "Breakout" signal.
Disclaimer:
This indicator is a tool for analyzing market structure and efficiency. It does not constitute financial advice. Past performance is not indicative of future results.
The Problem It Solves:
Standard indicators often fail to distinguish between high-volatility noise and genuine trend displacement. A market can move 100 pips up and down (high movement) but end up exactly where it started (zero displacement). The PDE solves this by calculating the ratio between the net displacement and the total energy expended by price.
How It Works:
The indicator compares the absolute distance between the current price and the price n periods ago against the sum of every individual bar-to-bar move during that same window.High Efficiency (>75): Price is moving in a "straight line." This indicates a strong, healthy trend where every bit of volume is resulting in price progress.
Low Efficiency (<20): Price is oscillating heavily with no clear direction. This is typical of "Choppy" markets or accumulation/distribution phases.
Key Features:
Directional Histogram: Shows the efficiency value relative to the trend direction (Green for Bullish, Red for Bearish).
Smoothing Signal: An EMA line is applied to the raw efficiency data to help identify momentum shifts and trend transitions.
Compression Detection: The background highlights yellow when the market is in an "Inefficient" state (below 20%). This warns traders to stay out of the market or prepare for an imminent breakout.
Breakout Signals: Visual triangles appear when price exits a compression zone, signaling a potential surge in directional volatility.
How to Use It:
Trend Following: Look for values sustaining above 50/75 to stay in a trend.
Reversal Warning: If price is making new highs but the PDE is dropping sharply, it suggests the trend is becoming "inefficient" and may soon exhaust.
Volatility Contraction: Use the yellow highlighted zones to identify periods where the market is coiled, waiting for the next "Breakout" signal.
Disclaimer:
This indicator is a tool for analyzing market structure and efficiency. It does not constitute financial advice. Past performance is not indicative of future results.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。