Open-source scriptindicator/v1
Net Volume
Assign each bar volume a positive or negative sign according to its price direction.
#activity#net-volume#volume
Description
Net Volume displays volume above zero when a bar closes higher and below zero when it closes lower. It is a simple per-bar view of directional activity rather than a cumulative volume measure.
Open-source script. Everyone can inspect the source code, use the script on a chart, and save an editable copy.
Release notes
Version history · 1 published version
Version 1CurrentChart updatedNet Volume · Aug 31, 2026
Source codempl-2.0View sourceHide source
indicator("Net Volume", { overlay: false });
const net = volume.map((v, i) => close[i] > close[Math.max(0, i - 1)] ? v : close[i] < close[Math.max(0, i - 1)] ? -v : 0);
const colors = net.map((v) => v >= 0 ? "#26a69a" : "#ef5350");
plot(net, { title: "Net Volume", type: "columns", color: colors });
hline(0, { title: "Zero", color: "#78909c", style: "dotted" });
Community discussion
0 comments
No comments yet. Start the discussion.