'Checkbox toggle not matching input
Is it no longer possible to toggle a "checkmark" input box to match a coded switch? I believe we used to be able to do this and have the checkmark box toggle on/off accordingly.
For example:
var A = input(true,title="A")
var B = input(false,title="B")
if B == true
A := false
else
if A == true
B := false
inputColor = if A == true
color.white
else if B == true
color.red
else
na
plot(sma(close,21),title="21 sma",color=inputColor)
In this example the switch is functional in changing the plot color parameter but the checkbox doesn't toggle on and off accordingly.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|