DAYS statement: Malfunction?

Forums ProRealTime English forum ProBuilder support DAYS statement: Malfunction?

Viewing 6 posts - 1 through 6 (of 6 total)
  • #127112

    I am using for first time DAYS statement, which in v11 i’have tested returns then number of day, on a standard calendar (365/366 days for year), from Jan 1 1970 to open date of the current bar.

    For example, if it returns 120,80 since jan 1 1970 are 120 days and 0,80 days in decimal form.

    I think i’ve found a malfunction, i will ask to you to replicate my test, using code i write below and run in daily timeframe in market that work from monday to friday standard business hours, like major european market.

    This code calculate delta from what Days returns pointing to current bar (“today”, we are in daily timeframe) and what from previous bar (yesterday in a daily timeframe) and print on the chart.

    I notice that delta tuesday on monday is correct 1, and ok until thurdsay on wedsnday, but friday on thurdays the gap i 2 and not 1. Monday on Friday is 2, but i think it should be 3.

    I’m a newbie, a maybe i can do mistake. I think thath PRT developer are better than me, but …..
    What do you think?

     

     

    #127115

    I think it works like DAYOFWEEK which is that the value is at the close of the candle. So with DAYOFWEEK on a Monday candle the value is 2 showing that the close of the candle was 0000 hours on Tuesday.

    It still does not add up correctly though.

    Note: there is a lot of bits your DRAWTEXT instructions missing so your code does not work as it is.

    #127127

    Attach file .itf and print of chart.

    DAYS not work as DAYSOFWEEK, DAYS return a number that always growth.

     

    #127134

    DAYS not work as DAYSOFWEEK, DAYS return a number that always growth.

    Yes I know how the instruction DAYS works because funnily enough I can find that information here:

    https://www.prorealcode.com/documentation/days/

    My point is that on a Monday candle the value of DAYOFWEEK is 2 when most would expect it to be 1. Perhaps it is the same for DAYS but still it does not add up. I too have found some issues with time and date data in v11 which is still in its early days and there are going to be bugs and glitches. Even Microsoft have not got Windows working perfectly! The best thing to do if you find a bug or glitch is to send a technical report via your platform about it and to include in the report a link to your topic about it on these forums.

    Please remember that these forums are simply a discussion platform for PRT topics. They are not run by PRT and only the Platform Support forum has a regular presence from PRT moderators. The best way to contact PRT if you find an issue is via technical reports directly from your platform.

     

    #127183

    i have send a warning to PRT from platform, as you suggested.

     

    #131260

    Hello everybody,

    This problem has been identified by ProRealTime and is being corrected.

    It will be resolved in a few days.

     

    Thank you

     

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

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