Zerodha pi codes for:-

Buy Script:

WWS(CLOSE,14) > WMA(CLOSE,14)

sell script: 
WWS(CLOSE,14) < WMA(CLOSE,20)
it gives error plz help

the alerts will generate only when the condition met, reduce the parameter and check

i have backtested with nifty 20day data 1 minute timeframe from below code

Buy Script:

WWS(CLOSE,8) > WMA(CLOSE,14)

sell script:
WWS(CLOSE,8) < WMA(CLOSE,20)