Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.xloc.bar_index
On this pageSignatureReturnsExampleNotes

Drawing / Reference

alerta.xloc.bar_index

TradingView-compatible spelling: xloc.bar_index, runs without warnings

Selects whether drawing x-coordinates represent bar indices or timestamps. Use xloc.bar_index as a value, without parentheses.

alerta.xloc.bar_index → const string

Value

xloc.bar_index

Returns

const string

Example

alerta.xloc.bar_index
//@version=6indicator("Constant example")selected = xloc.bar_indexplot(close)

Notes

  • The value comes from AlertaScript's own constant table. A recognized option is not a promise that every data source supports it or that it behaves exactly as in Pine — check the entry of the function that takes it.

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.