/** * Impulse MACD * * SMMA channel (high/low) + ZLEMA of hlc3. * When ZLEMA > SMMA(high): impulse = ZLEMA - SMMA(high) (bullish) * When ZLEMA < SMMA(low): impulse = ZLEMA - SMMA(low) (bearish) * Otherwise: 0 (neutral, filtering whipsaw) * * Reference: TradingView "Impulse MACD" by LazyBear */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { BarColorData } from '../types'; export interface ImpulseMACDInputs { lengthMA: number; lengthSignal: number; } export declare const defaultInputs: ImpulseMACDInputs; 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 & { barColors: BarColorData[]; }; export declare const ImpulseMACD: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: ImpulseMACDInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=impulse-macd.d.ts.map