OPEN-SOURCE SCRIPT

ORDER BOOK

5 992
order book vp

order book vp is a visual trading tool designed to read volume, buy pressure, sell pressure, and important price zones directly on the chart.

it combines a visual order book panel, a volume profile, an intrabar buy / sell engine, delta tracking, poc, value area, hvn / lvn zones, quantity labels on candles, and a compact dashboard.

the goal is simple: help the trader see where volume is building, where price is reacting, where buyers dominate, where sellers dominate, and which price zones can become important decision areas.

important: pine script does not have access to real level 2 order book data or resting limit orders. this tool does not display real exchange depth. it builds an order book style view from traded volume, volume-at-price, and intrabar analysis.

this gives a clean reading of traded flow, not a promise of real exchange order book depth.

---

main features

order book panel
shows a price ladder with levels around the current price. levels above price represent ask / sell pressure. levels below price represent bid / buy pressure.

fast order book effect
adds a fast reactive effect to the panel. the panel reacts to current buy / sell pressure, volume, candle body, and close position inside the candle.

volume profile
displays traded volume by price level. this helps identify where the market has exchanged the most volume.

poc
the point of control shows the price level with the highest volume inside the selected lookback window. it is often an equilibrium, reaction, or decision zone.

vah and val
vah is the upper boundary of the value area.
val is the lower boundary of the value area.
these levels help define the main area where the market built volume.

hvn and lvn
hvn means high volume node.
lvn means low volume node.
hvn zones can act as acceptance areas. lvn zones can act as rejection areas, acceleration zones, or liquidity gaps.

quantity labels
shows traded quantity on recent candles, with delta if enabled. green labels show buy dominance. red labels show sell dominance.

delta candle coloring
colors candles based on buy / sell delta dominance.

dashboard
summarizes important data: poc, vah, val, current candle buy / sell, delta, cvd, pressure, and intrabar source.

---

inputs guide

intrabar timeframe
lower timeframe used to estimate buy and sell volume. the lower the timeframe, the more detailed the reading. for example, on a 15 minute chart, using 1 minute gives a finer intrabar view.

lookback
number of candles used to build the volume profile. a higher value gives a broader view. a lower value makes the profile more reactive.

price levels
number of rows used in the volume profile. more rows give more precision, but also use more resources.

show order book panel
turns the order book panel on or off.

visible levels
number of price levels displayed inside the order book panel.

depth bar length
visual length of the depth bars inside the order book panel.

panel position
sets the position of the order book panel on the chart.

detect walls
enables detection of large volume levels.

wall multiplier
defines when a level is considered a wall compared to average level volume.

fast order book effect
turns on the fast reactive order book effect.

fast effect power
makes the order book effect more or less aggressive. higher values make the panel react faster.

fast level decay
controls how far the fast pressure effect spreads around the current price.

flash active levels
highlights active levels when buy or sell pressure is strong.

show volume profile
turns the volume profile on or off.

split buy / sell
splits the profile into buy volume and sell volume.

profile width
sets the visual width of the volume profile.

profile offset
sets the visual offset used for profile elements.

show poc
shows the point of control.

show value area
shows vah and val.

value area percent
sets the percentage used to calculate the value area.

mark hvn / lvn
shows high volume nodes and low volume nodes.

hvn multiplier
sets the threshold for high volume nodes.

lvn multiplier
sets the threshold for low volume nodes.

vp buy opacity
controls the opacity of the buy side of the volume profile.

vp sell opacity
controls the opacity of the sell side of the volume profile.

show quantity labels
turns quantity labels on or off.

on last n candles
defines how many recent candles display quantity labels.

show delta
shows buy minus sell delta inside the quantity labels.

quantity label spacing
increases or decreases the distance between candle labels and candles.

color candles by delta
colors candles based on delta dominance.

show dashboard
turns the small information panel on or off.

dashboard position
sets the position of the dashboard.

strong bar ratio
sets the threshold used for strong buy or strong sell alerts.

bid / buy
sets the buy side color.

ask / sell
sets the sell side color.

poc / accent
sets the poc and main accent color.

neutral
sets the neutral color.

---

how to use order book vp

start by choosing the asset and timeframe that match your trading style.

for scalping, use 1 minute, 3 minutes, 5 minutes, or 15 minutes.
for intraday trading, use 15 minutes, 30 minutes, or 1 hour.
for swing trading, use 4 hours or daily.

turn on the volume profile and watch the poc.
when price stays around the poc, the market is often balanced.
when price moves far away from the poc, the market may be in a displacement phase.

watch vah and val.
between vah and val, price is inside the main value area.
above vah, the market may be in bullish expansion or excess.
below val, the market may be in bearish expansion or excess.

watch hvn zones.
an hvn is a zone where a lot of volume was traded. price can return to this area because it represents acceptance.

watch lvn zones.
an lvn is a zone where little volume was traded. price can move quickly through these areas because there is less acceptance.

watch the order book panel.
if buy levels become stronger below price, it can show buying pressure.
if sell levels become stronger above price, it can show selling pressure.

watch the candle quantity labels.
positive delta means more buy volume.
negative delta means more sell volume.
if price rises with positive delta, buyers are supporting the move.
if price rises while delta turns negative, it can show weakness or absorption.

watch cvd inside the dashboard.
rising cvd shows cumulative buy pressure.
falling cvd shows cumulative sell pressure.

---

simple beginner workflow

1. find the poc.
2. find vah and val.
3. check if price is inside or outside the value area.
4. check if the order book panel shows more buy pressure or sell pressure.
5. confirm with the quantity labels on candles.
6. look for reactions around poc, vah, val, hvn, or lvn.
7. always use a stop loss and risk management.

---

scalping example

on a lower timeframe, order book vp can help identify fast reaction zones.

example:
price comes into val.
the order book panel shows buy pressure.
candle labels show positive delta.
price rejects val.

this can become a long scalp observation zone if market structure confirms.

another example:
price comes into vah.
the order book panel shows sell pressure.
candle labels turn red.
price rejects vah.

this can become a short scalp observation zone if market structure confirms.

---

intraday example

on a medium timeframe, the tool helps identify important volume zones.

if price returns to the poc, it may react because this level is the center of traded volume.
if price breaks above vah with buy pressure, continuation can become possible.
if price breaks below val with sell pressure, bearish continuation can become possible.

---

swing trading example

on higher timeframes, the volume profile helps identify major acceptance and rejection zones.

hvn zones can act as return zones.
lvn zones can act as acceleration zones.
the poc can act as a major equilibrium level.

---

beginner settings

intrabar timeframe: 1
lookback: 300
price levels: 80
visible levels: 16
show order book panel: on
fast order book effect: on
show volume profile: on
split buy / sell: on
show poc: on
show value area: on
mark hvn / lvn: on
vp buy opacity: 25
vp sell opacity: 25
show quantity labels: on
show delta: on
color candles by delta: off
show dashboard: on

this setup keeps the chart complete while staying readable.

---

important notes

do not take a trade only because the panel turns green or red.

use the panel as pressure confirmation, not as a standalone signal.

the most important levels to watch are usually poc, vah, val, hvn, and lvn.

a clean reaction on a level with matching delta is more useful than an isolated signal.

the larger the volume window, the more important the level can become.

order book vp is built to give a clear view of traded flow, volume by price, and buy / sell pressure, so the chart becomes a decision map instead of a random price display.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.