/** * Donchian Channels (DC) Indicator * * Hand-optimized implementation using oakscriptjs. * A trend-following indicator that shows the highest high and lowest low * over a specified period, with a midline (basis). */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; /** * Donchian Channels indicator input parameters */ export interface DonchianInputs { /** Lookback period */ length: number; /** Plot offset */ offset: number; } /** * Default input values matching TradingView defaults */ export declare const defaultInputs: DonchianInputs; /** * Input configuration for UI */ export declare const inputConfig: InputConfig[]; /** * Plot configuration - order matches CSV: Basis, Upper, Lower */ export declare const plotConfig: PlotConfig[]; /** * Indicator metadata */ export declare const metadata: { title: string; shortTitle: string; overlay: boolean; }; /** * Calculate Donchian Channels indicator * * @param bars - OHLCV bar data * @param inputs - Indicator parameters (optional, uses defaults) * @returns Indicator result with plot data */ export declare function calculate(bars: Bar[], inputs?: Partial): IndicatorResult; /** * Donchian Channels indicator module */ export declare const DonchianChannels: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: DonchianInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=donchian.d.ts.map