/** * ST0P * * ATR-based trailing stop loss indicator. * In uptrend: stop = close - mult*ATR, trails upward only. * In downtrend: stop = close + mult*ATR, trails downward only. * * Reference: TradingView "ST0P" (community) */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { MarkerData } from '../types'; export interface ST0PInputs { length: number; mult: number; } export declare const defaultInputs: ST0PInputs; 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 ST0P: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: ST0PInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=st0p.d.ts.map