/** * MACD Support and Resistance [ChartPrime] * * Standard MACD (fast=12, slow=26, signal=9) with dynamic support/resistance levels. * On MACD crossunder signal: highest high in last 6 bars becomes a RESISTANCE level. * On MACD crossover signal: lowest low in last 6 bars becomes a SUPPORT level. * Levels are removed when price crosses through them. Max 20 levels. * * Sub-panel indicator (overlay: false) for MACD histogram/signal. * S/R lines are output as overlay drawing primitives. * * Reference: TradingView "MACD Support and Resistance [ChartPrime]" by ChartPrime */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { MarkerData, LineDrawingData, LabelData } from '../types'; export interface MacdSupportResistanceInputs { fastLength: number; slowLength: number; signalLength: number; oscMaType: 'EMA' | 'SMA'; sigMaType: 'EMA' | 'SMA'; } export declare const defaultInputs: MacdSupportResistanceInputs; 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 & { lines: LineDrawingData[]; labels: LabelData[]; markers: MarkerData[]; }; export declare const MacdSupportResistance: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: MacdSupportResistanceInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=macd-support-resistance.d.ts.map