thursdaycolor
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © aadityamallick

//@version=5

indicator(title='THURSDAY', overlay=true)
// title is the heading of the study, overlay will make the changes over the price line i.e. on the main chart. By using overlay we are not required to use the code "plot"
c = color.green
// defining a variable with color to use in the upcoming code
bgColor = dayofweek == dayofweek.thursday ? color.new(c, 90) : color.new(color.white, 80)
bgcolor(color=bgColor, transp=90)
//usually the code the the one just before this line but we are using an condition with the bgcolor. It will check if the day of the week is equals to thursday the it will define a color to it which is coming from color.new code.
//then ":" has been put which will show say that if the condition is not being fullfilled then which color do i place in the chart 

