input

Eleven functions, one per kind of setting the reader can change from the chart: bool, colour, float, int, price, session, source, string, text area, time and timeframe. A value that came from one of these carries the input form — you never write that qualifier, the call produces it.

input(const bool defval, const string title, const string tooltip, const string inline, const string group, const bool confirm) → input bool
input(const color defval, const string title, const string tooltip, const string inline, const string group, const bool confirm) → input color
input(const float defval, const string title, const string tooltip, const string inline, const string group, const bool confirm) → input float
input(const int defval, const string title, const string tooltip, const string inline, const string group, const bool confirm) → input int
input(const string defval, const string title, const string tooltip, const string inline, const string group, const bool confirm) → input string
input(series float defval, const string title, const string tooltip, const string inline, const string group, const bool confirm) → series float
ParameterTypeRequired
defvalconst boolyes
titleconst stringno
tooltipconst stringno
inlineconst stringno
groupconst stringno
confirmconst boolno

Returns input bool or input color or input float or input int or input string or series float

indicator("Level from the reader")
plot(input(100.0, "Level"))

See also inputs

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