PINE脚本 - 警报功能被调用但未发送警报
我有一个在每个刻度上都在计算的策略,并且在2个单独的语句中,它在2个单独的2个警报中都有2个警报。这两个语句都是真实的(策略在Pine中通常功能,并以正确的时间和价格显示标签。
我简化了条件,并试图将错误重现为无用,它会产生2个警报:
arter(“ 1”,arter.freq_once_per_bar_close)
如果barstate.isconfirmed
erall(“ 2”,arter.freq_once_once_per_bar)
我的问题:我的问题:我缺少一些基本的东西吗?我有一个专业帐户,其中10个策略正在并行运行,每条栏关闭了10个警报“ 1” -S,但有时在发送10个以上的警报时会触发“ 2”。 我怀疑barstate.isconfirned and calculate_on_every tick彼此不喜欢,但是简化的版本效果很好。
感谢您的帮助!
I have a strategy that's being calculated on every tick and it has 2 alerts below 2 separate if statements. Both of these statements come true (strategy functions normally within pine, and displays label.new -s at correct time and price), yet only the first alert is sent.
I have simplified the conditions and tried to reproduce the error to no avail, it produced 2 alarms as it should:
alert("1",alert.freq_once_per_bar_close)
if barstate.isconfirmed
alert("2",alert.freq_once_per_bar)
My question: is there something fundamental I'm missing? I have a PRO account and 10 of these strategies are running in parallel, producing 10 alert "1" -s every bar close, but sometimes alert "2" is triggered when there should be 10+ alerts sent out.
I suspected barstate.isconfirmed and calculate_on_every tick doesn't like each other, but the simplified version works just fine.
Thanks for the help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论