请看下面的图片示例,我的情节如下:
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)
我只需要显示每个标签的第一个实例,希望我的警报也只在那些标签上触发,但我一生都无法弄清楚它们为什么会重复!任何建议表示赞赏。