Please help me figure something out. I have a watchlist study where I need to count the number of instances that a condition is true within 60 (1 min) bars. I've got the recursive variable: "rec counter = if bullshift then 1 else if counter[1] == 1 or counter[1] < 5 then counter[1] + 1 else 0;", but when displayed on the watchlist it doesn't say the correct amount of shifts that are on the chart. I think it's because it's looking back further than I need it to. Can someone please help me figure this out. Thanks!