Skip to content

Chaikin Oscillator ​

Fast minus slow EMA of accumulation/distribution.

Kind indicator · Drawn in its own pane

Try it ​

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

Inputs ​

InputTypeDefault
Fast lengthint3
Slow lengthint10
Colorcolor"#EC407A"

Source ​

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

js
indicator({ name: "Chaikin Oscillator", shortTitle: "Chaikin Osc", overlay: false, format: "volume" });
const fast = input.int("Fast length", 3, { min: 1 }), slow = input.int("Slow length", 10, { min: 1 });
const ad = ta.accdist();
plot(ta.calc([ta.ema(ad, fast), ta.ema(ad, slow)], (f, s) => f - s), { title: "Chaikin Oscillator", color: input.color("Color", "#EC407A", { group: "Style" }) });
hline(0, { title: "Zero", color: "rgba(120,123,134,0.5)", style: "dashed" });

AlphaScript language v0.1 · runtime 0.2.0