Indicator · Pine Script v5 · On the chart

Custom DOM - Bookmap Style

by rolesmc

This overlay indicator draws an on-chart depth-of-market table that splits volume at each price tick into estimated buy volume, sell volume, delta, and session volume.

View on GitHub

GitHub stars4on the repository
Pine versionv5runs as is
Lines of code392
Settings22inputs
LicenceNone stated
Last update6 months ago24 Apr 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Growing text bars compare buyers and sellers, and recent bars approximate resting bid and ask depth. Standard-deviation thresholds flag outlier and extreme pressure, and a dashed Point of Control marks the heaviest node on the candles. A time-and-sales tape lists direction, time, price, and size, highlighting large prints. Tick size, lookback or session mode, visible levels, table side, and tape filters are adjustable. Buy and sell splits come from bar range, not true order prints.

Details

Published by

rolesmc on GitHub

Draws

On the price chart

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Tick Size (points per level)float0.25tickSize
Lookback Bars (SVP / VPB / VPS / VPD)int1500lookback
Visible DOM Levelsint40numLevels
Table PositionstringRighttablePos
Recent Bid/Ask Bars (proxy for resting depth)int8recentBars
Outlier Threshold (x StdDev)float2.0outlierMult
Extreme Outlier Threshold (x StdDev)float3.5extremeMult
Session Only Mode (ON = current session, OFF = historical lookback)boolfalserealtimeMode
Show Time & Sales TapebooltrueshowTape
Max Tape Rowsint25tapeRows
Min Size Filter (0 = all)float0.0tapeMinSize
Large Order Highlight Thresholdfloat1000.0tapeLargeSize
Show all 22 settings
SettingTypeDefaultVariable
Max Bar Width (chars)int10barMaxWidth
Buy (VPB) Colorcolorcolor.rgb(50, 130, 220)buyColor
Sell (VPS) Colorcolorcolor.rgb(220, 60, 60)sellColor
SVP Colorcolorcolor.rgb(130, 130, 130)svpColor
Bid Col Textcolorcolor.rgb(40, 110, 200)bidColor
Ask Col Textcolorcolor.rgb(210, 70, 70)askColor
Outlier Buy Colorcolorcolor.rgb(100, 220, 255)outlierBuyColor
Outlier Sell Colorcolorcolor.rgb(255, 130, 130)outlierSellColor
Extreme Buy Highlightcolorcolor.rgb(200, 255, 255)extremeBuyColor
Extreme Sell Highlightcolorcolor.rgb(255, 210, 210)extremeSellColor
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

This overlay indicator builds a horizontal momentum profile over a chosen lookback. It splits price into rows and plots the average WaveTrend of each zone as a bar colored by direction, plus an optional MFI reference band that stays gray when real trade volume

Indicator v6 Oscillators & momentumVolume
Updated 3 days ago · MIT GitHub repository of Momentum Profile [WavesUnchained]
5 stars

This indicator builds a frozen volume profile over a fixed, half-open timestamp range and draws it on the price chart. It aggregates one-minute source bars into output rows sized by a chosen tick count, marks a configurable value-area percentage, and can plot

Indicator v6 VolumeSupport & resistance
Updated 4 days ago · MPL-2.0 GitHub repository of VP RSD Fixed Range Shelf Diagnostic
4 stars

This indicator overlays an order flow intelligence suite directly on the price chart. It renders a liquidity heatmap across configured price zones, alongside an on-chart information panel displaying volume delta, cumulative volume delta, a momentum compass bas

Indicator v6 VolumeScreeners & dashboards
Updated 2 weeks ago · MIT GitHub repository of GHOST — OrderFlow Intelligence
4 stars

An overlay indicator that calculates multi-timeframe market conditions and displays them in an information panel on the price chart. It evaluates timeframe metrics such as 15-minute and 1-hour periods to monitor RSI values, support and resistance levels, and r

Indicator v5 Screeners & dashboardsOscillators & momentum Repaints
Updated 4 years ago · None stated GitHub repository of SnagProfit Logic 15M 1H

More Volume scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers