TradersPostInc

WebhookMessageDev

Library "WebhookMessageDev"
The webhook message library provides several functions for building JSON payloads

method buildWebhookJson(msg)
  Builds the final JSON payload from a webhookMessage type.
  Namespace types: webhookMessage
  Parameters:
    msg (webhookMessage): (webhookMessage) A prepared webhookMessage.
  Returns: <string> A JSON Payload.

method buildTakeProfitJson(msg)
  Builds the takeProfit JSON message to be used in a webhook message.
  Namespace types: takeProfitMessage
  Parameters:
    msg (takeProfitMessage): (takeProfitMessage)
  Returns: <string> A JSON takeProfit payload.

method buildStopLossJson(msg)
  Builds the stopLoss JSON message to be used in a webhook message.
  Namespace types: stopLossMessage
  Parameters:
    msg (stopLossMessage): (stopLossMessage)
  Returns: <string> A JSON stopLoss payload.

webhookMessage
  Final webhook message.
  Fields:
    ticker (series string)
    action (series string)
    sentiment (series string)
    price (series float)
    quantity (series int)
    takeProfit (series string)
    stopLoss (series string)

takeProfitMessage
  Take profit message.
  Fields:
    limitPrice (series float)
    percent (series float)
    amount (series float)

stopLossMessage
  Stop loss message.
  Fields:
    type (series string)
    percent (series float)
    amount (series float)
    stopPrice (series float)
    limitPrice (series float)
    trailPrice (series float)
    trailPercent (series float)

Pine kitaplığı

Gerçek TradingView ruhuyla yazar, topluluğumuzdaki diğer Pine programcılarının yeniden kullanabilmesi için bu Pine kodunu açık kaynaklı bir kitaplık olarak yayınladı. Yazarın eline sağlık! Bu kitaplığı özel olarak veya diğer açık kaynaklı yayınlarda kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Kullanım Koşulları tarafından yönetilir.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.

Bu kütüphaneyi kullanmak ister misiniz?

Metni panoya kopyalayın ve komut dosyanıza yapıştırın.