Boolean Input
FXC911 – Forex & Crypto News & Insights
Goals
Pine Script Code
//@version = 5
indicator("Input Boolean")
value = input.bool(defval = true, title = "Change Color: Yes/No")
myColor = if(value == true)
color.green
else
color.red
plot(close, color = myColor)Code Output

Explanation
Keywords
Visit me on:
Last updated