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

Momentum / Reference

alerta.ta.rvi

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

Calculates the Relative Vigor Index and signal line.

alerta.ta.rvi(open, high, low, close, length) → [rviLine, signal]

Parameters

NameTypeRequiredDefaultDescription
openseriesYes—Open series.
highseriesYes—High series.
lowseriesYes—Low series.
closeseriesYes—Close series.
lengthintNo—Length (default 10).

Returns

[rviLine, signal]

Example

alerta.ta.rvi
[rviLine, signal] = rvi(open, high, low, close, 10)plot(rviLine, { title: "RVI", color: color.blue, pane: "oscillator" })plot(signal, { title: "Signal", color: color.orange, 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.