如何使用Webhook Trading View(Pine脚本)获取价格?
我的代码:
alert('{"content": "BTC SHORT {{close}}"}', alert.freq_once_per_bar)
我明白了:
BTC SHORT {{close}}
但是我需要这样的东西:
BTC SHORT 27455.3
My code:
alert('{"content": "BTC SHORT {{close}}"}', alert.freq_once_per_bar)
I got this:
BTC SHORT {{close}}
But i need something like this:
BTC SHORT 27455.3
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于您使用的是
alert()
函数,因此可以使用str.tostring()
函数将数字转换为字符串。Since you are using the
alert()
function, you can use thestr.tostring()
function to convert a number into a string.