/** * Detrended Price Oscillator (DPO) Indicator * * Removes trend from price to identify cycles. * DPO = Close - SMA(Close, length)[length/2 + 1] */ import { type IndicatorResult, type InputConfig, type PlotConfig, type HLineConfig, type Bar } from 'oakscriptjs'; export interface DPOInputs { /** Period length */ length: number; /** Whether to center the DPO */ centered: boolean; } export declare const defaultInputs: DPOInputs; export declare const inputConfig: InputConfig[]; export declare const plotConfig: PlotConfig[]; export declare const hlineConfig: HLineConfig[]; export declare const metadata: { title: string; shortTitle: string; overlay: boolean; }; export declare function calculate(bars: Bar[], inputs?: Partial): IndicatorResult; export declare const DPO: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: DPOInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; hlineConfig: HLineConfig[]; }; //# sourceMappingURL=dpo.d.ts.map