Friday Close and Monday Open Gap

Forums ProRealTime English forum ProBuilder support Friday Close and Monday Open Gap

Viewing 15 posts - 1 through 15 (of 15 total)
  • #211198

    Hi Guys

    How to draw a horizontal shade between price close on Friday at 8 am and Open on Monday 10 am. This is Au time that my charts are in.

     

    Any help would be great

    #211222

    maybe you can draw a Rectangle ?

    #211227

    There you go:

    1 user thanked author for this post.
    #211241

    I added it to the chart but it did not draw anything?

    #211242

    Hi,

    Not knowing what TF you used and how much history you loaded, these are hypothetical items to check, just in case:

    – is it a timeframe compatible, meaning having candles open/close timing compatible with these coded times? (so… not x ticks, not daily, etc…)

    – and if yes, are there enough units loaded to have the first point last friday at 8 part of available history? (for example, if 1mn TF, having 10000 rather than only 1000 units)

     

    (PS: from moderation point of view, moving the topic from French forum to English forum in a few minutes, thanks)

    #211247

    Thanks for the code. I am using it in 5m chart with 10K bars loaded, so its definately not working. I am sure something minor is missing

    #211248

    Another possibility comes to mind: when you say “added to the chart”, do you mean inside the price window, or does it appear as a separate window at the bottom of the chart?

    #211250

    Yes off course price window

    #211255

    Ok i could not see it due to colour its drawing a line. How can I have it draw a rectange that extends to current price just like line?

    #211257
    JS
    1 user thanked author for this post.
    #211267

    Horizontal Rectangle, like pivot lines. ITs because, if you load this indicator in 5m or 1 m chart, you cannot see it without scrolling all the way to Monday. thanks

    #211281

    Hi Roberto

    Is it possible to have hortizontal rectange accross rather than a segment?

     

    thanks

    PJ

    #211299

    This is a modified version of https://www.prorealcode.com/topic/friday-close-and-monday-open-gap/#post-211257:

    20 is the transparency attribute (0=invisible, 255=max.visibility).

    2 is the line thickness (1 to 5).

     

    1 user thanked author for this post.
    #211306

    Thanks but it looks bit odd in the chart. It seems to be connecting all open and close of new week. I was expecting it to have individual shades for DClose of Saturday (AEST) and DOpen (Monday). Is it not possible to have a line that extend to current price area?

    #211317

    This version gets rid of some mess (when uncommenting line 1):

    Of course you will have to change those times, as they are CET (EU) times.

    DCLOSE, DOPEN, etc… match the broker’s day start (which is now at 01:00, not 00:00). This means that 00:00 are still visible, but with OpenDayOfWeek they belong to the previous day, despite the date being correct.

Viewing 15 posts - 1 through 15 (of 15 total)

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