/** * Trend Strength Index * * Measures trend strength using the Pearson correlation between * closing prices and bar indices over a rolling window. * Range: -1 to 1, where positive = uptrend, negative = downtrend. * Formula: correlation(close, bar_index, length) */ import { type IndicatorResult, type InputConfig, type PlotConfig, type HLineConfig, type Bar } from 'oakscriptjs'; export interface TrendStrengthInputs { /** Period length */ length: number; /** Bullish fill color */ bullishColor: string; /** Bearish fill color */ bearishColor: string; } export declare const defaultInputs: TrendStrengthInputs; export declare const inputConfig: InputConfig[]; export declare const plotConfig: PlotConfig[]; export declare const hlineConfig: HLineConfig[]; export declare const metadata: { title: string; shortTitle: string; overlay: boolean; }; export declare function calculate(bars: Bar[], inputs?: Partial): IndicatorResult; export declare const TrendStrengthIndex: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: TrendStrengthInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; hlineConfig: HLineConfig[]; }; //# sourceMappingURL=trend-strength.d.ts.map