Hi – am new here (and to coding)
Does anyone know how (or if is even possible) to color a candle on a specific day-of-the week a particular color please?
EG: want to make every FRIDAY turn a specific color regardless of whether it’s an up/down day
Many thanks in advance, and good trading to you all !!
Thanks
D
Run this indicator in the price chart.
Changing the value of ‘opendayofweek’ sets the day, 0 – 6.
Changing the RGB values sets the colour, 0-255.
The indicator should overwrite the price candle’s with the day/colour chosen.
// day
if opendayofweek = 5 THEN // smtwtfs , 0 - 6
// colour
r = 255 // r,g,b,a 0 - 255
g = 0
b = 255
a = 255
drawcandle(open,high,low,close)coloured(r,g,b,a)bordercolor(255,255,255,175)
endif
return
Here you have an example:
if DayOfWeek = 5 THEN
DRAWCANDLE(open, high, low, close) coloured("fuchsia")
ENDIF
return
thank you so much Druby and Ivan – i really appreciate your help with this – thanks !!