/** * Zero Lag EMA * * Reduces EMA lag by using a corrected source: 2*close - close[lag]. * zlema = ema(2*src - src[lag], length) where lag = floor((length-1)/2). * * Reference: TradingView "Zero Lag EMA" (community) */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs'; import type { MarkerData, BgColorData } from '../types'; export interface ZeroLagEMAInputs { length: number; fastLen: number; slowLen: number; src: SourceType; } export declare const defaultInputs: ZeroLagEMAInputs; 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 & { markers: MarkerData[]; bgColors: BgColorData[]; }; export declare const ZeroLagEMA: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: ZeroLagEMAInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=zero-lag-ema.d.ts.map