Are you sure you have only 1 indicator applied on price that color background?
Pretty certain. When the programme is first launched, the indicator is okay, (a few errors). When scrolling through the instruments it all turns very messy with all sorts of days highlighted.
See below. Current setup and current code. Perhaps the code is still incorrect?
HI Guys,
anymore thoughts on this at all? Seems like a very simple indicator to build and have working.
Does anyone have suggestions for alternative code to get this working?
Really appreciate the help.
Please tell me what symbol and I’ll try to give it a look today. Thanks.
Hi Nicolas,
I presume you want to know what instruments I’m trying to apply this to?
Full future on a range of exchanges. It’s important as it’s allowing me to see when data for the Commitments of traders report was collected and what day that data is first tradeable.
See attached. Thanks again.
This is the code I tested and it seems ok.
a = dayofweek=2
b = dayofweek=3
if a then
backgroundcolor(133,193,126,85)
elsif b then
backgroundcolor(223,109,20,85)
else
backgroundcolor(0,0,0) //black
endif
return
But I saw some glitches too, not every-time though. Please tell me how it succeed on your side. Since 10.3 is still in Beta testing, maybe we have spotted here something to be fixed.
HI Nicolas,
I think you’ve solved this thank you. I think the last command “Else” filling all the blanks in was needed to make this work correctly.
Thanks again.