Market Delta Volume for Realtime Bars
Aug 13, 2021

The Market Delta Volume for Realtime Bars indicator provides a real-time breakdown of transaction volume into market buy, market sell, and neutral components to help traders identify buyer/seller absorption and initiative.
Usage
The tool is designed for short-term traders and scalpers who monitor live price action. It displays several key volume metrics directly on the chart:
- Market Buy/Sell Volume: Shows the volume transacted on upticks (buys) and downticks (sells).
- Market Delta Volume: The net difference between market buy and market sell volume.
- Total Volume: The sum of buy, sell, and neutral volumes.
- Neutral Volume: Volume transacted without a change in price.
Traders can use these metrics to identify anomalies, such as high delta volume on small price moves (absorption) or strong delta following a breakout (initiative trading).
Note: This script only functions on real-time bars. A vertical dashed line marks the start of data collection; data is not stored and will reset if the chart is refreshed or the symbol is changed.
Details
The script uses varip variables to track intra-bar price changes and volume accumulation. By comparing the current price to the previous tick price within the same bar, it categorizes volume as buy (uptick), sell (downtick), or neutral (no change). This provides a more granular view of market participant behavior than standard candle-based volume.
Settings
- Show Market Buy/Sell Volume: Toggles the display of buy and sell volume labels above the price bars.
- Show Market Delta Volume: Displays the net delta (Buy - Sell) below the price bars.
- Show Total Volume: Displays the total accumulated volume for the bar.
- Show Neutral Volume: Displays volume transacted at the same price as the previous tick.
- Show Start Line: Toggles the dashed vertical line indicating where real-time data collection began.
- Show Buy/Sell/Neutral Volume as Percent of Total Volume: When enabled, displays volume as a percentage rather than raw values.
- Volume Scale Down Factor: Divides the volume values by 10, 100, 1000, etc., to make labels more readable on high-volume instruments.
- Color Settings: Allows customization of colors for buy, sell, delta, and neutral volume.
- Font Size: Adjusts the size of the on-chart labels.
FAQ
How do I access Market Delta Volume for Realtime Bars? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Why is there no data on historical bars? This tool requires real-time tick-by-tick data to categorize volume based on price changes. TradingView does not provide intra-bar tick history to indicators in a way that allows for historical reconstruction of this specific delta type.
Why did my data disappear after I changed the timeframe? Since the script collects data in real-time "on the fly" and does not store it in a database, changing settings or timeframes re-initializes the script, causing the data collection to start over from the current moment.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.