Market Efficiency Ratio [Interakktive]The Market Efficiency Ratio decomposes price movement into two components: net progress vs wasted movement. This tool exposes the underlying math that most traders never see, helping you understand when price is moving efficiently versus chopping sideways.
Unlike simple trend indicators, this shows you WHY price movement matters โ not just whether it's up or down, but how much of that movement was useful directional progress versus noisy oscillation.
โ WHAT IT DOES
โข Calculates Efficiency Ratio (0โ1 or 0โ100) measuring directional progress
โข Exposes Net Displacement (how far price actually moved)
โข Exposes Path Length (total distance price traveled)
โข Calculates Chop Cost (wasted movement)
โข Visual zones for high/mid/low efficiency states
โ WHAT IT DOES NOT DO
โข NO signals, NO entries/exits, NO buy/sell
โข NO performance claims
โข NO predictions โ purely diagnostic
โข This is a tool for understanding price behavior
โ HOW IT WORKS
The efficiency ratio answers one question: "Of all the movement price made, how much was useful progress?"
๐น THE MATH
Over a lookback period of N bars:
Net Displacement = |Close - Close |
Path Length = ฮฃ |Close - Close | for all bars
Efficiency Ratio = Net Displacement / Path Length
๐น INTERPRETATION
โข Efficiency = 1.0 (100%): Price moved in a straight line โ every tick was progress
โข Efficiency = 0.5 (50%): Half the movement was wasted in back-and-forth chop
โข Efficiency = 0.0 (0%): Price ended exactly where it started โ all movement was noise
๐น CHOP COST
This is the "wasted movement" โ how much price traveled without making progress:
Chop Cost = Path Length - Net Displacement
Chop % = Chop Cost / Path Length
High chop cost means lots of effort for little result โ a warning sign for trend traders.
โ VISUAL GUIDE
Three efficiency zones:
โข GREEN (โฅ70): High efficiency โ strong directional movement
โข YELLOW (30-70): Mixed efficiency โ some progress, some chop
โข RED (<30): Low efficiency โ mostly noise, little progress
โ INPUTS
Lookback Length (default: 14)
Number of bars to calculate efficiency over. Higher values produce smoother readings but respond slower to changes.
Smoothing Length (default: 5)
EMA smoothing applied to the output. Reduces noise in the efficiency reading.
Apply Smoothing (default: true)
Toggle EMA smoothing on/off.
Scale Mode (default: 0โ100)
Display as percentage (0-100) or decimal ratio (0-1).
Show Reference Bands (default: true)
Display the high/low efficiency threshold lines.
Low/High Efficiency Level (default: 30/70)
Thresholds for classifying efficiency zones.
Overlay Effect (default: None)
โข None: No overlay
โข Background Tint: Subtle chart background color in high/low zones
โข Bar Highlight: Color bars during low efficiency periods
Show Data Window Values (default: true)
Export all raw values (Net Displacement, Path Length, Efficiency, Chop Cost, Chop %) to the data window for analysis.
โ USE CASES
This indicator helps traders understand:
โข Why some trends are "clean" and others are "messy"
โข When price is consolidating vs trending (without using volume)
โข The relationship between movement and progress
โข Why high-chop environments are difficult to trade
This is the foundational concept behind more advanced regime detection systems.
โ SUITABLE MARKETS
Works on: Stocks, Futures, Forex, Crypto
Timeframes: All timeframes
Note: This is a price-only indicator โ no volume required
โ DISCLAIMER
This indicator is for informational and educational purposes only. It does not constitute financial advice. It does not generate trading signals. Past performance does not guarantee future results. Always conduct your own analysis.
Penunjuk Pine Scriptยฎ






















