Show Bar script identifying every Friday on daily chart

Hi Optuma, I’ve done various searches in scripting on how to create a show bar script to highlight every Friday on a daily chart. I believe I might have asked for this before, but I can’t find it anywhere in scripting, nor in my profile and I keep wanting to know what day I’m on relative to weekly chart.

Hi,

There is a script function called DAYOFWEEK() you can use to do this. Each day Monday - Sunday is assigned a number, for Friday this number is 6. So the script would be:

DAYOFWEEK() == 6

More information: https://help.optuma.com/kb/faq.php?id=1099

Ex4

Brilliant Matthew, thanks so much.