/** * Market Structure Trailing Stop [LuxAlgo] * * Overlay trailing stop that adapts based on market structure changes. * Uses pivot detection to identify bullish/bearish structure shifts. * Trailing stop starts at local min/max since pivot and trails using * max_change * incr/100 in trend direction. * Reset modes: CHoCH (Change of Character only) or All structure breaks. * * Reference: TradingView "Market Structure Trailing Stop [LuxAlgo]" by LuxAlgo */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { MarkerData, LineDrawingData } from '../types'; export interface MarketStructureTrailingStopInputs { length: number; incr: number; resetOn: string; showMS: boolean; } export declare const defaultInputs: MarketStructureTrailingStopInputs; 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[]; lines: LineDrawingData[]; }; export declare const MarketStructureTrailingStop: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: MarketStructureTrailingStopInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=market-structure-trailing-stop.d.ts.map