/** * TRIX Indicator * * Triple Exponential Average Rate of Change. * Shows the percent rate of change of a triple exponentially smoothed moving average. * * Based on TradingView's TRIX indicator. */ import { type Bar, type IndicatorResult, type InputConfig, type PlotConfig, type HLineConfig } from 'oakscriptjs'; export interface TRIXInputs { /** EMA period length */ length: number; } export declare const defaultInputs: TRIXInputs; export declare const inputConfig: InputConfig[]; export declare const plotConfig: PlotConfig[]; export declare const hlineConfig: HLineConfig[]; export declare const metadata: { title: string; shortTitle: string; overlay: boolean; }; /** * Calculate TRIX * * Algorithm: * 1. Take log of close prices * 2. Apply EMA three times * 3. Calculate rate of change (1-bar difference) * 4. Multiply by 10000 for readability */ export declare function calculate(bars: Bar[], inputs?: Partial): IndicatorResult; export declare const TRIX: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: TRIXInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; hlineConfig: HLineConfig[]; }; //# sourceMappingURL=trix.d.ts.map