/** * Range Detector * * Detects trading ranges where price stays within ATR bands around SMA. * Counts bars where close deviates more than ATR from SMA; range when count=0. * Plots max/min range boundaries with per-bar colors (blue=unbroken, green=broken up, red=broken down). * * Reference: TradingView "Range Detector [LuxAlgo]" by LuxAlgo */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { BgColorData, BoxData, LineDrawingData } from '../types'; export interface RangeDetectorInputs { length: number; mult: number; atrLen: number; } export declare const defaultInputs: RangeDetectorInputs; 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 & { bgColors: BgColorData[]; boxes: BoxData[]; lines: LineDrawingData[]; }; export declare const RangeDetector: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: RangeDetectorInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=range-detector.d.ts.map