Skip to content
AlertaChartAlertaScript / docs
AlertaScript / varip
On this pageSignatureReturnsExample

Utilities / Reference

varip

TradingView-compatible spelling: varip, runs without warnings

Declares a variable that persists between realtime updates. Historical bars do not reproduce every realtime update, so historical and live results can differ.

varip int updates = 0 → language construct

Returns

language construct

Example

//@version=6indicator("Intrabar-persistent variable")varip int updates = 0if barstate.isnew    updates := 0updates += 1plot(updates)

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.