/** * Klinger Oscillator Indicator * * Volume-based oscillator that measures long-term money flow trends. * Uses the difference between two EMAs of signed volume. * * Based on TradingView's Klinger Oscillator indicator. */ import { type Bar, type IndicatorResult, type InputConfig, type PlotConfig } from 'oakscriptjs'; export interface KlingerInputs { /** Fast EMA period */ fastLength: number; /** Slow EMA period */ slowLength: number; /** Signal line period */ signalLength: number; } export declare const defaultInputs: KlingerInputs; export declare const inputConfig: InputConfig[]; export declare const plotConfig: PlotConfig[]; export declare const metadata: { title: string; shortTitle: string; overlay: boolean; }; /** * Calculate Klinger Oscillator * * Algorithm from PineScript: * sv = ta.change(hlc3) >= 0 ? volume : -volume * kvo = ta.ema(sv, 34) - ta.ema(sv, 55) * sig = ta.ema(kvo, 13) */ export declare function calculate(bars: Bar[], inputs?: Partial): IndicatorResult; export declare const KlingerOscillator: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: KlingerInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=klinger.d.ts.map