如何找到条件的酒吧
我想找到符合与当前栏有关的某些条件的栏(栏索引)。 例如,在所有最低价格大于当前最低价格(插图上的黄色矩形)的所有条中,我想获得与当前栏(蓝色箭头)的最低(或最高)价格差的栏。
我尝试使用ta.barssince()
和类似的功能。但是在我看来,需要某种“系列系列”类型来完成我想要的事情。
是否可以使用Pine脚本进行此类操作?还是使用循环是唯一的方法?
I want to find bar (bar index) which meets some condition related to the current bar.
For example, among all bars which minimum prices are greater than current minimum price (yellow rectangle on the illustrations) I want to get bar with minimum (or maximum) price difference with current bar (blue arrows).
I tried to use ta.barssince()
and similar funtions. But it seems to me that some sort of "series of series" types is needed to do what I want.
Is it possible to do such things with pine script? Or is using loops the only way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 pine脚本文档:
第二种情况只是我的。
I've found the answer to my question in the pine script documentation:
The second case is just mine.