/** * Ultimate RSI [LuxAlgo] * * Augmented RSI using highest/lowest range normalization. * diff = highest expanding ? +range : lowest expanding ? -range : close change. * arsi = ma(diff) / ma(abs(diff)) * 50 + 50. * Signal line is a smoothed MA of the arsi. * * Reference: TradingView "Ultimate RSI [LuxAlgo]" by LuxAlgo */ import { type IndicatorResult, type InputConfig, type PlotConfig, type Bar, type SourceType } from 'oakscriptjs'; import type { BgColorData } from '../types'; export interface UltimateRSIInputs { length: number; smoType1: 'EMA' | 'SMA' | 'RMA' | 'TMA'; src: SourceType; smooth: number; smoType2: 'EMA' | 'SMA' | 'RMA' | 'TMA'; obValue: number; osValue: number; } export declare const defaultInputs: UltimateRSIInputs; 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 & { bgColors: BgColorData[]; }; export declare const UltimateRSI: { calculate: typeof calculate; metadata: { title: string; shortTitle: string; overlay: boolean; }; defaultInputs: UltimateRSIInputs; inputConfig: InputConfig[]; plotConfig: PlotConfig[]; }; //# sourceMappingURL=ultimate-rsi.d.ts.map