/** * VolumeDivergence * * Detects 4 divergence types between price and a custom weighted-MA volume oscillator. * Custom WMA weights by candle direction, pivot detection on volume to find divergences. * * Reference: TradingView "Volume Divergence by MM" by baymucuk */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { MarkerData } from '../types'; export interface VolumeDivergenceInputs { vl1: number; vl2: number; pivotLookbackRight: number; pivotLookbackLeft: number; maxLookbackRange: number; minLookbackRange: number; plotBull: boolean; plotHiddenBull: boolean; plotBear: boolean; plotHiddenBear: boolean; } export declare const defaultInputs: VolumeDivergenceInputs; 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 VolumeDivergence: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: VolumeDivergenceInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=volume-divergence.d.ts.map