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.
Dans le plus pur esprit TradingView, l'auteur a publié ce code Pine en tant que bibliothèque open-source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur! Vous pouvez utiliser cette bibliothèque en privé ou dans d'autres publications à code source ouvert, mais la réutilisation de ce code dans une publication est régie par nos Règles.
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.