DayOfWeek() function return wrong value

Forums ProRealTime English forum ProBuilder support DayOfWeek() function return wrong value

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

    The DayOfWeek() function return wrong value when the local time of the chart data is not UTC +00.

    I attached 2 example charts with local time that is UTC +08.  The instruments are Hangseng index and Xinhua index.  In the bottom of the chart I added an indicator to display DayOfWeek().

    From the datetime time line you can see the dayOfweek() retun value is out of sync with the date by 8 hours.

    For chart with local time UTC +00,  the DayOfWeek() is in sync with the date. See XBTUSD .

    Is this a bug?

     

    #161795

    It uses the market time of the contract not your own custom hours.

    #183592

    Ok,

    Is there a way we can code around this? or just have to use market time? thanks!

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