/** * Variable Moving Average (VMA) [LazyBear] / Chande VMA * * Adaptive moving average that adjusts its smoothing based on directional * movement index. Faster when trending, slower when ranging. * * Reference: TradingView "Variable Moving Average" by LazyBear */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs'; import type { BarColorData } from '../types'; export interface VariableMAInputs { length: number; src: SourceType; } export declare const defaultInputs: VariableMAInputs; 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 & { barColors: BarColorData[]; }; export declare const VariableMA: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: VariableMAInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=variable-ma.d.ts.map