/** * Twin Range Filter * * Dual-range smoothing filter combining fast and slow ATR-based ranges. * Filter line adapts to price movement within the combined range. * Uptrend when filter rises, downtrend when filter falls. * * Reference: TradingView "Twin Range Filter" by colinmck */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs'; import type { BarColorData, MarkerData } from '../types'; export interface TwinRangeFilterInputs { fastPeriod: number; fastRange: number; slowPeriod: number; slowRange: number; src: SourceType; } export declare const defaultInputs: TwinRangeFilterInputs; 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 & { barColors: BarColorData[]; markers: MarkerData[]; }; export declare const TwinRangeFilter: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: TwinRangeFilterInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=twin-range-filter.d.ts.map