Hi, i'm trying to test a simple code in PI scanner but get a message "Your script generated an error". But the same code produces output in "Backtest"

Hi, i’m trying to test a simple code in PI scanner but get a message “Your script generated an error”. But the same code produces output in “Backtest”. Where am i going wrong ? Code below :

CSP() = BULLISH_ENGULFING_LINE OR CSP() = PIERCING_LINE OR CSP() = BULLISH_KICKING OR CSP() = THREE_WHITE_SOLDIERS

Some of the candlestick functions CSP() are not working directly with constants in tradescript language, 

The strategies based on candlestick patterns you can check the following link

https://zerodha.com/expert-advisors/