3 green candle price increase 1.5 %

hi
Please tell me the code for below the script for pi scanner

3or 5 green 1 min candle and prize increase above 1.5 % or
3or 5 red 1 min candle and prize decrease below 1.5 %

Identify 1% increase in price on recent 3 candles: (ideal on 5min and 1min candles)

Notes : to change to 2%, change the last value of the formula to 1.02

CLOSE > LLV(3) * 1.01

Identify increase in volume with increase in price on 3 consecutive candles: (ideal on 5min candles)

CLOSE > REF(CLOSE,1) AND REF(CLOSE,1) > REF(CLOSE,2) AND
VOLUME > REF(VOLUME,1) AND REF(VOLUME,1) > REF(VOLUME,2)

Positive Volume breakouts of 20x: (ideal 5min candles)
to change to 10x change the last value of the formula to to 10

CLOSE > REF(CLOSE,1) AND
VOLUME > REF(VOLUME,1) * 20

ADDONS:
​The following code can be added to any of the above codes to filter it with a ADX indicator

AND
DIP(14) > DIN(14) AND
ADX(14) > REF(ADX(14),1)