PINE LIBRARY
TradingHook_Library

Library "TradingHook_Library"
This library is a client script for making a webhook signal formatted string to TradingHook webhook server.
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.
This library is a client script for making a webhook signal formatted string to TradingHook webhook server.
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.
Biblioteca do Pine
No verdadeiro espirito do TradingView, o autor desse código Pine o publicou como uma biblioteca de código aberto, para que outros programadores Pine da nossa comunidade possam reusa-los. Parabéns ao autor! Você pode usar essa biblioteca privadamente ou em outras publicações de código aberto, mas a reutilização desse código em publicações é regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Biblioteca do Pine
No verdadeiro espirito do TradingView, o autor desse código Pine o publicou como uma biblioteca de código aberto, para que outros programadores Pine da nossa comunidade possam reusa-los. Parabéns ao autor! Você pode usar essa biblioteca privadamente ou em outras publicações de código aberto, mas a reutilização desse código em publicações é regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.