Bullish engulfing and bullish engulfing with ema is giving error in pi scanner

In Scanner when you are doing copy - paste of script, it gets clubbed all the words in the script, make sure there is proper spaces in between scripts.

hElLO tRaDeR,

Reformatted with spacing:

BUY SIGNAL:

EMA(CLOSE,9) < EMA(CLOSE,21) AND  
REF(CLOSE,1) > REF(OPEN,1) AND  
REF(CLOSE,2) < REF(OPEN,2) AND  
REF(OPEN,1) < REF(CLOSE,2) AND  
REF(CLOSE,1) > REF(OPEN,2)  

SELL SIGNAL:

CROSSOVER(EMA(CLOSE,21) , EMA(CLOSE,9)) 

*********************************

FOLLOW UP:

Hi, Can you paste the codes you have used, I can double check it.

for buying :
EMA(CLOSE,9)<EMA(CLOSE,21) AND
REF(CLOSE,1)>REF(OPEN,1) AND
REF(CLOSE,2)< REF(OPEN,2) AND
REF(OPEN,1)<REF(CLOSE,2) AND
REF(CLOSE,1)>REF(OPEN,2)
for selling :
CROSSOVER(EMA(CLOSE,21),EMA(CLOSE,9))
Also I want the above signal for intraday

I have tried with formatting also, but still did not work

Answer has been updated. Check the above video to see if you are doing it correctly