当条关闭或低于枢轴点打开时,松文脚本信号

发布于 2025-01-29 09:22:23 字数 322 浏览 4 评论 0原文

我已经在Pine脚本中编码了一个枢轴点,但是现在我想添加S2信号,该信号表明:

  1. 一个栏位于第一个枢轴点栏的开放式上方(用于上升趋势),并且
  2. 一个栏位于第一个杆的下方。 Pivot Point Bar(对于下降趋势)

可能需要几个条,因此我认为Bar_index会有所帮助,但我无法弄清楚(因为我不是编码器)。每当有一个新的枢轴点时,检查再次开始。

如果有人能提供帮助,那就太好了。

[“]

I have coded a pivot point in pine script but now I want to add the S2-signal that indicates that:

  1. a bar closes ABOVE the OPEN of the first pivot point bar (for an UPtrend) and
  2. a bar closes BELOW the OPEN of the first pivot point bar (for an DOWNtrend)

This could take a few bars so I'm thinking a bar_index would be helpful but I can't figure it out (because I'm not a coder). Whenever there's a new pivot point, the check starts again.

If someone could help that would be great.

[Plot]

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

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

发布评论

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

评论(1

云朵有点甜 2025-02-05 09:22:23

如果我明白您需要什么:

trendup = close[1] > close and close > pivot point 
trenddw = close[1] < close and close < pivot point

但是没有一条源代码就很难理解

if i understand what's you need:

trendup = close[1] > close and close > pivot point 
trenddw = close[1] < close and close < pivot point

But without a piece of source code is difficult understand

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