Tradingview 对 Webhook URL 的警报
我在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,你不能那样做。为此,您必须使用警报。
No, you cannot do that. You must use alerts for this purpose.