/** * Trend Trader Strategy * * Trend-following with MA + ATR trailing stop. * When close > MA: long mode, trail with close - atrMult*ATR. * When close < MA: short mode, trail with close + atrMult*ATR. * * Reference: TradingView "Trend Trader Strategy" (community) */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { BarColorData } from '../types'; export interface TrendTraderInputs { maLen: number; atrLen: number; atrMult: number; } export declare const defaultInputs: TrendTraderInputs; 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 TrendTrader: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: TrendTraderInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=trend-trader.d.ts.map