I'm trying to change which plots are displayed based on string options, but I'm getting the following error:
Add to Chart operation failed, reason: line 8: Invalid argument 'display' in 'plot' call. Possible values: [display.none, display.all]
//@version=5
// doesn't work
indicator("My script")
x = input.string(title="x", defval="one", options=["one","two"])
plot(close, display= x == "one" ? display.all : display.none)
// works
indicator("My script")
x = "one"
plot(close, display= x == "one" ? display.all : display.none)