OPEN-SOURCE SCRIPT

Market Profile with TPO

Updated
This is is Market Profile with TPO (the letters) on the current session. Due to pinescript limitations, we are limited to 500 TPOs, since this script uses 1 label per TPO. It is NOT volume profile, this is Time Profile (Time spent at a price).
Release Notes
Updated the Auto Tick size
Release Notes
Fixed the Auto Tick Size again. If it times out, just uncheck the Auto Tick Size, let it load, then check it again (or switch to Manual Tick Size).

Please note that due to TradingView pinescript limitations, the TPO letters are only on the most recent session (500 labels limitation)
Release Notes
Cleaned up the options. Please note if you can't get it to load (timeout), hide and unhide it again.
Release Notes
Updated some of the default settings to not throw up as many errors
Release Notes
Updated 500 TPO Error and added Table and Letter Coloring
Release Notes
Updated Warning Verbiage
Release Notes
Turned off the hardcoded debug option
marketprofilemarketprofilechartmarketprofileoverlayTPOTrend AnalysisVolume Profile

Open-source script

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer