【问题标题】:Why can I use this webhook in Postman and not in TradingView alerts?为什么我可以在 Postman 中而不是在 TradingView 警报中使用这个 webhook?
【发布时间】:2023-01-07 19:06:49
【问题描述】:

当我使用 POSTMAN 发送此 POST 时,文本“Hello World”被添加到 Google 表格中。

https://script.google.com/macros/s/AKfycbwXdAoAnggrOL2NXhyIi7L2uQKKv4bmZjg_Z67VYi6jUuNp5HmiTw78ARGVZWSHYaM7/exec?gid=2061&Message=Hello World



我尝试将其用作 TradingView 中的 webhook URL:

https://script.google.com/macros/s/AKfycbwXdAoAnggrOL2NXhyIi7L2uQKKv4bmZjg_Z67VYi6jUuNp5HmiTw78ARGVZWSHYaM7/exec?

并在 Pine 脚本警报功能中添加 gid 和 Message 作为消息但没有成功。 我尝试了很多不同的方法,但没有任何内容写入 Google 表格。

if DiffCloseMA > 0
    alert ("gid=2061&Message=Buy", alert.freq_once_per_bar)
else if DiffCloseMA < 0
    alert ("gid=2061&Message=Sell", alert.freq_once_per_bar)

有人解决过类似的问题吗? 谢谢!

【问题讨论】:

    标签: pine-script alert webhooks pine-script-v5 tradingview-api


    【解决方案1】:

    完成 POST 的 TradingView 服务器无权发布到您的 google 表格。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-01-05
      • 1970-01-01
      • 2010-09-16
      • 2018-03-19
      • 1970-01-01
      • 1970-01-01
      • 2021-01-30
      相关资源
      最近更新 更多