Need afl code for the following

rsi(14)>50
close>max of previous 30 bar in 5 min chart