title: Highest high in a range pine script
body: <p>I am trying to label and change the color of the highest bar in the range. Instead, it paints all bars with the color and does not plot the label on the highest bar but on the last bar?</p>
  <pre><code>//@version=5
  indicator(title='Label', overlay=true)
  
  highestHigh = ta.highest(high, 20)
  lowestLows = ta.lowest(low, 20)
  
  PmeU = if highestHigh
      label.new(bar_index, na, &quot;Highest pirce was: &quot; + str.tostring(highestHigh), color=color.green, textcolor=color.black, style=label.style_label_down, yloc=yloc.abovebar)
  
  label.delete(PmeU[1])
  
  barcolor(highestHigh ? color.blue : na)
  </code></pre>