/** * Moving Average Colored EMA/SMA * * Single MA line colored by direction: green when rising, red when falling. * * Reference: TradingView "Moving Average Colored EMA/SMA" (community) */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs'; export interface MAColoredInputs { emaLength: number; smaLength: number; src: SourceType; } export declare const defaultInputs: MAColoredInputs; 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 MAColored: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: MAColoredInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=ma-colored.d.ts.map