Problems with OpenDayOfWeek

Forums ProRealTime English forum ProOrder support Problems with OpenDayOfWeek

Viewing 3 posts - 1 through 3 (of 3 total)
  • #66205

    Hello,

    I’m not sure, but sometimes i have problems when trying to the day of the Week. I use OpenDayOfWeek but the output is always “7”. The demo code I’m using is below. Any ideas on why is this function failing to provide the day of the week as expecte?

     

     

     

    #66207

    I changed line 7 like that

    and it works finely for TFs up to h1, then Daily (EurUsd, default trading times, no display of weekend data).

    It shows problems with h2, because the last candle opening at 23:00 CET on thursday OpenDayOfWeek returns 4 correctly, while on friday it returns 0! The same problem occurs with h4 TF, on friday at 21:00 CET it returns 4, while on friday it returns 0!

    You should try different settings, and possibly address PRT for a thorough description of the data OpenDayOfWeek should return.

     

     

     

    2 users thanked author for this post.
    #66397

    Thanks a lot,

    The problem was simpler than i thought. After reading your comments I checked the time frame and it was set to “Weekly”. Sorry, my (fool) mistake.

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

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