OPEN-SOURCE SCRIPT
TPO Profile

This indicator provides a high-performance Time Price Opportunity (TPO) profile, commonly known as Market Profile. It visualizes the distribution of price over time, identifying the "fair value" areas where the market spent the most time during a specific session.
Core Features
Time-at-Price Visualization: Uses letters (A-Z, a-z) to represent 30-minute time blocks, creating a visual distribution of market activity.
Heatmap Gradient: Profiles are colored using a gradient from the session open to the session close, allowing you to track the chronological progression of price action at a glance.
Point of Control (POC): Automatically identifies and highlights the price level with the highest TPO count (the longest row) with a distinct color and extended line.
Smart Scaling: Includes an "Auto Row Height" mode that uses the 10-day ATR to dynamically calculate the optimal tick multiplier, ensuring the profile fits your screen perfectly regardless of volatility.
Hybrid Rendering Engine: * Recent Days: Rendered with full letter detail using boxes.
Historical Days: Automatically converted into efficient Polyline Outlines to bypass TradingView's 500-box limit, allowing for up to 50 days of historical context.
Session Filtering: Built-in support for RTH (Regular Trading Hours) filtering and custom timezone offsets (e.g., America/Chicago).
How to Use
Session Settings: Define your trading hours (default 0830-1500) and timezone.
Granularity: Adjust "Target Rows Per Day" to control the vertical detail. More rows provide finer price resolution but consume more drawing resources.
History: Control how many days display full letter detail versus simplified polyline outlines to optimize chart performance.
Core Features
Time-at-Price Visualization: Uses letters (A-Z, a-z) to represent 30-minute time blocks, creating a visual distribution of market activity.
Heatmap Gradient: Profiles are colored using a gradient from the session open to the session close, allowing you to track the chronological progression of price action at a glance.
Point of Control (POC): Automatically identifies and highlights the price level with the highest TPO count (the longest row) with a distinct color and extended line.
Smart Scaling: Includes an "Auto Row Height" mode that uses the 10-day ATR to dynamically calculate the optimal tick multiplier, ensuring the profile fits your screen perfectly regardless of volatility.
Hybrid Rendering Engine: * Recent Days: Rendered with full letter detail using boxes.
Historical Days: Automatically converted into efficient Polyline Outlines to bypass TradingView's 500-box limit, allowing for up to 50 days of historical context.
Session Filtering: Built-in support for RTH (Regular Trading Hours) filtering and custom timezone offsets (e.g., America/Chicago).
How to Use
Session Settings: Define your trading hours (default 0830-1500) and timezone.
Granularity: Adjust "Target Rows Per Day" to control the vertical detail. More rows provide finer price resolution but consume more drawing resources.
History: Control how many days display full letter detail versus simplified polyline outlines to optimize chart performance.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Tatanka Trading | Futures Market Structure Automated Auction Theory & ML Levels for ES & NQ.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Tatanka Trading | Futures Market Structure Automated Auction Theory & ML Levels for ES & NQ.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.