Please code this strategy for me for backtest

Kindly code this strategy for me in tradescript.

Entry long = Close above 10 period sma

Entry short = Close below 10period sma

Entries only when volume is greater than the average volume of previous 6 bars.

Exits short/long = Stop loss 1 point or crossover to the other side whichever comes first.

Profit target = 2 points

Thanks in advance...

Buy- 
CLOSE>SMA(CLOSE,10) AND VOLUME>SMA(VOLUME,6)

Sell-
CLOSE<SMA(CLOSE,10) AND VOLUME>SMA(VOLUME,6)

Fixing target/ SL in terms of points not possible as of now. 

For exit, what do you mean exactly by 'crossover to other side'. Please clarify

Thanks for the reply.
Its just price crossing and closing above or below the sma. For Eg. if i enter when price crosses & closes above the sma, i will exit once stop loss of 1 hits or if a candle closes below sma or at a profit target of 1.5 to 2 with trailing S/L.
So how can we give exits at present for backtesting ? Percentage?? Please clarify & your response highly appreciated.

Ok. why dont u try this-
buy exit- CLOSE<EMA(CLOSE,10)
sell exit- CLOSE>EMA(CLOSE,10)