Appearance
Klinger Oscillator
EMA difference of volume signed by the typical price.
Kind indicator · Drawn in its own pane
Try it
On the chart, press / and choose Klinger Oscillator under Volume. To change it, copy the source below into the AlphaScript editor.
Inputs
| Input | Type | Default |
|---|---|---|
| Signal length | int | 13 |
| KVO color | color | "#2962FF" |
| Signal color | color | "#43A047" |
Source
From packages/alphascript/indicators/klinger.as.js.
js
indicator({ name: "Klinger Oscillator", shortTitle: "KVO", overlay: false, format: "volume" });
const signalLength = input.int("Signal length", 13, { min: 1 });
const sv = ta.calc([ta.change(ta.calc([candle.high, candle.low, candle.close], (h, l, c) => (h + l + c) / 3), 1), candle.volume], (d, v) => (d >= 0 ? v : -v));
const kvo = ta.calc([ta.ema(sv, 34), ta.ema(sv, 55)], (a, b) => a - b);
plot(kvo, { title: "Klinger Oscillator", color: input.color("KVO color", "#2962FF", { group: "Style" }) });
plot(ta.ema(kvo, signalLength), { title: "Signal", color: input.color("Signal color", "#43A047", { group: "Style" }) });
hline(0, { title: "Zero", color: "rgba(120,123,134,0.5)", style: "dashed" });