How to check last tree RSI values with current

let me know, How to take last tree RSI values for checking >= or <= condition with current RSI value ( 2min interval)
And also want to take the current value of MACD & EMA values from MACD chart and K, D & J values from KDJ indicator?

For talking last three candles with current candle as per your above condition check below example

RSI(CLOSE,3)>= RSI(CLOSE,2) AND RSI(CLOSE,2)>= RSI(CLOSE,1) AND RSI(CLOSE,1)>= RSI(CLOSE,0)

same applies with MACD and EMA    can you elloborate J values or KDJ indicator?