Appearance
Chande Momentum Oscillator
Chande momentum: sum of rises minus falls over their total.
Kind indicator · Drawn in its own pane
Try it
On the chart, press / and choose Chande Momentum Oscillator under Oscillators. To change it, copy the source below into the AlphaScript editor.
Inputs
| Input | Type | Default |
|---|---|---|
| Length | int | 9 |
| Source | source | "close" |
| Color | color | "#2962FF" |
Source
From packages/alphascript/indicators/cmo.as.js.
js
indicator({ name: "Chande Momentum Oscillator", shortTitle: "ChandeMO", overlay: false, precision: 2 });
const length = input.int("Length", 9, { min: 1 });
const src = input.source("Source", "close");
plot(ta.cmo(src, length), { title: "ChandeMO", color: input.color("Color", "#2962FF", { group: "Style" }) });
hline(0, { title: "Zero", color: "rgba(120,123,134,0.5)", style: "dashed" });