/** * AlphaTrend * * ATR-based adaptive trend indicator. * Uses RSI (or MFI if volume available) to determine trend direction, * then builds trailing stop levels that only ratchet in trend direction. * * Reference: TradingView "AlphaTrend" by KivancOzbilgic */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { MarkerData } from '../types'; export interface AlphaTrendInputs { coeff: number; period: number; useRSI: boolean; } export declare const defaultInputs: AlphaTrendInputs; 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[]; }; export declare const AlphaTrend: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: AlphaTrendInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=alpha-trend.d.ts.map