Show Bar script identifying every Friday on daily chart

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #59881
    AvatarTonia
    • Topics: 8
    • Replies: 7
    • Posts: 15

    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
    MatthewMatthew
    • Topics: 5
    • Replies: 293
    • Posts: 298

    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
    AvatarTonia
    • Topics: 8
    • Replies: 7
    • Posts: 15

    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

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close