← Script Marketplace
Open-source scriptindicator/v1

Net Volume

by Kodexius·@kodexius·

Assign each bar volume a positive or negative sign according to its price direction.

#activity#net-volume#volume
Net Volume chart preview

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
Release notes

Initial classic indicator release.

View current source ↓
Source codempl-2.0View 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

Loading…

No comments yet. Start the discussion.