I tried using label.delete function:
if (longsignal and showpos) l3 = label.new(time + 10*dt, low, xloc=xloc.bar_time, text = \'SL=\'+tostring(longsl), color=