/** * Average True Range (ATR) Indicator * * Hand-optimized implementation using oakscriptjs. * Measures market volatility by calculating the average range between high and low prices. */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; /** * ATR indicator input parameters */ export interface ATRInputs { /** Period length */ length: number; /** Smoothing method */ smoothing: 'RMA' | 'SMA' | 'EMA' | 'WMA'; } /** * Default input values */ export declare const defaultInputs: ATRInputs; /** * Input configuration for UI */ export declare const inputConfig: InputConfig[]; /** * Plot configuration */ export declare const plotConfig: PlotConfig[]; /** * Indicator metadata */ export declare const metadata: { title: string; shortTitle: string; overlay: boolean; }; /** * Calculate ATR 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; /** * ATR indicator module */ export declare const ATR: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: ATRInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=atr.d.ts.map