I’m trying to highlight a specific day of the week and I want the day to be user definable. I’m getting errors related to type casting but don’t know how to fix it. THis is my code:
enum days
monday = "Monday"
tuesday = "Tuesday"
wednesday = "Wednesday"
thursday = "Thursday"
friday = "Friday"
aDay = input.enum(days.monday, 'Day', group = 'A')
bgcolor((dayofweek == aDay) ? color.rgb(0, 0, 0, 75) : na, title = "A")