/** * Bollinger BandWidth Indicator * * Measures the width of Bollinger Bands as a percentage of the basis. * BBW = ((Upper - Lower) / Basis) * 100 * Useful for identifying squeezes (low values) and expansions (high values). */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs'; export interface BBBandWidthInputs { /** Period length */ length: number; /** Price source */ src: SourceType; /** Standard deviation multiplier */ mult: number; /** Highest expansion lookback length */ expansionLength: number; /** Lowest contraction lookback length */ contractionLength: number; } export declare const defaultInputs: BBBandWidthInputs; 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 BBBandWidth: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: BBBandWidthInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=bb-bandwidth.d.ts.map