/** * Auto Trendline Indicator (based on fractals) [DojiEmoji] * * Automatically draws trend lines by connecting consecutive fractals (pivot highs/lows). * Detects HH/HL/LH/LL patterns from consecutive fractals and plots markers. * Recent lines are colored purple, historical lines are gray. * * Reference: TradingView "Auto Trendline [DojiEmoji]" (community) */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { MarkerData, LineDrawingData } from '../types'; export interface AutoTrendlineInputs { fractalPeriod: number; maxPairs: number; extend: string; showHH: boolean; showHL: boolean; showLH: boolean; showLL: boolean; } export declare const defaultInputs: AutoTrendlineInputs; 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 & { lines: LineDrawingData[]; markers: MarkerData[]; }; export declare const AutoTrendline: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: AutoTrendlineInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=auto-trendline.d.ts.map