Function reference
input
Every input becomes a field in the indicator's settings. See the Inputs guide for how saved values behave.
13 names from PineTS 0.11.1 · 9 with full entries
input.int
Verifiedinput.int(defval, title, minval, maxval, step, tooltip, inline, group, confirm, options)
A whole-number field.
input.float
Verifiedinput.float(defval, title, minval, maxval, step, tooltip, inline, group, confirm, options)
A decimal field.
input.bool
Verifiedinput.bool(defval, title, tooltip, inline, group, confirm)
A checkbox.
input.string
Verifiedinput.string(defval, title, options, tooltip, inline, group, confirm)
Text, or a dropdown when options is given.
input.color
Verifiedinput.color(defval, title, tooltip, inline, group, confirm)
A colour picker.
input.source
Verifiedinput.source(defval, title, tooltip, inline, group)
A choice of price series: close, open, hl2, hlc3, ohlc4…
input.timeframe
Supportedinput.timeframe(defval, title, options, tooltip, inline, group, confirm)
A timeframe picker for request.security.
input.text_area
Supportedinput.text_area(defval, title, tooltip, group, confirm)
Multi-line text.
input.enum
Supportedinput.enum(defval, title, options, tooltip, inline, group, confirm)
A dropdown of an enum's members.
Everything else in input
Also implemented. These follow TradingView’s Pine v6 reference for their arguments.
- input.priceSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
- input.sessionSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
- input.symbolSupportedImplemented. Arguments as in TradingView's Pine v6 reference.
- input.timeSupportedImplemented. Arguments as in TradingView's Pine v6 reference.