Tradingview 对 Webhook URL 的警报

发布于 2025-01-15 02:23:21 字数 600 浏览 4 评论 0原文

我在 Tradingview 平台中有一个 pine 脚本策略,我想问一下,是否可以直接从策略脚本向 webhook URL 发送警报消息,而不是通过警报(当满足策略的重试/退出条件时)

代码是这样的:

bullish = tk_cross_bull and cs_cross_bull and price_above_kumo
bearish = tk_cross_bear and cs_cross_bear and price_below_kumo


strategy.entry("Long", strategy.long, when=bullish and long_entry)
strategy.entry("Short", strategy.short, when=bearish and short_entry)

strategy.close("Long", when=bearish and not short_entry)
strategy.close("Short", when=bullish and not long_entry)

所以,当满足看涨/看跌条件时 ->进入/退出发生后,

如何添加并提醒向 Webhook 发送信息?

我的谢谢。

I have a pine script strategy in Tradingview platform and I would like to ask, is it possible to send alert message directly from strategy script to webhook URL, not via Alerts (when etry / exit conditions of the strategy are met)

code is like this:

bullish = tk_cross_bull and cs_cross_bull and price_above_kumo
bearish = tk_cross_bear and cs_cross_bear and price_below_kumo


strategy.entry("Long", strategy.long, when=bullish and long_entry)
strategy.entry("Short", strategy.short, when=bearish and short_entry)

strategy.close("Long", when=bearish and not short_entry)
strategy.close("Short", when=bullish and not long_entry)

So, when bullish / bearish condition is met -> entry / exit happens,

How to then add and alert to send info to Webhook?

My thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

千寻… 2025-01-22 02:23:21

不,你不能那样做。为此,您必须使用警报。

No, you cannot do that. You must use alerts for this purpose.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文