I need code for EMA and MACD cross over, Lke when EMA crossing and MACD line crossing above or below zeroline i had attached the picture for your reference


As per the above given condition 

BuyScript:

CROSSOVER(EMA(CLOSE,12),EMA(CLOSE,26)) AND MACD(13, 26, 9, SIMPLE) > 0

BuyScript:

CROSSOVER(EMA(CLOSE,26),EMA(CLOSE,12)) AND MACD(13, 26, 9, SIMPLE) < 0

Thankyou GEEK :slight_smile:

want SL code for this same algo.

Sl is below low of cross over candle.