Appearance
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
| Input | Type | Default |
|---|---|---|
| Fast length | int | 3 |
| Slow length | int | 10 |
| Color | color | "#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" });