When using the following code i get weird results, K = 1 both thursday and friday, but if i use weekday = 1, 2, 3 or 4, i get K =1 only on that spesific day.
This is true (for me) on any market.
More wird stuff,
dayofweek = 1 gives me k=1 on sundays,
dayofweek = 2 gives me k=1 on mondays
dayofweek = 3 gives me k=1 on tuesdays
Dayofweek = 4 gives me k=1 on wedensdays
dayofweek = 5 gives me k=1 on thursdays and fridays
Dayofweek = 6 gives me k=0 always
Dayofweek = 7 gives me k=0 always
Guessing this is because i have weekend on? Still weird they havnt fixed that so sunday = day 6/7 or at elast split thursday and friday..
Can update that the code work in other timeframes, showing k = 1 only on fridays data.. but on daily timeframe it still shows k = 1 on thursday and friday.
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