I'm currently working on this code to make the bars turn grey at a specific time (from 17:00 to 18:00).
This is the code, and it's not working for me.
Code: Select all
study("Grey Bars")
time = time("1700", "Europe/London")
is_grey = (time >= 1700 and time <= 1800)
barcolor(color = is_grey ? #808080 : an)
Thank you in advance