trading-signals
Version:
Technical indicators to run technical analysis with JavaScript / TypeScript.
12 lines (11 loc) • 657 B
TypeScript
import { TrendIndicatorSeries } from '../../base/Indicator.js';
import type { SignalThresholds } from '../../base/SignalThresholds.type.js';
import type { MovingAverageTypes } from '../../trend/MA/MovingAverageTypes.js';
export declare class RSI extends TrendIndicatorSeries {
#private;
readonly interval: number;
constructor(interval: number, SmoothingIndicator?: MovingAverageTypes, { overbought, oversold }?: SignalThresholds);
getRequiredInputs(): number;
update(price: number, replace: boolean): number | null;
protected calculateSignalState(result: number | null | undefined): "BEARISH" | "BULLISH" | "SIDEWAYS" | "UNKNOWN";
}