Code for ‘Macd crossover and EMA CLOSE 5 > EMA OPEN 6’ simultaneously for Buy (reverse for short) & mismatch for cover position. (5>6 up & Macd down) & reverse?

As per the above condition 

BuyScript:

SET A = MACDSignal(13, 26, 9, SIMPLE)
SET B = MACD(13, 26, 9, SIMPLE)
CROSSOVER(A, B) = TRUE AND EMA(CLOSE,5)>EMA(OPEN,6)

SellScript:

SET A = MACDSignal(13, 26, 9, SIMPLE)
SET B = MACD(13, 26, 9, SIMPLE)
CROSSOVER(B, A) = TRUE AND EMA(OPEN,6)>EMA(CLOSE,5)