/** * Colored Volume Bars * * Colors volume bars based on price/volume trend comparison: * - Green: price up + volume up * - Blue: price up + volume down * - Orange: price down + volume down * - Red: price down + volume up * * Reference: TradingView "Colored Volume Bars" by LazyBear */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; export interface ColoredVolumeInputs { lookback: number; showMA: boolean; lengthMA: number; } export declare const defaultInputs: ColoredVolumeInputs; 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; export declare const ColoredVolume: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: ColoredVolumeInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=colored-volume.d.ts.map