【发布时间】: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