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

Volatility / Reference

alerta.ta.cvi

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

Measures volatility as percent change of EMA(high-low) over a lookback.

alerta.ta.cvi(high, low, emaLength, rocLength) → series float

Parameters

NameTypeRequiredDefaultDescription
highseriesYes—High series.
lowseriesYes—Low series.
emaLengthintNo—EMA smoothing length (default 10).
rocLengthintNo—Rate-of-change length (default 10).

Returns

series float

Example

alerta.ta.cvi
plot(cvi(high, low, 10, 10), { 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.