【发布时间】:2022-12-01 20:28:05
【问题描述】:
It appears that through thealert()function you can code a message to be sent, but what about the webhook?
I would like to usecapitalise.ai, and they require to set in the alert both a webhook (https://tvwebhook.capitalise.ai) and a message, for example {"alertId": "b2f0d9f2-a848-48e4-8218-70350b24xxxx"} which will trigger a specific action, for example to buy or to sell.
Fact is, if I set in the UI an alert for a strategy I have created in Tradingview, there will be only one alert for all the possible events, and therefore only one message, but then how can I tell Capitalise.ai if the alert is for selling or buying?
I could do something like
if enterLong
alert("message 1))
else if enterShort
alert("message2"))
But then where do I put the webhook?
Thank you
【问题讨论】:
-
did you manage to resolve this? I am looking for a similar solution via pinescript.
-
hi, any news about how to solve this? I'm also looking something similar. thx
标签: webhooks pine-script pinescript-v5