OPEN-SOURCE SCRIPT
Matt Market Efficiency

This is a custom Pine Script v5 indicator for TradingView that creates a Market Efficiency Heatmap as a background overlay on your chart. It visualizes how "efficient" the market's price movement is over a specified period—essentially measuring how much of the total price volatility (wiggle room) resulted in net directional progress, weighted with volume activity.
High efficiency (stronger, less transparent color) indicates a clean trend with minimal wasted movement (e.g., a strong uptrend or downtrend).
Low efficiency (fainter color) suggests choppy, inefficient price action (e.g., ranging or noisy market).
Color coding: Teal for bullish (net price up), Purple for bearish (net price down).
The heatmap intensity scales from 1% opacity (very low efficiency) to 25% opacity (high efficiency), making it subtle yet informative without overwhelming the chart.
High efficiency (stronger, less transparent color) indicates a clean trend with minimal wasted movement (e.g., a strong uptrend or downtrend).
Low efficiency (fainter color) suggests choppy, inefficient price action (e.g., ranging or noisy market).
Color coding: Teal for bullish (net price up), Purple for bearish (net price down).
The heatmap intensity scales from 1% opacity (very low efficiency) to 25% opacity (high efficiency), making it subtle yet informative without overwhelming the chart.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
~matt
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
~matt
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.