跳转到主要内容

从您的服务器发送信号

本指南介绍如何使用您自己的 IP 设置机器人,并从您自己的服务器发送信号。

作者:Jacob

您不仅可以通过 TradingView 向 WunderTrading 机器人发送信号,也可以直接从您自己的服务器发送信号。

为此,请前往 Settings(设置),然后选择 Bot Server IP

接下来,点击 Add New(新增),并输入您的服务器 IP 地址。

添加并审核通过 IP 地址后,您就可以使用该 IP 地址将机器人连接到自己的服务器。

要完成设置:

前往 Signal Bot 页面并点击 Create Bot(创建机器人)

在 Signal Bot 的 Bot start condition(机器人启动条件) 参数中选择 API request(API 请求)

机器人设置格式:Form

如果您的机器人使用固定参数,例如 Take Profit(止盈)、Stop Loss(止损)等,则应选择 Bot setting format(机器人设置格式)— Form Settings(表单设置)

设置

根据您的策略在表单中填写相关参数。填写完成后,点击 Create Bot(创建机器人) 按钮。

警报

在警报部分,请确保输入您从服务器传递过来的正确注释(Comments)。同时,请确保 Webhook URL 设置为:

https://wtalerts.com/bot/custom

机器人设置格式:JSON

设置

如果选择 JSON 格式,您就可以在每次发送新信号时动态传递每个变量。该方式适用于参数并非固定的情况。

以下是您应传递到 Webhook 的 JSON 代码示例:

{
"code": "<Your Enter Long/Short code>",
"amountPerTrade": "0.1",
"amountPerTradeType": "percents",
"orderType": "limit",
"amountPerTradeMultiplier": 2.5,
"leverage": 2.5,
"priceDeviation": {
"deviation": 0.01,
"deviationType": "percents",
"priceType": "last"
},
"timeInForce": 180,
"takeProfits": [
{
"priceDeviation": 0.1,
"portfolio": 0.5
},
{
"priceDeviation": 0.5,
"portfolio": 0.5
}
],
"stopLoss": {
"priceDeviation": 0.5
},
"moveToBreakeven": {
"activationPriceDeviation": 0.005,
"executePriceDeviation": 0.003
},
"trailingStop": {
"activation": 0.05,
"execute": 0.005
},
"keepPositionOpen": true,
"reduceOnly": true,
"placeConditionalOrdersOnExchange": false,
"dca": {
"extraOrderCount": 10,
"extraOrderDeviation": 0.005,
"extraOrderVolumeMultiplier": 1.1,
"extraOrderDeviationMultiplier": 1.1,
"takeProfitsBasedOn": "average_price",
"stopLossBasedOn": "entry_order",
"applyDcaForFirstSafetyOrder": false
}
}

警报

Alerts(警报) 部分,请确保填写与您从服务器发送的信号中传递的 Comments(注释) 完全一致的内容。

同时,请确保 Webhook URL 设置为:

https://wtalerts.com/bot/custom
这是否解答了您的问题?