PINE LIBRARY
MyTVBOT

Library "MyTVBOT"
TODO: add library description here
buy_message(password, amount, order_name)
Make a buy Message for TradingHook.
Parameters:
password (string): (string) [Required] password that you set in .env file.
amount (float): (float) [Optional] amount. If not set, your strategy qty will be sent.
order_name (string): (string) [Optional] order_name. The default name is "Order".
Returns: (string) A string containing the formatted webhook message.
sell_message(password, percent, order_name)
Make a sell message for TradingHook.
Parameters:
password (string): (string) [Required] password that you set in .env file.
percent (string): (string) [Required] what percentage of your quantity you want to sell.
order_name (string): (string) [Optional] order_name. The default name is "Order".
Returns: (string) A string containing the formatted webhook message.
entry_message(password, amount, leverage, order_name)
Make a Entry Message for TradingHook.
Parameters:
password (string): (string) [Required] password that you set in .env file.
amount (float): (float) [Optional] amount. If not set, your strategy qty will be sent.
leverage (int): (int) [Optional] leverage. If not set, your leverage doesn't change.
order_name (string): (string) [Optional] order_name. The default name is "Order".
Returns: (string) A string containing the formatted webhook message.
close_message(password, percent, amount, order_name)
Make a close message for TradingHook.
Parameters:
password (string): (string) [Required] password that you set in .env file.
percent (string): (string) [Required/Optional] what percentage of your quantity you want to close.
amount (float): (float) [Required/Optional] quantity you want to close.
order_name (string): (string) [Optional] order_name. The default name is "Order".
Returns: (string) A string containing the formatted webhook message.
TODO: add library description here
buy_message(password, amount, order_name)
Make a buy Message for TradingHook.
Parameters:
password (string): (string) [Required] password that you set in .env file.
amount (float): (float) [Optional] amount. If not set, your strategy qty will be sent.
order_name (string): (string) [Optional] order_name. The default name is "Order".
Returns: (string) A string containing the formatted webhook message.
sell_message(password, percent, order_name)
Make a sell message for TradingHook.
Parameters:
password (string): (string) [Required] password that you set in .env file.
percent (string): (string) [Required] what percentage of your quantity you want to sell.
order_name (string): (string) [Optional] order_name. The default name is "Order".
Returns: (string) A string containing the formatted webhook message.
entry_message(password, amount, leverage, order_name)
Make a Entry Message for TradingHook.
Parameters:
password (string): (string) [Required] password that you set in .env file.
amount (float): (float) [Optional] amount. If not set, your strategy qty will be sent.
leverage (int): (int) [Optional] leverage. If not set, your leverage doesn't change.
order_name (string): (string) [Optional] order_name. The default name is "Order".
Returns: (string) A string containing the formatted webhook message.
close_message(password, percent, amount, order_name)
Make a close message for TradingHook.
Parameters:
password (string): (string) [Required] password that you set in .env file.
percent (string): (string) [Required/Optional] what percentage of your quantity you want to close.
amount (float): (float) [Required/Optional] quantity you want to close.
order_name (string): (string) [Optional] order_name. The default name is "Order".
Returns: (string) A string containing the formatted webhook message.
ไลบรารีไพน์
ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนได้เผยแพร่ Pine code นี้เป็นโอเพนซอร์สไลบรารีเพื่อให้ Pine โปรแกรมเมอร์คนอื่นในชุมชนของเราสามารถนำไปใช้ซ้ำได้ ต้องขอบคุณผู้เขียน! คุณสามารถใช้ไลบรารีนี้ในแบบส่วนตัวหรือในการเผยแพร่แบบโอเพนซอร์สอื่น ๆ แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน
ไลบรารีไพน์
ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนได้เผยแพร่ Pine code นี้เป็นโอเพนซอร์สไลบรารีเพื่อให้ Pine โปรแกรมเมอร์คนอื่นในชุมชนของเราสามารถนำไปใช้ซ้ำได้ ต้องขอบคุณผู้เขียน! คุณสามารถใช้ไลบรารีนี้ในแบบส่วนตัวหรือในการเผยแพร่แบบโอเพนซอร์สอื่น ๆ แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน