input
函数
bool
navi
input.bool(
defval: const bool,
title: const string = na,
tooltip: const string = na,
inline: const string = na,
group: const string = na,
confirm: const bool = false,
display: const PlotDisplay = display.ALL,
active: input bool = true
): input bool创建在脚本设置 UI 中公开的传入值。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
defval | const bool | 输入的默认值。 | |
title | const string | na | 设置中输入的标签。 |
tooltip | const string | na | 输入的工具提示文本。 |
inline | const string | na | 布局的内联组名称。 |
group | const string | na | 输入组织的组名称。 |
confirm | const bool | false | 如果为 true,则会显示确认对话框。 |
display | const PlotDisplay | display.ALL | 输入的显示模式。 |
active | input bool | true | 如果为 true,则输入处于活动状态。 |
返回: input bool
color
navi
input.color(
defval: const color,
title: const string = na,
tooltip: const string = na,
inline: const string = na,
group: const string = na,
confirm: const bool = false,
display: const PlotDisplay = display.ALL,
active: input bool = true
): input color创建在脚本设置 UI 中公开的传入值。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
defval | const color | 输入的默认颜色值。 | |
title | const string | na | 设置中输入的标签。 |
tooltip | const string | na | 输入的工具提示文本。 |
inline | const string | na | 布局的内联组名称。 |
group | const string | na | 输入组织的组名称。 |
confirm | const bool | false | 如果为 true,则会显示确认对话框。 |
display | const PlotDisplay | display.ALL | 输入的显示模式。 |
active | input bool | true | 如果为 true,则输入处于活动状态。 |
返回: input color
enum
navi
input.enum(
defval: const T,
title: const string = na,
options: const Array<T> = na,
tooltip: const string = na,
inline: const string = na,
group: const string = na,
confirm: const bool = false,
display: const PlotDisplay = display.ALL,
active: input bool = true
): input T创建在脚本设置 UI 中公开的传入值。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
defval | const T | 输入的默认枚举值。 | |
title | const string | na | 设置中输入的标签。 |
options | const Array<T> | na | 允许的枚举值的数组。 |
tooltip | const string | na | 输入的工具提示文本。 |
inline | const string | na | 布局的内联组名称。 |
group | const string | na | 输入组织的组名称。 |
confirm | const bool | false | 如果为 true,则会显示确认对话框。 |
display | const PlotDisplay | display.ALL | 输入的显示模式。 |
active | input bool | true | 如果为 true,则输入处于活动状态。 |
返回: input T
float
创建在脚本设置 UI 中公开的传入值。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
defval | const float | 输入的默认值。 | |
title | const string | na | 设置中输入的标签。 |
options | const Array<float> | na | 输入允许值的数组。 |
tooltip | const string | na | 输入的工具提示文本。 |
inline | const string | na | 布局的内联组名称。 |
group | const string | na | 输入组织的组名称。 |
confirm | const bool | false | 如果为 true,则会显示确认对话框。 |
display | const PlotDisplay | display.ALL | 输入的显示模式。 |
active | input bool | true | 如果为 true,则输入处于活动状态。 |
返回: input float
int
创建在脚本设置 UI 中公开的传入值。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
defval | const int | 输入的默认值。 | |
title | const string | na | 设置中输入的标签。 |
options | const Array<int> | na | 输入允许值的数组。 |
tooltip | const string | na | 输入的工具提示文本。 |
inline | const string | na | 布局的内联组名称。 |
group | const string | na | 输入组织的组名称。 |
confirm | const bool | false | 如果为 true,则会显示确认对话框。 |
display | const PlotDisplay | display.ALL | 输入的显示模式。 |
active | input bool | true | 如果为 true,则输入处于活动状态。 |
返回: input int
price
navi
input.price(
defval: const float,
title: const string = na,
tooltip: const string = na,
inline: const string = na,
group: const string = na,
confirm: const bool = false,
display: const PlotDisplay = display.ALL,
active: input bool = true
): input float创建在脚本设置 UI 中公开的传入值。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
defval | const float | 输入的默认价格值。 | |
title | const string | na | 设置中输入的标签。 |
tooltip | const string | na | 输入的工具提示文本。 |
inline | const string | na | 布局的内联组名称。 |
group | const string | na | 输入组织的组名称。 |
confirm | const bool | false | 如果为 true,则会显示确认对话框。 |
display | const PlotDisplay | display.ALL | 输入的显示模式。 |
active | input bool | true | 如果为 true,则输入处于活动状态。 |
返回: input float
session
navi
input.session(
defval: const string,
title: const string = na,
options: const Array<string> = na,
tooltip: const string = na,
inline: const string = na,
group: const string = na,
confirm: const bool = false,
display: const PlotDisplay = display.ALL,
active: input bool = true
): input string创建在脚本设置 UI 中公开的传入值。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
defval | const string | 输入的默认会话值。 | |
title | const string | na | 设置中输入的标签。 |
options | const Array<string> | na | 允许的会话值的数组。 |
tooltip | const string | na | 输入的工具提示文本。 |
inline | const string | na | 布局的内联组名称。 |
group | const string | na | 输入组织的组名称。 |
confirm | const bool | false | 如果为 true,则会显示确认对话框。 |
display | const PlotDisplay | display.ALL | 输入的显示模式。 |
active | input bool | true | 如果为 true,则输入处于活动状态。 |
返回: input string
source
navi
input.source(
defval: const expression,
title: const string = na,
tooltip: const string = na,
inline: const string = na,
group: const string = na,
display: const PlotDisplay = display.ALL,
active: input bool = true,
confirm: const bool = false
): input float创建在脚本设置 UI 中公开的传入值。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
defval | const expression | 输入的默认系列表达式值。 | |
title | const string | na | 设置中输入的标签。 |
tooltip | const string | na | 输入的工具提示文本。 |
inline | const string | na | 布局的内联组名称。 |
group | const string | na | 输入组织的组名称。 |
display | const PlotDisplay | display.ALL | 输入的显示模式。 |
active | input bool | true | 如果为 true,则输入处于活动状态。 |
confirm | const bool | false | 如果为 true,则会显示确认对话框。 |
返回: input float
string
navi
input.string(
defval: const string,
title: const string = na,
options: const Array<string> = na,
tooltip: const string = na,
inline: const string = na,
group: const string = na,
confirm: const bool = false,
display: const PlotDisplay = display.ALL,
active: input bool = true
): input string创建在脚本设置 UI 中公开的传入值。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
defval | const string | 输入的默认字符串值。 | |
title | const string | na | 设置中输入的标签。 |
options | const Array<string> | na | 输入允许值的数组。 |
tooltip | const string | na | 输入的工具提示文本。 |
inline | const string | na | 布局的内联组名称。 |
group | const string | na | 输入组织的组名称。 |
confirm | const bool | false | 如果为 true,则会显示确认对话框。 |
display | const PlotDisplay | display.ALL | 输入的显示模式。 |
active | input bool | true | 如果为 true,则输入处于活动状态。 |
返回: input string
symbol
navi
input.symbol(
defval: const string,
title: const string = na,
tooltip: const string = na,
inline: const string = na,
group: const string = na,
confirm: const bool = false,
display: const PlotDisplay = display.ALL,
active: input bool = true
): input string创建在脚本设置 UI 中公开的传入值。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
defval | const string | 输入的默认符号值。 | |
title | const string | na | 设置中输入的标签。 |
tooltip | const string | na | 输入的工具提示文本。 |
inline | const string | na | 布局的内联组名称。 |
group | const string | na | 输入组织的组名称。 |
confirm | const bool | false | 如果为 true,则会显示确认对话框。 |
display | const PlotDisplay | display.ALL | 输入的显示模式。 |
active | input bool | true | 如果为 true,则输入处于活动状态。 |
返回: input string
text_area
navi
input.text_area(
defval: const string,
title: const string = na,
tooltip: const string = na,
group: const string = na,
confirm: const bool = false,
display: const PlotDisplay = display.ALL,
active: input bool = true
): input string创建在脚本设置 UI 中公开的传入值。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
defval | const string | 输入的默认文本值。 | |
title | const string | na | 设置中输入的标签。 |
tooltip | const string | na | 输入的工具提示文本。 |
group | const string | na | 输入组织的组名称。 |
confirm | const bool | false | 如果为 true,则会显示确认对话框。 |
display | const PlotDisplay | display.ALL | 输入的显示模式。 |
active | input bool | true | 如果为 true,则输入处于活动状态。 |
返回: input string
time
navi
input.time(
defval: const int,
title: const string = na,
tooltip: const string = na,
inline: const string = na,
group: const string = na,
confirm: const bool = false,
display: const PlotDisplay = display.ALL,
active: input bool = true
): input int创建在脚本设置 UI 中公开的传入值。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
defval | const int | 输入的默认时间值作为 UNIX 时间戳。 | |
title | const string | na | 设置中输入的标签。 |
tooltip | const string | na | 输入的工具提示文本。 |
inline | const string | na | 布局的内联组名称。 |
group | const string | na | 输入组织的组名称。 |
confirm | const bool | false | 如果为 true,则会显示确认对话框。 |
display | const PlotDisplay | display.ALL | 输入的显示模式。 |
active | input bool | true | 如果为 true,则输入处于活动状态。 |
返回: input int
timeframe
navi
input.timeframe(
defval: const string,
title: const string = na,
options: const Array<string> = na,
tooltip: const string = na,
inline: const string = na,
group: const string = na,
confirm: const bool = false,
display: const PlotDisplay = display.ALL,
active: input bool = true
): input string创建在脚本设置 UI 中公开的传入值。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
defval | const string | 输入的默认时间范围值。 | |
title | const string | na | 设置中输入的标签。 |
options | const Array<string> | na | 允许的时间范围值的数组。 |
tooltip | const string | na | 输入的工具提示文本。 |
inline | const string | na | 布局的内联组名称。 |
group | const string | na | 输入组织的组名称。 |
confirm | const bool | false | 如果为 true,则会显示确认对话框。 |
display | const PlotDisplay | display.ALL | 输入的显示模式。 |
active | input bool | true | 如果为 true,则输入处于活动状态。 |
返回: input string