/** * Time Weighted Average Price (TWAP) Indicator * * Cumulative average of source within anchor periods. * Resets at each new anchor period boundary. */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs'; export interface TWAPInputs { anchor: string; src: SourceType; offset: number; } export declare const defaultInputs: TWAPInputs; 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 TWAP: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: TWAPInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=twap.d.ts.map