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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.