OPEN-SOURCE SCRIPT

Air Pocket Profile [FEELS]

4 451
Most volume tools show you where price has traded. This one also shows you where it has not — the thin zones price tends to move through quickly.

Air Pocket Profile builds a volume profile from price-range distribution, then highlights the heavy shelves where trading concentrated, the single peak-volume anchor, and the air pockets — price ranges that accumulated very little volume. A standard volume profile leaves low-volume areas as empty space. This script treats that empty space as information and draws it explicitly.
ảnh chụp nhanh

What makes it different
A traditional volume profile renders one heatmap and asks you to read the rest yourself. Air Pocket Profile separates the structure into distinct, labelled objects so the chart is readable at a glance: filled shelves, a glowing anchor line, and outlined air pocket zones with text tags. It also distinguishes recent volume from old volume by colour, marks bars that travelled through a pocket, and tracks how the volume anchor migrates over time.

How it works
The profile is built with a range-weighted distribution. Each historical bar spreads its volume across every price row it spans, from low to high, weighted by an impulse factor based on candle body size (0.7 + 0.6 × body ratio). This differs from a close-based profile, where each bar contributes only to a single row.

Row classification: with peak as the heaviest row and mean as the average row volume, each row is rescaled by min(rowVolume / mean / 2, 1) ^ contrast. Rows above average stay vivid, rows below it fade out.

-High Volume Nodes (HVN) — local maxima of the profile, ranked by volume. Shelves where price tends to slow.
-Volume Anchor — the single heaviest row, drawn as a glow line. The strongest reference level in the window.
-Air Pockets — continuous runs of rows below the air pocket threshold. Price tends to travel through them with little resistance.
-Fresh volume — volume traded within the fresh window is coloured separately, so recent levels stand apart from old ones.
-Anchor shift — the anchor position is recorded each bar and compared to its position N bars ago to report migration direction.

ảnh chụp nhanh

How to use it

-Air pockets are low-resistance ranges. When price enters one, expect faster movement and fewer reaction points until the next shelf.
-HVN levels and the anchor are high-resistance areas where price tends to slow, stall, or react.
-Profile balance shows the share of volume above vs below the anchor — directional context for the window.
-Fresh volume share shows how much of the structure was built recently.
-Anchor shift shows whether the centre of traded volume is migrating up or down.

ảnh chụp nhanh

Parameters

-Lookback — bars used to build the profile.
-Resolution — vertical row count.
-Air pocket threshold / Min pocket size — how thin and how tall a zone must be to count as a pocket.
-Profile contrast — how hard weak rows fade relative to strong ones.
-Fresh window — how many recent bars count as fresh.
-Node count — how many HVN levels to display.
-Anchor shift window / display — comparison window and direction-only vs direction-with-percent.
-Signal toggles — acceptance/rejection marks and air pocket transit marks can each be turned on or off.

Notes
Tested across BTC, ETH and other liquid assets on 1H, 4H, 1D and 1W. On instruments without volume data the profile falls back to a range-based weight. Behaviour marks are based on confirmed bars to avoid intrabar repainting. This is an analysis tool, not a signal service, and should be combined with your own risk management.

The script uses a custom range-weighted profile model and explicit low-volume zone detection to make thin areas visible.

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.