I’m not sure, but sometimes i have problems when trying to the day of the Week. I use OpenDayOfWeek but the output is always “7”. The demo code I’m using is below. Any ideas on why is this function failing to provide the day of the week as expecte?
and it works finely for TFs up to h1, then Daily (EurUsd, default trading times, no display of weekend data).
It shows problems with h2, because the last candle opening at 23:00 CET on thursday OpenDayOfWeek returns 4 correctly, while on friday it returns 0! The same problem occurs with h4 TF, on friday at 21:00 CET it returns 4, while on friday it returns 0!
You should try different settings, and possibly address PRT for a thorough description of the data OpenDayOfWeek should return.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue