It appears that through the alert() function you can code a message to be sent, but what about the webhook?
我想用资本化.ai,并且他们需要在警报中设置一个 webhook (https://tvwebhook.capitalise.ai https://tvwebhook.capitalise.ai)和一条消息,例如 {"alertId": "b2f0d9f2-a848-48e4-8218-70350b24xxxx"},它将触发特定操作,例如买入或卖出。
事实是,如果我在 UI 中为在 Tradingview 中创建的策略设置警报,则所有可能的事件只会有一个警报,因此只有一条消息,但是我如何告诉 Capitalise.ai 如果该警报是为了卖还是买?
我可以做类似的事情
if enterLong
alert("message 1))
else if enterShort
alert("message2"))
但是我应该把 webhook 放在哪里呢?
谢谢
您的代码必须包含如下内容:
alert(jsondata, alert.freq_once_per_bar)
jsondata 是 json 格式的字符串。
然后您的 jsondata(您的消息)将被发送到您的 webhook。
To create the weebhook, look in the Alert Menu from your Tradingview Chart :
Choose the nae of your strategy in the Condition (Bybit Bot in the screenshot),
and create a 'Open-ended alert' alert :
Then go on the notification menu to give the url for the webhook :
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)