/** * Trend Lines v2 * * Pivot-based trend lines connecting consecutive pivot points. * Validates that no close falls through the line between pivots. * Draws up to 3 uptrend lines (ascending pivot lows) and * 3 downtrend lines (descending pivot highs). * * Reference: TradingView "Trend Lines v2" by LonesomeTheBlue */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { LineDrawingData } from '../types'; export interface TrendLinesV2Inputs { prd: number; ppNum: number; } export declare const defaultInputs: TrendLinesV2Inputs; 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 TrendLinesV2: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: TrendLinesV2Inputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=trend-lines-v2.d.ts.map