/** * Shared candlestick pattern helper computations. * Ports all PineScript helper variables from TradingView's "All Candlestick Patterns" indicator. */ import type { Bar } from 'oakscriptjs'; export declare const C_Factor = 2; export interface CandleContext { bodyHi: number[]; bodyLo: number[]; body: number[]; bodyAvg: number[]; smallBody: boolean[]; longBody: boolean[]; upShadow: number[]; dnShadow: number[]; hasUpShadow: boolean[]; hasDnShadow: boolean[]; whiteBody: boolean[]; blackBody: boolean[]; range: number[]; bodyMiddle: number[]; hl2: number[]; isDojiBody: boolean[]; shadowEquals: boolean[]; doji: boolean[]; upTrend: boolean[]; downTrend: boolean[]; } export declare function computeCandles(bars: Bar[]): CandleContext; //# sourceMappingURL=candlestick-helpers.d.ts.map