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 floatParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
source | series | Yes | — | Series of values to process. |
length | int | Yes | — | Number of bars (length). |
Returns
series floatExample
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.