/** * BEST Supertrend CCI * * Supertrend indicator that uses CCI as the direction filter instead of * the standard close-vs-supertrend comparison. * Up = hl2 - factor * ATR(pd) * Down = hl2 + factor * ATR(pd) * TrendUp ratchets up when CCI[1] > midLine, else resets. * TrendDown ratchets down when CCI[1] < midLine, else resets. * Trend = CCI > midLine ? 1 : CCI < midLine ? -1 : prev * Line = Trend==1 ? TrendUp : TrendDown * Colored green when close >= line, red otherwise. * * Reference: TradingView "BEST Supertrend CCI" by Daveatt */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs'; export interface SupertrendCCIInputs { source: SourceType; cciPeriod: number; midLine: number; factor: number; pd: number; } export declare const defaultInputs: SupertrendCCIInputs; 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 SupertrendCCI: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: SupertrendCCIInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=supertrend-cci.d.ts.map