PINE脚本 - 警报功能被调用但未发送警报

发布于 2025-01-25 19:52:42 字数 440 浏览 2 评论 0原文

我有一个在每个刻度上都在计算的策略,并且在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文