Colour time zone

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #200248 quote
    JSHJSH
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 robertogozzirobertogozzi
4 years ago.

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