/** * Open Close Cross Alerts (NoRepaint) * * Applies a selectable MA to both close and open series, then plots * a normalized percentage difference as an oscillator. Crossovers * generate long/short signals. Optional fractal-based divergence detection. * * Reference: TradingView "Open Close Cross Strategy R5.1" by JustUncleL */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { MarkerData } from '../types'; export interface OpenCloseCrossInputs { maType: string; maPeriod: number; resMultiplier: number; useResMultiplier: boolean; showDivergence: boolean; } export declare const defaultInputs: OpenCloseCrossInputs; 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 OpenCloseCross: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: OpenCloseCrossInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=open-close-cross.d.ts.map