Show market sessions by candlestick color

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30283 quote
    dakaododakaodo
    Participant
    Junior

    Hi, all. This is my first meaningful foray into PRC indicators. I wanted an at-a-glance way to know which market session is active, esp when skimming through historical price going back 1000 or 10,000 units.

    As written, this crude indicator uses my hard-coded local time zone to draw candlesticks. All times are in GMT -6 (Central US Time).

    1800 to 0100: lime green for Tokyo session open until…

    0100 to 0700: cyan blue for Frankfurt/London open until…

    0700 to 1600: orange for NY open until…

    1600 to 1800: gray for overnight (Sydney)

    Current problems:

    • color hard-coded. Will try to figure out letting users select.
    • precise dojis would show up with random up/down color; as currently written they don’t show up at all. (probably easy fix; until then, just print the indicator over regular candles to get the dojis showing)
    • how to cleanly define variables or code for user’s local time (whether relative to GMT or simply user-defined local time corresponding to the above session start times)
    • slightly wonky behavior at end of session changing to next session open — color sometimes runs over wrong session. As coded, this was my best kludge.
    mkt-session-colors-1490821117cp84l1.jpg mkt-session-colors-1490821117cp84l1.jpg
    #30372 quote
    NicolasNicolas
    Keymaster
    Legend

    Very nice try! In order to help, it would be great to share your code, let’s build it together 🙂

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

Show market sessions by candlestick color


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
dakaodo @dakaodo Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
9 years, 6 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 03/30/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...