Please code the below rsi stratagy

i want to have a strategy for buy if RSI period 14 close above 55
and exit the position if RSI period 14 close below 30

Buy: 

RSI(CLOSE, 14) > 55

Sell: 


RSI (CLOSE, 14) < 30