Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.ta.rsi
On this pageSignatureParametersReturnsExample

Momentum / Reference

alerta.ta.rsi

TradingView-compatible spelling: ta.rsi, runs without warnings

Calculates the RSI, an oscillator measuring the speed and change of price movements.

alerta.ta.rsi(source, length) → series float

Parameters

NameTypeRequiredDefaultDescription
sourceseriesYes—Series of values to process.
lengthintYes—Number of bars (length).

Returns

series float

Example

alerta.ta.rsi
indicator("RSI Pro", overlay=false)r = rsi(close, 14)plot(r, { title: "RSI", color: color.purple, pane: "oscillator" })h1 = hline(70, { title: "Overbought", color: color.red, style: "dashed", pane: "oscillator" })h2 = hline(30, { title: "Oversold", color: color.green, style: "dashed", pane: "oscillator" })fill(h1, h2, { color: "rgba(168, 85, 247, 0.05)", pane: "oscillator" })

Names and aliases

Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.

AlertaScript

No results found.

Search by name, alias, or keyword.