Skip to content

Net Stake Flow ​

TAO turnover signed by bar direction: net stake flow.

Kind indicator · Drawn in its own pane

Try it ​

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

Inputs ​

InputTypeDefault
MA lengthint20
MA colorcolor"#2962FF"

Source ​

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

js
indicator({ name: "Net Stake Flow", shortTitle: "Flow", overlay: false, format: "volume" });
const length = input.int("MA length", 20, { min: 1 });
const signed = ta.calc([candle.turnover, candle.open, candle.close], (t, o, c) => (c >= o ? t : -t));
plot(signed, { title: "Flow", style: "columns", colorUp: "#26A69A", colorDown: "#FF5252" });
plot(ta.sma(signed, length), { title: "Flow MA", color: input.color("MA color", "#2962FF", { group: "Style" }) });
hline(0, { title: "Zero", color: "rgba(120,123,134,0.5)" });

AlphaScript language v0.1 · runtime 0.2.0