Value for Sunday different for strategy and indicator

Forums ProRealTime English forum ProRealTime platform support Value for Sunday different for strategy and indicator

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

    I recently noticed that the returned value for opendayofweek and dayofweek is different in a strategy to an indicator. It returns a value of 7 in a strategy and zero in an indicator.

    Surely this just leads to confusion especially if for example cutting and pasting an indicator code that detects Sunday into a strategy to hard code it in or calling an indicator using a value for the day of the week?

    I guess changing it to be the same value now is too late as people will be running strategies and indicators based on the old values.

     

    #96766

    Live with or without MTF activated with IG, or demo account?

    #96774

    IG demo.

    Back test this strategy:

    ..and apply this indicator:

     

    #96777

    Dax? Same with forex pairs? Sorry I can’t test now and it will help for sure. Btw, a report is already in the pipe.

    #96778

    My platform is also closed at the moment. I was originally testing on DJI but the above image was taken from EURUSD.

    #96955

    News about this is that a fix is on its way to be implemented.

    1 user thanked author for this post.
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