/** * ZLSMA - Zero Lag Least Squares Moving Average * * Double linear regression to cancel LSMA lag. * zlsma = lsma + (lsma - linreg(lsma)) * * Reference: TradingView "ZLSMA - Zero Lag LSMA" by veryfid */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs'; export interface ZLSMAInputs { length: number; offset: number; src: SourceType; } export declare const defaultInputs: ZLSMAInputs; 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 ZLSMA: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: ZLSMAInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=zlsma.d.ts.map