/** * Factory for creating candlestick pattern indicators. * Each pattern is a thin config that plugs into this shared structure. */ import type { Bar, IndicatorResult, InputConfig, PlotConfig } from 'oakscriptjs'; import type { BgColorData, MarkerData } from '../types'; import { type CandleContext } from './candlestick-helpers'; export interface PatternConfig { name: string; shortName: string; label: string; signal: 'bullish' | 'bearish' | 'neutral'; startIndex: number; detect: (i: number, c: CandleContext, bars: Bar[]) => boolean; } export declare function createPattern(config: PatternConfig): { calculate: (bars: Bar[]) => IndicatorResult & { markers: MarkerData[]; bgColors: BgColorData[]; }; metadata: { title: string; shortTitle: string; overlay: true; }; defaultInputs: Record; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=candlestick-pattern.d.ts.map