Code this ema please

i want to buy when the 5 Period EMA crossed over the 13 Period EMA from below and moves upwards.and sell vise-versa.

Buy: 

EMA (CLOSE, 5) < EMA (CLOSE , 13) AND REF (EMA (CLOSE, 5), 1) > REF (EMA (CLOSE, 13), 1) 

 Sell: 

 EMA (CLOSE, 5) < EMA (CLOSE , 13) AND REF (EMA (CLOSE, 5), 1) > REF (EMA (CLOSE, 13), 1)
1 Like