Skip to content

Net Volume ​

Bar volume signed by the close-to-close move.

Kind indicator · Drawn in its own pane

Try it ​

On the chart, press / and choose Net Volume under Volume. To change it, copy the source below into the AlphaScript editor.

Inputs ​

InputTypeDefault
Up colorcolor"#089981"
Down colorcolor"#F23645"

Source ​

From packages/alphascript/indicators/netvolume.as.js.

js
indicator({ name: "Net Volume", shortTitle: "Net Vol", overlay: false, format: "volume" });
const nv = ta.calc([ta.change(candle.close, 1), candle.volume], (d, v) => (d > 0 ? v : d < 0 ? -v : 0));
plot(nv, { title: "Net Volume", style: "columns", colorUp: input.color("Up color", "#089981", { group: "Style" }), colorDown: input.color("Down color", "#F23645", { group: "Style" }) });

AlphaScript language v0.1 · runtime 0.2.0