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

Momentum / Reference

alerta.ta.vi

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

Calculates Vortex Indicator positive/negative lines.

alerta.ta.vi(high, low, close, length) → [vip, vin]

Parameters

NameTypeRequiredDefaultDescription
highseriesYes—High series.
lowseriesYes—Low series.
closeseriesYes—Close series.
lengthintNo—Length (default 14).

Returns

[vip, vin]

Example

alerta.ta.vi
[vip, vin] = vi(high, low, close, 14)plot(vip, { title: "VI+", color: color.green, pane: "oscillator" })plot(vin, { title: "VI-", color: color.red, 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.