PINE LIBRARY
ที่อัปเดต: 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
เอกสารเผยแพร่
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
เอกสารเผยแพร่
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
เอกสารเผยแพร่
v4เอกสารเผยแพร่
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
เอกสารเผยแพร่
v6Added:
NamedValues_new()
Creates new empty NamedValues instance
Returns: empty NamedValues instance
เอกสารเผยแพร่
v7Added:
to_string(this)
Parameters:
this (NamedValues)
to_json(this)
Parameters:
this (NamedValues)
เอกสารเผยแพร่
v8เอกสารเผยแพร่
v9เอกสารเผยแพร่
v10เอกสารเผยแพร่
v11เอกสารเผยแพร่
v12Added:
method with_line(this, name)
Namespace types: NamedValues
Parameters:
this (NamedValues)
name (string)
เอกสารเผยแพร่
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
เอกสารเผยแพร่
v14Updated:
method with_value_range(this, name, value1, value2, format)
Namespace types: NamedValues
Parameters:
this (NamedValues)
name (string)
value1 (float)
value2 (float)
format (string)
เอกสารเผยแพร่
v15เอกสารเผยแพร่
v16Added:
method with_timeframe(this, name)
Namespace types: NamedValues
Parameters:
this (NamedValues)
name (string)
เอกสารเผยแพร่
v17เอกสารเผยแพร่
v18เอกสารเผยแพร่
v19ไลบรารีไพน์
ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนได้เผยแพร่ Pine code นี้เป็นโอเพนซอร์สไลบรารีเพื่อให้ Pine โปรแกรมเมอร์คนอื่นในชุมชนของเราสามารถนำไปใช้ซ้ำได้ ต้องขอบคุณผู้เขียน! คุณสามารถใช้ไลบรารีนี้ในแบบส่วนตัวหรือในการเผยแพร่แบบโอเพนซอร์สอื่น ๆ แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน
ไลบรารีไพน์
ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนได้เผยแพร่ Pine code นี้เป็นโอเพนซอร์สไลบรารีเพื่อให้ Pine โปรแกรมเมอร์คนอื่นในชุมชนของเราสามารถนำไปใช้ซ้ำได้ ต้องขอบคุณผู้เขียน! คุณสามารถใช้ไลบรารีนี้ในแบบส่วนตัวหรือในการเผยแพร่แบบโอเพนซอร์สอื่น ๆ แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน