I Want To Find Stocks That have moved 1% in last 5 or 2 minutes. ( or during 5 1-minute candles). Please give the script and tell, how to see the alerts generated

As per the above condition use five minute candles

REF(CLOSE,1) * 1.05 < CLOSE