Trade-script algorithm for backtestting

Hi,

I would appreciate help for the following strategies with tradescript :

BUY STRATEGY

BUY if SMA (14) > sma (28)

LONG EXIT STRATEGY

Refrence close= crossover SMA(14) and SMA (28)

last close > ( reference close + 25 )

I would like to generate exit signal when last close price exceeds the crossover point by 25 points.

Thanks in advance

Amit

BuyScript

SMA(CLOSE,14)>SMA(CLOSE,28)

BuyExit:

SET A = CROSSOVER(SMA(CLOSE,14),SMA(CLOSE,28))
REF(CLOSE,1)>CLOSE+25