Hello
I am still learning, but—still diffuse for me…
I am trying to do a code to detect how many weeks in a period ; for example 30 weeks were closed with a end price higher than the lowest of the previous week,…
but,….
Try this (not tested):
Timeframe(Weekly)
Count = summation[253](close > low[1])
Timeframe(default)
Screener[Count >= 5](Count As “Count”)
254 is the max lookback bars, but since we refer to the previous LOW then 253 is the greatest number allowed here.
You can change it to any other number less than 253 and greater than 0.
As a filter I used 5, but you can try other numbers.