I want coding for this strategy

DEAR SIR,

PLEASE GIVE ME CODING FOR THIS

BUY IF PRICE MOVIES EMA > 20

SELL IF PRICE MOVES BELOW EMA < 20

As per the above query 

Buy Script:

LAST>EMA(CLOSE,20)


 
Sell Script:

LAST<EMA(CLOSE,20)