stock-indicator
Version:
Stock Indicator Library
15 lines (14 loc) • 628 B
TypeScript
import { TMixed } from "../common";
/**
* Computes the Relative Strength Index (RSI) for a given period.
* @param {number[]} CLOSE - array of closing prices.
* @param {number} N1 - number of periods for RSI1.default is 6.
* @param {number} N2 - number of periods for RSI2.default is 12.
* @param {number} N3 - number of periods for RSI3.default is 24.
* @returns {{ RSI1: TMixed[]; RSI2: TMixed[]; RSI3: TMixed[] }} - object containing the RSI values for each period.
*/
export declare function RSI(CLOSE: number[], N1?: number, N2?: number, N3?: number): {
RSI1: TMixed[];
RSI2: TMixed[];
RSI3: TMixed[];
};