Constant alerts by expert adviser

i have strategy to buy and sell in EA . buy when rsi below 30 and sell when rsi above 60.

its on 5 min candle

but the ea keeps giving signals when rsi goes in and out of rsi 30 or rsi 60 constantly. it does not wait for 5 min candle to close below 30 or above 60

i have tried the same in EA for nifty16marfut 1min am not getting any continues signals. please check once again. make sure you are using latest version of pi