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 intint(input int value) → input intint(series int value) → series intint(simple int value) → simple int| Parameter | Type | Required |
|---|---|---|
value | const int | yes |
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.