Geting error while creating a new scanner

I am geting error while creating a new scanner with following script that is provided by zerodha.
bollinger band Buy
Buy script
SET B=BBB(CLOSE,20,2,EXPONENTIAL((REF(B,1)>REF(CLOSE,1)ANDB<CLOSE)OR((REF(B,2)>REF(CLOSE,2)AND B<CLOSE)OR((REF(B,3)>
Please help me to improve this script to scaner

Please post the link from where you copied this incomplete set of codes, so we can correct it.