OPEN-SOURCE SCRIPT
Market Profile with Past Sessions

This script plots market profiles that show the amount of time price has remained at a particular level during past sessions, often referred to as "time price opportunity".
TV user LonesomeTheBlue created the original Market Profile indicator on which this script is based. This version makes minor changes to the automatic timeframes, and to show historic market profiles and points of control.
The market profile drawing begins at the START of the relevant session being profiled and extends to the right. There is a checkbox in the options that will plot the market profile at the END of the relevant session, if desired.
If you want to view the market profiles for shorter or longer sessions, use the drop down menu to take the Higher Time Frame setting off "Auto", and instead select a specific time interval that is HIGHER than the timeframe your chart is showing.
The market profile and points of control can be used to identify areas likely to serve as potential support or resistance, as well areas where price is likely to retest when it is ranging.
TV user LonesomeTheBlue created the original Market Profile indicator on which this script is based. This version makes minor changes to the automatic timeframes, and to show historic market profiles and points of control.
The market profile drawing begins at the START of the relevant session being profiled and extends to the right. There is a checkbox in the options that will plot the market profile at the END of the relevant session, if desired.
If you want to view the market profiles for shorter or longer sessions, use the drop down menu to take the Higher Time Frame setting off "Auto", and instead select a specific time interval that is HIGHER than the timeframe your chart is showing.
The market profile and points of control can be used to identify areas likely to serve as potential support or resistance, as well areas where price is likely to retest when it is ranging.
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.
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.
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.