Range bound scanner

Hi @Streak @Vasu_patel

How to write the conditions to find stocks where the price is in a range of 50 points in the last 10 30-minute candles?