PINE LIBRARY
Cập nhật lib_pickmytrade

Library "lib_pickmytrade"
a simple helper to create webhook messages for alert webhooks to pickmytrade
alert_msg_exit(account_id, token)
generates a json formatted EXIT message string for an alert() call, simply closing any open trade
Parameters:
account_id (string): the pickmytrade account id
token (string): the pickmytrade token
Returns: a json formatted message string for the alert() call
alert_msg_trail_sl(account_id, token, is_long, trail_sl)
generates a json formatted TRAIL STOP LOSS message string for an alert() call
Parameters:
account_id (string): the pickmytrade account id
token (string): the pickmytrade token
is_long (bool): trade direction
trail_sl (float): new stop loss level
Returns: a json formatted message string for the alert() call
alert_msg_entry(account_id, token, is_long, tp1, qty1, tp2, qty2, tp3, qty3, sl, tp1_be_offset, limit_price, limit_cancel_time)
generates a json formatted ENTRY message string for an alert() call
Parameters:
account_id (string): the pickmytrade account id
token (string): the pickmytrade token
is_long (bool): trade direction
tp1 (float): tp1 target
qty1 (int): tp1 quantity (optional)
tp2 (float): tp2 target
qty2 (int): tp2 quantity (optional)
tp3 (float): tp3 target
qty3 (int): tp3 quantity (optional)
sl (float): sl stop
tp1_be_offset (float): sl to be when hitting tp1, with this offset (optional, must be >= 0)
limit_price (float): limit entry target (optional)
limit_cancel_time (int): limit entry cancel time, if not filled (gtc) (optional)
Returns: a json formatted message string for the alert() call
a simple helper to create webhook messages for alert webhooks to pickmytrade
alert_msg_exit(account_id, token)
generates a json formatted EXIT message string for an alert() call, simply closing any open trade
Parameters:
account_id (string): the pickmytrade account id
token (string): the pickmytrade token
Returns: a json formatted message string for the alert() call
alert_msg_trail_sl(account_id, token, is_long, trail_sl)
generates a json formatted TRAIL STOP LOSS message string for an alert() call
Parameters:
account_id (string): the pickmytrade account id
token (string): the pickmytrade token
is_long (bool): trade direction
trail_sl (float): new stop loss level
Returns: a json formatted message string for the alert() call
alert_msg_entry(account_id, token, is_long, tp1, qty1, tp2, qty2, tp3, qty3, sl, tp1_be_offset, limit_price, limit_cancel_time)
generates a json formatted ENTRY message string for an alert() call
Parameters:
account_id (string): the pickmytrade account id
token (string): the pickmytrade token
is_long (bool): trade direction
tp1 (float): tp1 target
qty1 (int): tp1 quantity (optional)
tp2 (float): tp2 target
qty2 (int): tp2 quantity (optional)
tp3 (float): tp3 target
qty3 (int): tp3 quantity (optional)
sl (float): sl stop
tp1_be_offset (float): sl to be when hitting tp1, with this offset (optional, must be >= 0)
limit_price (float): limit entry target (optional)
limit_cancel_time (int): limit entry cancel time, if not filled (gtc) (optional)
Returns: a json formatted message string for the alert() call
Phát hành các Ghi chú
v2 removed unused exportsThư viện Pine
Theo đúng tinh thần TradingView, tác giả đã công bố mã Pine này như một thư viện mã nguồn mở để các lập trình viên Pine khác trong cộng đồng có thể tái sử dụng. Chúc mừng tác giả! Bạn có thể sử dụng thư viện này cho mục đích cá nhân hoặc trong các ấn phẩm mã nguồn mở khác, nhưng việc tái sử dụng mã này trong các ấn phẩm phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Thư viện Pine
Theo đúng tinh thần TradingView, tác giả đã công bố mã Pine này như một thư viện mã nguồn mở để các lập trình viên Pine khác trong cộng đồng có thể tái sử dụng. Chúc mừng tác giả! Bạn có thể sử dụng thư viện này cho mục đích cá nhân hoặc trong các ấn phẩm mã nguồn mở khác, nhưng việc tái sử dụng mã này trong các ấn phẩm phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.