/** * CCI Stochastic * * CCI = (close - SMA(close, len)) / (0.015 * meanDev(close, len)) * Then apply Stochastic to CCI: K = stoch(CCI, CCI, CCI, stochLen), smoothed. * * Reference: TradingView "CCI Stochastic" (TV#117) */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { MarkerData } from '../types'; export interface CCIStochasticInputs { cciLen: number; stochLen: number; smoothK: number; smoothD: number; showArrows: boolean; showArrowsCenter: boolean; } export declare const defaultInputs: CCIStochasticInputs; 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 & { markers: MarkerData[]; }; export declare const CCIStochastic: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: CCIStochasticInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=cci-stochastic.d.ts.map