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.
我有一个可以交叉和交叉的指标。它显示为背景颜色。目前它显示所有十字架。
我可以用什么 pinescript 编辑它,所以它只会显示最后一个?
非常感谢!
使用show_last参数:
show_last
//@version=5 indicator("My Script", overlay=true) sma = ta.sma(close, 14) cond = ta.cross(close, sma) bgcolor(cond ? color.teal : na, show_last=1)