如何计算时间范围内事件发生多少次? V5

发布于 2025-01-26 10:50:12 字数 386 浏览 3 评论 0原文

正如屏幕截图所示,我正在尝试检测VWAP篮板,如果您可以看到,图像的右侧有一个巨大的看跌突破。我的理论是,如果我能计算出弹跳发生多少次的数量(结合VWAP的趋势),我就可以预测潜在的突破。也是看涨的背景。

是否有一个函数可以进行计数?还是脚本化解决方法的任何想法?

我可以打开市场时刻,这可能是计数的最佳开始。无法制作ta.cum()工作。

As the screenshot shows, I am trying to detect VWAP rebounds and if you may see, there's a huge bearish breakout on the right side of the image. My theory is, if I could count the number of how many times a bounce occurred then (combining with the trend of VWAP) I could be able to predict potential breakouts. Also in bullish context.

Is there a function to do this counting? Or any idea of a scripted workaround?

I can get the moment of Market Open, it could be the best start of the counting. Couldn't make ta.cum() work.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜唯美灬不弃 2025-02-02 10:50:12

您可以使用它来计算在给定长度上您的病情真实的次数:

cnt = math.sum(cond ? 1 : 0, len)

You can use this to count how many times your condition was true in the given length:

cnt = math.sum(cond ? 1 : 0, len)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文