/** * Optimized Trend Tracker (OTT) * * Smoothed moving average with percentage-based trailing stop. * Support line (MA) determines trend direction; * OTT = MA * (200 ± percent) / 200 based on which side of trailing stop. * * Reference: TradingView "Optimized Trend Tracker" by KivancOzbilgic */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs'; import type { MarkerData } from '../types'; export interface OTTInputs { source: SourceType; period: number; percent: number; highlight: boolean; showSignalsC: boolean; showSignalsR: boolean; } export declare const defaultInputs: OTTInputs; 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 OptimizedTrendTracker: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: OTTInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=optimized-trend-tracker.d.ts.map