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