PINE LIBRARY
Cập nhật alert_format

Library "alert_format"
library to call alert with parameters specified
alert_format(message, param_names, param_values, params_format, freq)
alert with named parameters message
Parameters:
message (string): message header that prefixes named parameters
param_names (array<string>): names for parameters specified in param_values
param_values (array<float>): values for parameters specified in param_names
params_format (string): format for all param values, 2 decimals by default
freq (string): Determines the allowed frequency of the alert trigger (see alert). alert.freq_once_per_bar_close by default
library to call alert with parameters specified
alert_format(message, param_names, param_values, params_format, freq)
alert with named parameters message
Parameters:
message (string): message header that prefixes named parameters
param_names (array<string>): names for parameters specified in param_values
param_values (array<float>): values for parameters specified in param_names
params_format (string): format for all param values, 2 decimals by default
freq (string): Determines the allowed frequency of the alert trigger (see alert). alert.freq_once_per_bar_close by default
Phát hành các Ghi chú
v2Updated:
Added string parameters.
alert_format(message, param_names, param_values, freq)
alert with named parameters message
Parameters:
message (string): message header that prefixes named parameters
param_names (array<string>): names for parameters specified in param_values
param_values (array<string>): values for parameters specified in param_names
freq (string): Determines the allowed frequency of the alert trigger (see alert). alert.freq_once_per_bar_close by default
Phát hành các Ghi chú
v3Added:
method with_default_format(this, format)
Changes default format
Namespace types: NamedValues
Parameters:
this (NamedValues)
format (string): Format for all param values (2 decimals by default)
Returns: Self
method with_named_value(this, name, value)
Adds float value
Namespace types: NamedValues
Parameters:
this (NamedValues)
name (string): Parameter name
value (float): Parameter value
Returns: Self
NamedValues
NamedValues type holds string parameters with their names
Fields:
names (array<string>)
values (array<string>)
default_format (series string)
Updated:
alert_format(message, named_values, freq)
alert with named parameters message
Parameters:
message (string): Message header that prefixes named parameters
named_values (NamedValues): Named values
freq (string): Determines the allowed frequency of the alert trigger (see alert). @alert.freq_once_per_bar_close by default
Phát hành các Ghi chú
v4Phát hành các Ghi chú
v5Added:
method with_format(this, format)
Changes default format
Namespace types: NamedValues
Parameters:
this (NamedValues)
format (string): Format for all param values (2 decimals by default)
Returns: Self
method with_value(this, name, value)
Adds float value
Namespace types: NamedValues
Parameters:
this (NamedValues)
name (string): Parameter name
value (float): Parameter value
Returns: Self
Removed:
method with_default_format(this, format)
Changes default format
method with_named_value(this, name, value)
Adds float value
Phát hành các Ghi chú
v6Added:
NamedValues_new()
Creates new empty NamedValues instance
Returns: empty NamedValues instance
Phát hành các Ghi chú
v7Added:
to_string(this)
Parameters:
this (NamedValues)
to_json(this)
Parameters:
this (NamedValues)
Phát hành các Ghi chú
v8Phát hành các Ghi chú
v9Phát hành các Ghi chú
v10Phát hành các Ghi chú
v11Phát hành các Ghi chú
v12Added:
method with_line(this, name)
Namespace types: NamedValues
Parameters:
this (NamedValues)
name (string)
Phát hành các Ghi chú
v13Added:
method with_value_range(this, name, value1, value2)
Namespace types: NamedValues
Parameters:
this (NamedValues)
name (string)
value1 (float)
value2 (float)
Updated:
method with_value(this, name, value, format)
Adds float value
Namespace types: NamedValues
Parameters:
this (NamedValues)
name (string): Parameter name
value (float): Parameter value
format (string)
Returns: Self
Phát hành các Ghi chú
v14Updated:
method with_value_range(this, name, value1, value2, format)
Namespace types: NamedValues
Parameters:
this (NamedValues)
name (string)
value1 (float)
value2 (float)
format (string)
Phát hành các Ghi chú
v15Phát hành các Ghi chú
v16Added:
method with_timeframe(this, name)
Namespace types: NamedValues
Parameters:
this (NamedValues)
name (string)
Phát hành các Ghi chú
v17Phát hành các Ghi chú
v18Phát hành các Ghi chú
v19Thư viện Pine
Theo tinh thần TradingView thực sự, tác giả đã xuất bản mã Pine này dưới dạng thư viện nguồn mở để các lập trình viên Pine khác trong cộng đồng của chúng tôi có thể sử dụng lại. Xin tri ân tác giả! Bạn có thể sử dụng thư viện này riêng tư hoặc trong các bài đăng nguồn mở khác. Tuy nhiên, bạn cần sử dụng lại mã này theo Nội quy chung.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Thư viện Pine
Theo tinh thần TradingView thực sự, tác giả đã xuất bản mã Pine này dưới dạng thư viện nguồn mở để các lập trình viên Pine khác trong cộng đồng của chúng tôi có thể sử dụng lại. Xin tri ân tác giả! Bạn có thể sử dụng thư viện này riêng tư hoặc trong các bài đăng nguồn mở khác. Tuy nhiên, bạn cần sử dụng lại mã này theo Nội quy chung.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.