int

A whole number. One of the five data types the grammar names directly. Written as a bare number: 14. It has no fields.

int(const int value) → const int
int(input int value) → input int
int(series int value) → series int
int(simple int value) → simple int
ParameterTypeRequired
valueconst intyes

Returns const int or input int or series int or simple int

indicator("Bar index as an int")
plot(int(bar_index))

See also values and types

Part of the function index.

Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.
Upgrade