I want pi coding following strategy 30sma

Buy signal when closing price croses above 30 sma line this candle high + 5 point

Sell signal when price fall below 30 sma line this candle low – 5 point

As per the query

Buy Script:

CLOSE > SMA(HIGH,30)

Sell Script:

CLOSE < SMA(LOW,30)

 the 5 points can not be defined or added