How to write code for diverngece buy div>1 and sell div<0. 02,and combine with rsi indicator?

For the above given condition

Buy Script:

RSI(CLOSE,14)> 65 AND MACD(13, 26, 9, SIMPLE) >1

Sell Script:

RSI(CLOSE,14)> 65 AND MACD(13, 26, 9, SIMPLE) <0.02