/** * Envelope Indicator * * Price envelope with a moving average basis and upper/lower bands * at a fixed percentage distance from the basis. */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs'; export interface EnvelopeInputs { /** Period length */ length: number; /** Percent distance for bands */ percent: number; /** Price source */ src: SourceType; /** Use exponential MA */ exponential: boolean; } export declare const defaultInputs: EnvelopeInputs; 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 Envelope: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: EnvelopeInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=envelope.d.ts.map