/** * ML Adaptive SuperTrend [AlgoAlpha] * * Uses k-Means Clustering on ATR values to classify volatility regime * (low/medium/high), then selects an appropriate SuperTrend factor. * Low volatility → higher factor, high volatility → lower factor. * * Reference: TradingView "ML Adaptive SuperTrend [AlgoAlpha]" (TV#408) */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar } from 'oakscriptjs'; import type { MarkerData, LabelData } from '../types'; import type { TableData } from '../types'; export interface MlAdaptiveSupertrendInputs { atrLen: number; minFactor: number; midFactor: number; maxFactor: number; trainLen: number; showLabels: boolean; } export declare const defaultInputs: MlAdaptiveSupertrendInputs; 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 & { markers: MarkerData[]; labels: LabelData[]; tables: TableData; }; export declare const MlAdaptiveSupertrend: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: MlAdaptiveSupertrendInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=ml-adaptive-supertrend.d.ts.map