Colour time zone

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #200248 quote
    JSH
    Participant
    New

    Hi

    I would like to display on a chart my trading hours as a coloured time zone. Eg 8 am till 4 pm Monday to Friday. Could someone help.

    Thanks

    John

    #200296 quote
    robertogozzi
    Moderator
    Master

    There you go:

    IF OpenDayOfWeek >= 1 AND OpenDayOfWeek <= 5 THEN
       IF OpenTime >= 080000 AND OpenTime <= 160000 THEN
          BackgroundColor(0,128,0,20)
       ELSE
          BackgroundColor(255,255,255,255)
       ENDIF
    ENDIF
    RETURN
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Colour time zone


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
JSH @jsh Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
3 years, 5 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 09/06/2022
Status: Active
Attachments: No files
Logo Logo
Loading...