/** * Volume Based Coloured Bars * * Volume bars colored by price direction with brightness based on * whether volume exceeds its moving average. * * Reference: TradingView "Volume Based Coloured Bars" (community) */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { BarColorData } from '../types'; export interface VolumeColoredBarsInputs { length: number; } export declare const defaultInputs: VolumeColoredBarsInputs; 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 & { barColors: BarColorData[]; }; export declare const VolumeColoredBars: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: VolumeColoredBarsInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=volume-colored-bars.d.ts.map