/** * Moving Average Converging [LuxAlgo] * * Adaptive MA using alpha adjustment based on crossovers and trend. * When price crosses the MA, alpha resets. When trending (new highs/lows), * alpha increases by k = 1/increment, making the MA converge faster. * A fast MA (fma) tracks extremes and smooths toward price. * * Reference: TradingView "Moving Average Converging [LuxAlgo]" by LuxAlgo */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; export interface MAConvergingInputs { length: number; increment: number; fast: number; } export declare const defaultInputs: MAConvergingInputs; 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 MAConverging: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: MAConvergingInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=ma-converging.d.ts.map