Please code below Strategy

BUY – NIFTYFUTURE

5 min EMA > 10 min EMA and DIFF greater than 7

AND

STOCHASTIC (%K & %D) is between 20 and 50

AND

RSI beween 20 and 50

AND

WILLIANS R beween 20 and 50

=============================================

SELL – NIFTYFUTURE

10 min EMA > 5 min EMA and Diff greater than 7

AND

STOCHASTIC (%K & %D) is between 50 and 90

AND

RSI beween 50 and 90

AND

WILLIANS R beween 50 and 90

Buy Signal:

EMA(CLOSE,5)>EMA(CLOSE,10) AND (EMA(CLOSE,5)-EMA(CLOSE,10))>7 AND SOPK(9,3,9,SIMPLE)>=20 OR SOPD(9,3,9,SIMPLE)<=50 AND RSI(CLOSE,14)>=20 AND RSI(CLOSE,14)<=50 AND WPR(14)<-20 AND WPR<-50

Sell Signal:

EMA(CLOSE,10)>EMA(CLOSE,5) AND (EMA(CLOSE,10)-EMA(CLOSE,5))>7 AND SOPK(9,3,9,SIMPLE)>=50 OR SOPD(9,3,9,SIMPLE)<=90 AND RSI(CLOSE,14)>=50 AND RSI(CLOSE,14)<=90 AND WPR(14)<-50 AND WPR<-90

please note that in  Williams %R   the outputs range from 0 to -100