I want to write a script that changes the color of the bars when RSI is high or low, which it seems there are already some of those on here to take a look at. Those scripts change the color of the bars all the time but I would like to change the colors under specific circumstances then back to green/red with normal tick information. Then I plan to paly with adding more variables than RSI to come up with an indicator.
Is there a way to set the bars back to the default green/red when some variable is not met/true? It seems like Color.default doesn't do it and the bars end up universally the same color. Do I have to code the standard green/red fill on higher/lower close and add that to the script or is it a simple default value?
Is there a way to set the bars back to the default green/red when some variable is not met/true? It seems like Color.default doesn't do it and the bars end up universally the same color. Do I have to code the standard green/red fill on higher/lower close and add that to the script or is it a simple default value?