I need crossover of 10-EMA over 21-EMA

i wanted to get this strategy coded.

Buy: 10-EMA cuts 21-EMA from down to up with healthy bullish candle on coinciding point crossing both 10 and 21 ema at a time.
        Stochastics slow should be below 50.

Sell:10-EMA cuts 21-EMA from up to down with healthy bearish candle on coinciding point crossing both 10 and 21 ema at a time
         Stochastics slow should be above 50.

As per the above given condition 

BuyScript:

CROSSOVER(EMA(CLOSE,10),EMA(CLOSE,21)) AND OPEN>CLOSE AND SOPK(9, 3, 9, SIMPLE) < 50

SellScript:

CROSSOVER(EMA(CLOSE,21),EMA(CLOSE,10)) AND CLOSE>OPEN AND SOPK(9, 3, 9, SIMPLE) > 50
1 Like