5 min timeframe code needed

Hi

I am using a code in scanner with a 5 minute timeframe on a few fno stocks. It scans if the close of the 5 min candle is 1% higher than the open of the same candle. But on loading it says “your code generated error”

Code is:

SET A=CLOSE-OPEN
SET B=A/OPEN*100
REF(OPEN,1)<REF(CLOSE,1) AND
B>1

Zerodha Pi Scanner does not support more than 1 SET Functions on a single scanner. Try combining the 2 SET functions to one .