Appearance
Ease of Movement
Price movement per unit of volume, smoothed.
Kind indicator · Drawn in its own pane
Try it
On the chart, press / and choose Ease of Movement under Volume. To change it, copy the source below into the AlphaScript editor.
Inputs
| Input | Type | Default |
|---|---|---|
| Length | int | 14 |
| Divisor | int | 10000 |
| Color | color | "#43A047" |
Source
From packages/alphascript/indicators/eom.as.js.
js
indicator({ name: "Ease of Movement", shortTitle: "EOM", overlay: false, precision: 4 });
const length = input.int("Length", 14, { min: 1 });
const divisor = input.int("Divisor", 10000, { min: 1 });
const hl2 = ta.calc([candle.high, candle.low], (h, l) => (h + l) / 2);
const raw = ta.calc([ta.change(hl2, 1), candle.high, candle.low, candle.volume], (d, h, l, v) => (divisor * d * (h - l)) / v);
plot(ta.sma(raw, length), { title: "EOM", color: input.color("Color", "#43A047", { group: "Style" }) });
hline(0, { title: "Zero", color: "rgba(120,123,134,0.5)", style: "dashed" });