Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 pine-script中,从最后一个小节中lowest(x)获取最低值。x如何指定范围?我想在酒吧之间current-n获得x最低
lowest(x)
x
current-n
可能有更好的方法来做到这一点,但我会这样做。
获取前 10 个柱的最低收盘价。
lowestlast10 = lowest(close,10)
然后使用历史参考 [] 查看 20 柱前的值。这将给我从 20 根柱线开始的 10 根柱线的最低收盘价。所以最低收盘价从 20 到 30 条回来。
lowestbetwen20_30 = lowestlast10[20]