iRSI

Calculates the Relative Strength Index (RSI) indicator value for any symbol and timeframe.

Syntax

iRSI(
symbol: string,
timeframe: number,
index: number,
period: number,
applyToPrice: TPriceType
): number

Parameters

Parameter
Type
Description

symbol

string

Symbol name

timeframe

number

Timeframe in minutes

index

number

Index of the bar to calculate RSI for

period

number

RSI calculation period

applyToPrice

TPriceType

Type of price to use (Open, High, Low, Close, etc.)

Return Value

Returns a number representing the RSI value (0-100) at the specified bar index.

Description

Calculates the Relative Strength Index (RSI) indicator.

Example

Last updated