/** * Parallel Pivot Lines [LuxAlgo] * * Detects pivot highs and pivot lows, computes a linear regression slope of * close vs bar_index over a dynamic window, then projects sloped lines from * each of the most recent pivot points. * * All lines share the same slope (they are "parallel"), offset vertically * to pass through each pivot price at its pivot bar. * * Pine source uses line.new(extend.right). Since we output time-series, * we project each line forward from its pivot origin until a newer pivot * of the same type replaces it. * * Reference: TradingView "Parallel Pivot Lines [LuxAlgo]" by LuxAlgo */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; export interface ParallelPivotLinesInputs { length: number; lookback: number; slope: number; } export declare const defaultInputs: ParallelPivotLinesInputs; 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; export declare const ParallelPivotLines: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: ParallelPivotLinesInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=parallel-pivot-lines.d.ts.map