/** * Nick Rypock Trailing Reverse (NRTR) * * ATR-based dynamic trailing reverse indicator. * In uptrend, trail = max(prev_trail, close - k*ATR). * If close < trail, flip to downtrend (and vice versa). * Two plot series: green for uptrend, red for downtrend. * * Reference: TradingView "Nick Rypock Trailing Reverse" (TV#479) */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { MarkerData } from '../types'; export interface NRTRInputs { atrPeriod: number; mult: number; } export declare const defaultInputs: NRTRInputs; 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 NRTR: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: NRTRInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=nrtr.d.ts.map