dokang

TradingHook

dokang Actualizado   
Library "TradingHook"
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) password that you set in .env file.
    amount: (float) amount. If not set, your strategy qty will be sent.
    order_name: (string) 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) password that you set in .env file.
    percent: (string) what percentage of your quantity you want to sell.
    order_name: (string) order_name. The default name is "Order".
  Returns: (string) A string containing the formatted webhook message.

You can use TradingHook WebServer open source code in github(github.com/jangdokang/TradingHook)
Notas de prensa:
entry_message(password, amount, leverage, order_name)
  Make a Entry Message for TradingHook.
  Parameters:
    password: (string) password that you set in .env file.
    amount: (float) amount. If not set, your strategy qty will be sent.
    leverage: (int) leverage. If not set, your leverage doesn't change.
    order_name: (string) order_name. The default name is "Order".
  Returns: (string) A string containing the formatted webhook message.

close_message(password, percent, order_name)
  Make a close message for TradingHook.
  Parameters:
    password: (string) password that you set in .env file.
    percent: (string) what percentage of your quantity you want to close.
    order_name: (string) order_name. The default name is "Order".
  Returns: (string) A string containing the formatted webhook message.
Notas de prensa:
v3

Now you can make close order by amount (or percent). Be careful to use!

close_message(password, percent, amount, order_name)
  Make a close message for TradingHook.
  Parameters:
    password: (string) password that you set in .env file.
    percent: (string) what percentage of your quantity you want to close.
    amount: (float) quantity you want to close.
    order_name: (string) order_name. The default name is "Order".
  Returns: (string) A string containing the formatted webhook message.
Notas de prensa:
Support BITGET exchange

알고리즘 트레이딩, 파인스크립트, 자동매매를 다루고 있습니다

[파인스크립트 무료강의]
gojdk.com/pinescript-start

[파인스크립트 with 자동매매]
gojdk.com/pinescript-tradinghook

[유튜브]
gojdk.com/youtube

[디스코드]
gojdk.com/discord
Biblioteca Pine

Siguiendo el verdadero espíritu de TradingView, el autor de este código de Pine lo ha publicado como biblioteca de código abierto, para que el resto de programadores de Pine de esta comunidad puedan volver a utilizarlo. ¡Un hurra por el autor! Puede utilizar esta biblioteca de forma privada o en otras publicaciones de código abierto, pero debe ceñirse a lo establecido en las Normas internas.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar esta biblioteca?

Copie la siguiente línea y péguela en su script.