input.session
Session time range input "HHMM-HHMM", optionally with days ":23456" (1 = Sunday). For time(timeframe, session). Returns an input string.
input.session(defval: const string, title: const string = na, options: const string = na, tooltip: const string = na, group: const string = na, inline: const string = na, confirm: const bool = false, display: const string = na, active: const bool = true) -> string
Parameters
defvalconst string: The starting range as text, "HHMM-HHMM", optionally with the days, "0930-1600:23456"; anything else does not compile.titleconst string: The setting's name in the indicator settings.optionsconst string: a tuple of sessions, e.g. ["0930-1600", "1800-1700"]tooltipconst string: Text shown when the pointer rests on the setting.groupconst string: The settings section it goes in; inputs with the same group share a section (default: Inputs).inlineconst string: Inputs next to each other with the same inline name share one row.confirmconst bool: Accepted for compatibility; it has no effect yet.displayconst string: Accepted for compatibility; it has no effect yet.activeconst bool: Accepted for scripts from Pine and ignored: it changes nothing on PROLYNT.
Example
rth = input.session("0930-1600", "Session")