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.
Live with or without MTF activated with IG, or demo account?
IG demo.
Back test this strategy:
buy at -close limit
graph opendayofweek
graph dayofweek
..and apply this indicator:
Return opendayofweek as " opendayofweek", dayofweek as "dayofweek"
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.
My platform is also closed at the moment. I was originally testing on DJI but the above image was taken from EURUSD.
News about this is that a fix is on its way to be implemented.