Show Bar script identifying every Friday on daily chart

Optuma Forums Optuma Scripting Show Bar script identifying every Friday on daily chart

  • This topic has 2 replies, 2 voices, and was last updated 1 year ago by Tonia.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #59881
    Tonia
    • Topics: 10
    • Replies: 12
    • Posts: 22

    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.

    #59882
    Matthew
    • Topics: 5
    • Replies: 430
    • Posts: 435

    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:

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

    Ex4

    #59883
    Tonia
    • Topics: 10
    • Replies: 12
    • Posts: 22

    Brilliant Matthew, thanks so much.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest