/** * Trend Regularity Adaptive Moving Average (TRAMA) * * Adaptive MA that adjusts speed based on trend regularity. * Counts how many bars are trending (|change| > avg |change|), computes ratio, * then alpha = ratio * (2/(length+1)). trama = alpha * src + (1-alpha) * prev. * * Reference: TradingView "Trend Regularity Adaptive Moving Average" by LuxAlgo */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs'; export interface TRAMAInputs { length: number; src: SourceType; } export declare const defaultInputs: TRAMAInputs; 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 TRAMA: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: TRAMAInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=trama.d.ts.map