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.


In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.