Can you please help me code the following condition: If RSI of a red candle>previous green candle RSI:Buy If RSI of a green candle<previous red candle RSI:Sell

Can you please help me code the following condition:
If RSI of a red candle>previous green candle RSI:Buy
If RSI of a green candle<previous red candle RSI:Sell

hElLO tRaDeR,

BUY SCRIPT:

CLOSE < OPEN AND 
REF(CLOSE,1) > REF(OPEN,1) AND
RSI(CLOSE,14) > REF(RSI(CLOSE,14),1) 

SELL SCRIPT:

CLOSE > OPEN AND 
REF(CLOSE,1) < REF(OPEN,1) AND 
RSI(CLOSE,14) < REF(RSI(CLOSE,14),1) 

portfolioplus911
If i want to set a exit strategy of if
current candle is less by 1 point from the previous candle then sell

can it be done???

Do you know how to superimpose RSI if 1 day over RSI of 3 days on the same chart in Kite?