Skip to content

Elder Force Index ​

EMA of the price change times volume.

Kind indicator · Drawn in its own pane

Try it ​

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

Inputs ​

InputTypeDefault
Lengthint13
Colorcolor"#F23645"

Source ​

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

js
indicator({ name: "Elder Force Index", shortTitle: "EFI", overlay: false, format: "volume" });
const length = input.int("Length", 13, { min: 1 });
plot(ta.ema(ta.calc([ta.change(candle.close, 1), candle.volume], (d, v) => d * v), length), { title: "Elder Force Index", color: input.color("Color", "#F23645", { group: "Style" }) });
hline(0, { title: "Zero", color: "rgba(120,123,134,0.5)", style: "dashed" });

AlphaScript language v0.1 · runtime 0.2.0