Pi script error (Big 3)

I am trying to use a scanner using the Big 3 Buy strategy found on zerodha expert advisors. I am copying the exact code, but am still getting “Your script generated an error”, with no error codes. The code I am using is:
ADX(14) > 20 AND
DIP(14) > 20 AND RSI(CLOSE, 14) > 40 AND
REF(MACDSignal(13, 26, 9, SIMPLE), 1) < REF(MACD(13, 26, 9, SIMPLE), 1)
AND MACDSignal(13, 26, 9, SIMPLE) < MACD(13, 26, 9, SIMPLE)

Use this its working… I realized that while pasting Pi removes space between AND and indicator

ADX(14) > 20 AND
DIP(14) > 20 AND RSI(CLOSE, 14) > 40 AND
REF(MACDSignal(13, 26, 9, SIMPLE), 1) < REF(MACD(13, 26, 9, SIMPLE), 1) AND MACDSignal(13, 26, 9, SIMPLE) < MACD(13, 26, 9, SIMPLE)