/** * Trend Line Auto * * Auto-draws trend lines based on fractal highs/lows detected via highest/lowest * over a period. Uses angle calculation to find the best-fit trend line connecting * the most recent fractal to a prior fractal within a segment range. * Lines are colored green (top/upper) and red/yellow (bottom/lower). * * Reference: TradingView "Trend Line - HarryBot" by HarryBot */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { LineDrawingData } from '../types'; export interface TrendLineAutoInputs { limit: number; segment: number; term: number; } export declare const defaultInputs: TrendLineAutoInputs; 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[]; }; export declare const TrendLineAuto: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: TrendLineAutoInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=trend-line-auto.d.ts.map