/** * TDMacd * * Standard MACD (EMA fast - EMA slow) with SMA signal. * Histogram is the MACD line itself, colored by direction (2-color). * MACD line plotted in black. * Signal line colored by direction (2-color: red/green). * * Pine source: * fastMA = ema(source, fastLength) * slowMA = ema(source, slowLength) * macd = fastMA - slowMA * signal = sma(macd, signalLength) * plot(macd, color = change(macd) <= 0 ? red : lime, style=histogram) * plot(macd, color=black, style=line) * plot(signal, color=change(signal) <= 0 ? red : green, style=line) */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; export interface TDMacdInputs { fastLength: number; slowLength: number; signalLength: number; } export declare const defaultInputs: TDMacdInputs; 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 TDMacd: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: TDMacdInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=td-macd.d.ts.map