/** * Moving Average Deviation Rate * * Measures how far price deviates from its MA as a percentage. * deviation_rate = (source - ma) / ma * 100 * * Reference: TradingView "Moving Average Deviation Rate" (community) */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs'; export interface MADeviationRateInputs { length: number; numStdDev: number; maType: string; src: SourceType; } export declare const defaultInputs: MADeviationRateInputs; export declare const inputConfig: InputConfig[]; export declare const plotConfig: PlotConfig[]; export declare const hlineConfig: { value: number; options: { color: string; linestyle: "dashed"; title: string; }; }[]; export declare const metadata: { title: string; shortTitle: string; overlay: boolean; }; export declare function calculate(bars: Bar[], inputs?: Partial): IndicatorResult; export declare const MADeviationRate: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: MADeviationRateInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=ma-deviation-rate.d.ts.map