Need pi code for below macd and ema conditions

Conditions

buy:

Ema 5 cross over 15 , 50, 60. (should cross all ema)

​and macd (25,12,ema 9) above zero

and close of the candle above all ema except ema 5

sell :

vice versa.

Buy Signal

EMA>(EMA15,50,60) & MACD (EMA=25,12,9>0) & EMACLOSE>5

Sell Signal

Vice Versa

waiting for the answer still no answers kindly help me asap

throwing a error undefined variable ema