/** * CCI coded OBV * * Pine: overlay=false, 2 plots: * 1) OBV line colored by CCI: green when CCI(close, length) >= threshold, red otherwise * 2) EMA(OBV, emaLength) in orange * * The OBV is cum(change(src) > 0 ? volume : change(src) < 0 ? -volume : 0) * The CCI is computed on close (standard CCI), NOT on OBV. * Color coding: OBV line is green when CCI >= threshold, red otherwise. * * Reference: TradingView "CCI coded OBV" by LazyBear */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; export interface CCIOBVInputs { cciLength: number; threshold: number; emaLength: number; } export declare const defaultInputs: CCIOBVInputs; export declare const inputConfig: InputConfig[]; export declare const plotConfig: PlotConfig[]; export declare const metadata: { title: string; shortTitle: string; overlay: boolean; }; export declare function calculate(bars: Bar[], inputs?: Partial): IndicatorResult; export declare const CCIOBV: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: CCIOBVInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=cci-obv.d.ts.map