TPO Profile Bars 30m PJTradesTPO Profile Bars — Real-Time Market Profile for Any Timeframe
A full-featured TPO (Time Price Opportunity) profile indicator that builds Market Profile directly on your chart with real-time updates. Visualize where price spends the most time, identify value areas, and track unfilled POC levels — all without leaving TradingView.
█ WHAT IT DOES
This indicator constructs TPO profiles that show how long price traded at each level during a given period. Unlike volume profile, TPO measures time — revealing where the market found acceptance vs. rejection.
Each horizontal bar represents a price level, and its width shows how many candles traded through that level. The result is a visual distribution that highlights:
Point of Control (POC) — the price level with the most time spent
Value Area (VAH/VAL) — the range containing 70% of trading activity
Single Prints — levels touched only once, often acting as future support/resistance
█ KEY FEATURES
Two Modes
Daily — one profile per full session
30 Minute — individual profiles for each 30-minute period (e.g., 9:30–10:00, 10:00–10:30)
Live TPO Building
The current period's profile updates in real-time on every tick. Watch the distribution form as price prints — no waiting for the period to close.
Extending POC Lines
Previous POC levels automatically extend forward until price fills them. Unfilled POCs act as magnets and key reference levels for future sessions. Choose to delete, stop, or dash the line once price touches it.
Time-Based Gradient Coloring
TPO bars are colored based on when price traded at each level — early activity vs. late activity within the period. This shows how the profile developed over time, not just the final shape.
Configurable Granularity
Adjust "Ticks Per TPO Level" to control row height. Lower values give more detail (more rows), higher values give cleaner, chunkier profiles. For NQ futures, 8–16 works well on 1-minute charts. A width multiplier lets you scale the horizontal size of the bars independently.
█ HOW TO USE
Add to a 1-minute or 5-minute chart
Select "30 Minute" or "Daily" mode
Adjust "Ticks Per TPO Level" for your instrument — start around 8–12 for index futures, 4–8 for forex
Use the "TPO Bar Width Multiplier" if bars appear too narrow on your timeframe
Key things to watch for:
Profiles shaped like a "P" suggest buying activity (long liquidation or short covering above value)
Profiles shaped like a "b" suggest selling activity (long liquidation below value)
Symmetrical "D" shaped profiles indicate balance — expect range-bound behavior
Single prints mark fast directional moves — these levels often get revisited
Unfilled POC lines from prior sessions act as support/resistance targets
█ SETTINGS
Timeframe Settings
TPO Calculation Period — Daily or 30 Minute
Session Time — define the session window (default 0000–2359)
TPO Configuration
Ticks Per TPO Level — controls row granularity (lower = more detail)
TPO Bar Width Multiplier — scales horizontal bar width
Value Area % — percentage of TPO count for value area calculation (default 70%)
Max Sessions — how many recent profiles to display
Display Options
Toggle TPO bars, POC, VAH/VAL lines, value area background, single prints, open/close markers, and live TPO independently
Extend Single Prints — stretch single print levels to the right edge
Extend Previous VA Levels — carry forward VAH/VAL lines
POC Extension
Extend Previous POCs Until Filled — POC lines persist until price revisits them
When POC Filled — choose to delete the line, stop extending, or switch to dashed
Max Historical POC Lines — cap on how many unfilled POCs to track
█ NOTES
Best used on 1-minute charts for 30-minute mode (gives ~30 candles per profile for good resolution)
5-minute charts work but profiles will have fewer TPO counts per level
Pine Script limits apply — max 500 boxes, so very granular settings may reduce the number of visible profiles
The indicator uses request.security for 30-minute bar detection, which means it works accurately across any chart timeframe below 30 minutes
مؤشر Pine Script®






















