Hello,
I think I found the problem. I just moved the line “t = q + m + w” and put it at the end. It seems to work.
Thanks for your help
In this actual state, the screener return me a lot of results.
Anyway, did you try the same trick as for the monthly code?
//Calcul le +Haut Weekly de la semaine passée
If DayOfWeek < DayOfWeek[1] then
Whi = Highest[max(1,BarIndex - lastWeekBarIndex)](dailyHigh)
Wlo = Lowest[max(1,BarIndex - lastWeekBarIndex)](dailyLow)
lastWeekBarIndex = BarIndex
endif
Thanks. I didn’t see your answer.
Yes with this code I have a lot of results too, but not accurate for the weekly. If I replace “<” by “<>” as for month, no results are returned.
But by moving the line : “t = q + m + w” at the end of the code, it seems it’s working. I didn’t have time to do extensive tests but I will try and tell you.
Thanks for your help