I'm not sure how to achieve this and I'm a newbie
Posted: Fri Feb 10, 2023 8:15 pm
Hi everyone,
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.
Can you please help me with the proper correction/code?
Thank you in advance
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