/** * Volume Delta Indicator * * Approximates up/down volume by comparing close to open price. * When close > open, volume is considered buying pressure (up volume). * When close < open, volume is considered selling pressure (down volume). * Delta = upVolume - downVolume * * PineScript display: * hline(0) * plotcandle(openVolume, maxVolume, minVolume, lastVolume, "Volume Delta", color=col, bordercolor=col, wickcolor=col) * * Note: TradingView's version uses intrabar data for more precise calculation. * This implementation uses close vs open as an approximation. */ import { type IndicatorResult, type InputConfig, type PlotConfig, type HLineConfig, type Bar } from 'oakscriptjs'; import type { PlotCandleData } from '../types'; export interface VolumeDeltaInputs { } export declare const defaultInputs: VolumeDeltaInputs; export declare const inputConfig: InputConfig[]; export declare const plotConfig: PlotConfig[]; export declare const plotCandleConfig: { id: string; title: string; }[]; export declare const hlineConfig: HLineConfig[]; export declare const metadata: { title: string; shortTitle: string; overlay: boolean; }; export declare function calculate(bars: Bar[], _inputs?: Partial): IndicatorResult & { plotCandles: Record; }; export declare const VolumeDelta: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: VolumeDeltaInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; plotCandleConfig: { id: string; title: string; }[]; hlineConfig: HLineConfig[]; }; //# sourceMappingURL=volume-delta.d.ts.map