RSI divergence in streak

Hi team,

please help for below strategy in streak algo

This is the code for Pi:
15min chart

BUY SCRIPT:

TREND(CLOSE, 3) = UP AND
TREND(RSI(CLOSE,14), 3) = DOWN
SELL SCRIPT:

TREND(CLOSE, 3) = DOWN AND
TREND(RSI(CLOSE,14), 3) = UP

Not Supported.