KarlEs
KarlEs

Reputation: 71

How to get a plot shape function as user input?

How can I get a plotshape function as user input so that one can manually turn on / off visual effects from the chart?

Upvotes: 1

Views: 237

Answers (1)

Dave
Dave

Reputation: 865

Example below

show = input.bool(false, title = "Show?")
plotshape(show ? close : na, title = "Close", style = shape.labelup, text = "Close", size = size.normal, location = location.belowbar)

Upvotes: 3

Related Questions