如何停止在交易视图上的松树脚本中重复标签?

时间:2021-04-16 22:08:18

标签: pine-script

请看下面的图片示例,我的情节如下:

plotshape(Long, title="entry", text="Buy ⇡", textcolor=color.green, style=shape.labelup, location=location.belowbar, color=color.black, transp=0, size=size.small, offset=0)

plotshape(Short, title="exit", text="Sell ⇣", textcolor=color.red, style=shape.labeldown, location=location.abovebar, color=color.black, transp=0, size=size.small, offset=0)

我只需要显示每个标签的第一个实例,希望我的警报也只在那些标签上触发,但我一生都无法弄清楚它们为什么会重复!任何建议表示赞赏。

example

0 个答案:

没有答案