Divergence trading on Pi

I need to find on Pi chart divergence where RSI shows higher highs and candles show lower lows. how can we code it?

As per the above contition

​Buy Script:

LOW = LLVV(RSI(CLOSE,14),21)

Sell Script:

HIGH = HHV(RSI(CLOSE,14),21)

“LLVV” IS AN INVALID ARGUMENT IN PI. CAN NOT RUN THE SCRIPT.
HOW CAN WE DEFINE LLVV?
HOW CAN WE USE SMA OF RSI AS VECTOR?