/** * Trend Magic * * CCI-directed ATR trailing stop. * When CCI >= 0: trailing support (bufferUp) ratchets upward. * When CCI <= 0: trailing resistance (bufferDn) ratchets downward. * On CCI zero-cross, the opposite buffer seeds from the previous value. * * Reference: TradingView "Trend Magic" */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; export interface TrendMagicInputs { cciPeriod: number; atrPeriod: number; atrMultiplier: number; } export declare const defaultInputs: TrendMagicInputs; 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 TrendMagic: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: TrendMagicInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=trend-magic.d.ts.map