Inside candle code

I want to find the stock from Nifty 500 whose price is in the range of the last 150th candle’s high and low. How to code it in Streak?

@Market_Monarchs Check out the below image to learn how to create the conditions: