如何解决如何在 pinescript 上编写动态警报?
我正在尝试为我的交易视图策略创建动态警报,但是当我输入下面的代码时。我收到一条错误消息,内容为:
输入“入场价格“{{strategy.order.price}}”的语法错误
这是代码:
alert_msg_long =
"{{strategy.order.id}} : {{ticker}}"
"Entry price " {{strategy.order.price}}"
"Stop loss = {{long_stop_level}}"
"Move SL to breakeven when price hit : {{take_profit_long}}"
"Timeframe : {{interval}}"
"###################\n\n"
"Trailing Stop:"
"Activation Price = {{take_profit_long}}"
"Callback rate = 5%"
"Mark Price"
alert_msg_short =
"{{strategy.order.id}} : {{ticker}}"
"Entry price " {{strategy.order.price}}"
"Stop loss = {{long_stop_level}}"
"Move SL to breakeven when price hit : {{take_profit_long}}"
"Timeframe : {{interval}}"
"###################\n\n"
"Trailing Stop:"
"Activation Price = {{take_profit_long}}"
"Callback rate = 5%"
"Mark Price"
strategy.entry(id="Long Entry ",long=true,alert_message = alert_msg_long)
strategy.entry(id="Short Entry ",long=false,alert_message = alert_msg_short)
请大家帮帮我。谢谢。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。