Show market sessions by candlestick color

Forums ProRealTime English forum ProBuilder support Show market sessions by candlestick color

Viewing 2 posts - 1 through 2 (of 2 total)
  • #30283

    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.
    #30372

    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)

Create your free account now and post your request to benefit from the help of the community
Register or Login