UNPKG

fast-technical-indicators

Version:

High-performance technical indicators with zero dependencies - compatible with technicalindicators package

17 lines (16 loc) 450 B
import { RSIInput, NumberOrUndefined } from '../types'; export declare function rsi(input: RSIInput): number[]; export declare class RSI { private period; private values; private gains; private losses; private avgGain; private avgLoss; private initialized; private count; constructor(input: RSIInput); nextValue(value: number): NumberOrUndefined; getResult(): number[]; static calculate: typeof rsi; }