Horizontal Line Candle Open and Time

Forums ProRealTime English forum ProBuilder support Horizontal Line Candle Open and Time

Viewing 8 posts - 1 through 8 (of 8 total)
  • #63308

    Hello Forum Members,

    I would like to draw a horizontal line at the open of the 08:00 candle from the previous day, using an M5 timeframe.

    I can see that this might be done by counting back bars from the current time, but I suspect that there’s probably a more elegant solution.

    Can anyone suggest how this can be done?

    Thank You

    #63310

    Could you test this code? I think it should works.

     

    #63311

    Thanks for the quick reply.

    Unfortunately this code doesn’t draw a line for me.

     

    #63312

    Change line 7 as follows

     

    #63314

    Actually you can remove both line 7 and 9.

    #63316

    That’s an improvement.

    I get a line now, but at Today’s 08:00, rather than yesterdays.

    #63318

    Write line 4 as

    because there are 24 * 12 5-minute bars in a day your are going to get yesterday’s value.

    #63319

    Perfect,

    Thank you Nicolas and Roberto.

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

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