DRAW into the future with DateToBarIndex error

Forums ProRealTime English forum ProRealTime platform support DRAW into the future with DateToBarIndex error

Viewing 1 post (of 1 total)
  • #123826

    I was testing a piece of code to draw segments in the future with this code (Dax, Daily TF) using DateToBarIndex:

    at line it only accepts, as an offset into the future, from 2 to 31 days, otherwise an error is reported as from attached pics (Draw1 is correct, with 31, while Draw2 returned an error as soon as I incremented the variable to 32).

    Is this a limit or a bug?

    Making it a strategy and GRAPHing all variables, the future dates calculated are GRAPHed correctly, so there should be no error in the calculation code.

     

Viewing 1 post (of 1 total)

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