Skip to content

Money Flow Index ​

Volume weighted RSI on the typical price.

Kind indicator · Drawn in its own pane

Try it ​

On the chart, press / and choose Money Flow Index under Oscillators. To change it, copy the source below into the AlphaScript editor.

Inputs ​

InputTypeDefault
Lengthint14
Sourcesource"hlc3"
Colorcolor"#7E57C2"

Source ​

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

js
indicator({ name: "Money Flow Index", shortTitle: "MFI", overlay: false, precision: 2 });
const length = input.int("Length", 14, { min: 1 });
plot(ta.mfi(input.source("Source", "hlc3"), length), { title: "MF", color: input.color("Color", "#7E57C2", { group: "Style" }) });
hline(80, { title: "Overbought", color: "#787B86", style: "dashed" });
hline(50, { title: "Middle band", color: "rgba(120,123,134,0.5)", style: "dotted" });
hline(20, { title: "Oversold", color: "#787B86", style: "dashed" });
fill(80, 20, { title: "Background", color: "rgba(126,87,194,0.1)" });

AlphaScript language v0.1 · runtime 0.2.0