I have created a sample script. When it executes, the label uses the default color. Scenario 1) If I then load the input dialog and change the color in the color picker, the label changes color. Without closing the color picker, if I change the color again, the label does not reflect the new color. Scenario 2) If I reset the defaults and change the color. The color changes in the label. If I close the dialog and re-open it and change the label to another color, despite the color picker changing to the new color, the label doesn't update to the latest color. I am totally stumped. Any thoughts or suggestions appreciated
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at .0/
// © geester
//@version=6
indicator("My script", overlay = true)
color testColor = input.color(color.new(color.white, 50), "Test Color")
if barstate.islast
newLabel = label.new(bar_index,high,yloc.abovebar,style = label.style_none,size = 10,text_font_family = font.family_monospace)
newLabel.set_text("Hello World!")
newLabel.set_textcolor(testColor)