Want zerodha pi codes for the below stratagy

BUY :

WEIGHTED MOVING AVERAGE (CLOSE,14) > SMA 20 days

SELL :

WHEN REVERSED.

For the above condition

Buy Script:

WMA(CLOSE,14) > SMA(CLOSE,20)

Sell Script:

WMA(CLOSE,14) < SMA(CLOSE,20)

thank you dost

WHEN I TRIED “Welles Wilder Smoothing” with “WMA” instead of SMA.
Buy script :
WWS(CLOSE,14) > WMA(CLOSE,14)
sell script:
WWS(CLOSE,14) < WMA(CLOSE,20)
it gives error plz help