/** * Commodity Channel Index (CCI) Indicator * * Hand-optimized implementation using oakscriptjs. * Measures the variation of a security's price from its statistical mean. * High values show the price is unusually high compared to average, low values show it's unusually low. */ import { type IndicatorResult, type InputConfig, type PlotConfig, type HLineConfig, type FillConfig, type Bar, type SourceType } from 'oakscriptjs'; export interface CCIInputs { length: number; src: SourceType; maType: 'None' | 'SMA' | 'SMA + Bollinger Bands' | 'EMA' | 'SMMA (RMA)' | 'WMA' | 'VWMA'; maLength: number; bbMult: number; } export declare const defaultInputs: CCIInputs; export declare const inputConfig: InputConfig[]; export declare const plotConfig: PlotConfig[]; export declare const hlineConfig: HLineConfig[]; export declare const fillConfig: FillConfig[]; export declare const metadata: { title: string; shortTitle: string; overlay: boolean; }; export declare function calculate(bars: Bar[], inputs?: Partial): IndicatorResult; export declare const CCI: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: CCIInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; hlineConfig: HLineConfig[]; fillConfig: FillConfig[]; }; //# sourceMappingURL=cci.d.ts.map