i write pine with Tradingview
and each time there is a new bar my text is being duplicated. i need the label to move to the new bar only.
//@version=4
study("My Script")
plot(close)
label.new (barstate.islast ? time : na,close,text="test",xloc=xloc.bar_time)