/** * Candlestick Reversal System * * Four reversal detection systems with swing high/low trend context: * 1. Wick Reversal - wick-to-body ratio detection * 2. Extreme Reversal - body size vs historical average * 3. Outside Reversal - price breaks previous bar's range * 4. Doji Reversal - doji pattern with trend context * * Uses pivothigh/pivotlow(5,0) for trend direction context. * Optional SMA overlay. * * Reference: TradingView "Candlestick Reversal System" by LonesomeTheBlue (community) */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { MarkerData } from '../types'; export interface CandlestickReversalInputs { pivotLen: number; showMA: boolean; maLen: number; enableWick: boolean; wickMultiplier: number; wickBodyPct: number; enableExtreme: boolean; bodySize: number; extremeBarsBack: number; bodyMultiplier: number; enableOutside: boolean; barMultiplier: number; outsideBarsBack: number; enableDoji: boolean; dojiPct: number; } export declare const defaultInputs: CandlestickReversalInputs; 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 CandlestickReversal: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: CandlestickReversalInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=candlestick-reversal.d.ts.map