Hi can you write a script for this strategy for tradescript to backtest it in pi

ROCMA1 = 10-Period SMA of 10-Period Rate-of-Change

ROCMA2 = 10-Period SMA of 15-Period Rate-of-Change

ROCMA3 = 10-Period SMA of 20-Period Rate-of-Change

ROCMA4 = 15-Period SMA of 30-Period Rate-of-Change

KST Line = (RoCMA1 x 1) + (RoCMA2 x 2) + (RoCMA3 x 3) + (RoCMA4 x 4)

Signal Line = 9-period SMA of KST

crossover for buy and sell

**Buy Script:**

SET A = SMA(PROC(CLOSE, 12),10)
SET B = SMA(PROC(CLOSE, 15),10)
SET C = SMA(PROC(CLOSE, 20),10)
SET D = SMA(PROC(CLOSE, 30),15)
SET E = A*1+B*2+C*3+D*4
SET F = SMA(E,9)
CROSSOVER(CLOSE,F)

Sell Script:

SET A = SMA(PROC(CLOSE, 12),10)
SET B = SMA(PROC(CLOSE, 15),10)
SET C = SMA(PROC(CLOSE, 20),10)
SET D = SMA(PROC(CLOSE, 30),15)
SET E = A*1+B*2+C*3+D*4
SET F = SMA(E,9)
CROSSOVER(F,CLOSE)

how to appli crossover tma and wma