Custom Studies Inputs
The inputs
in Custom Study Metainfo is an array of study inputs.
Study input contains following fields:
* - required
id
* - stringname
* - string, the title of the inputtype
* - string, input type. Possible values are:'bool'
'text'
'symbol'
'resolution'
'session'
'source'
'integer'
'float'
'time'
confirm
- boolean, if true, then user will be asked to confirm input value before indicator is added to chart. Default value is false.isHidden
- booleanvisible
- stringdefval
- default value of the input variable. It has the specific type for a given input and can be optional.
Also, study input object can have additional fields depending on the input type
.
Bool
type
* -'bool'
defval
* - boolean
Text
type
* -'text'
defval
* - stringoptions
- an array of strings, a list of options to choose fromoptionsTitles
- an object{ [option]: value }
, whereoption
andvalue
are strings
Symbol
type
* -'symbol'
defval
- stringoptional
- boolean
Resolution
type
* -'resolution'
defval
* - a resolution string, please see the Resolution pageoptions
- an array of strings, a list of options to choose fromoptionsTitles
- an object{ [option]: value }
, whereoption
andvalue
are strings
Source
type
* -'source'
defval
* - may be a custom string or one of the following:open
,high
,low
,close
,hl2
,hlc3
,ohlc4
options
- an array of custom strings or the following:open
,high
,low
,close
,hl2
,hlc3
,ohlc4
optionsTitles
- an object{ [option]: value }
, whereoption
andvalue
are strings
Integer, Float, Time
type
* -'integer'
,'float'
, or'time'
defval
* - numbermax
- number, maximum possible value of the input variablemin
- number, minimal possible value of the input variablestep
- number, the step value to use for incrementing/decrementing input from format dialog. Default value is 1.