Erroe while loading tradescript

I’m getting error while loading the script -> “your script generated an error”

here is my code

SET A = REF(CLOSE,1)
SET B = REF(HIGH,1)
SET C = REF(OPEN,1)
SET D = REF(LOW,1)
CROSSOVER(EMA(CLOSE,9),EMA(CLOSE,21)) AND A=B AND C=D

NaMasTe TraDeR,

Please refer to Point 5 on this link:

http://tradingqna.com/46073/wiki-zerodha-backtest-scanner-error-troubleshoot-checklist

1 Like

this could be my case “The Scanner currently accepts only one SET function, so if you have a strategy with many SET functions that worked fine on Backtesting but generating errors or Scanner, this could be the case.”.
Strange any way because i have seen many example with multiple set in zerodha https://zerodha.com/expert-advisors/