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.