/** * Machine Learning Moving Average [LuxAlgo] * * Gaussian Process Regression-inspired moving average. * For each bar, compute weighted average of lookback window using Gaussian kernel weights. * Weight(i) = exp(-0.5 * ((i - current) / sigma)^2) * Upper/lower bands = center +/- mult * weighted_stdev. * * Reference: TradingView "Machine Learning Moving Average [LuxAlgo]" (TV#410) */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs'; import type { MarkerData, BgColorData } from '../types'; export interface MlMovingAverageInputs { window: number; sigma: number; mult: number; src: SourceType; } export declare const defaultInputs: MlMovingAverageInputs; 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 MlMovingAverage: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: MlMovingAverageInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=ml-moving-average.d.ts.map