The code detects the selcted DAY when the chosen number is equal to a trading day OR when it wasn’t a trading day.
But at 00:00 the system does NOT change the day (it is still the old day till 01:00am), so when the day changes, if it’s not exactly the chosen day, the day change is not recognized because DAY > YourDay, but DAY[1] is NOT < YourDay!
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.