/** * Machine Learning RSI [BullVision] * * kNN applied to RSI for adaptive overbought/oversold thresholds. * Finds k-nearest historical bars with similar RSI values, then analyzes * what price did after those readings to compute adaptive OB/OS levels. * * Reference: TradingView "Machine Learning RSI [BullVision]" (TV#411) */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs'; import type { TableData, BarColorData } from '../types'; export interface MlRsiInputs { rsiLen: number; k: number; lookback: number; src: SourceType; } export declare const defaultInputs: MlRsiInputs; 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 & { tables: TableData; barColors: BarColorData[]; }; export declare const MlRsi: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: MlRsiInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=ml-rsi.d.ts.map