/** * Multiple Divergences NON-REPAINT * * Detects divergences across 10 oscillators (RSI, MACD, MACD Histogram, * Stochastic, CCI, Momentum, OBV, DI Oscillator, VW-MACD, CMF) at pivot * points. Counts how many oscillators show the same divergence type * simultaneously and displays markers when count >= threshold. * * Reference: TradingView "Multiple Divergences NON-REPAINT" by PeterO */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { MarkerData } from '../types'; export interface MultipleDivergencesInputs { minDivCount: number; lbR: number; lbL: number; rangeUpper: number; rangeLower: number; plotBull: boolean; plotHiddenBull: boolean; plotBear: boolean; plotHiddenBear: boolean; } export declare const defaultInputs: MultipleDivergencesInputs; 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 MultipleDivergences: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: MultipleDivergencesInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=multiple-divergences.d.ts.map