Scanner Script needed for a Strategy

Hi,

Please share a tradescript to scan all NSE50 stocks for the below strategy

Buy

5 EMA should cross above 20 EMA

CCI Should cross above 0 (approx 0 to 30)

Stochastic should be above 30 (14,3,9,0)

RSI Should be above 20

Sell

5 EMA should cross below 20 EMA

CCI Should cross below 0 (approx 0 to -30)

Stochastic should be below 70 (14,3,9,0)

RSI Should be below 80

If possible please include Supertrend signal also for 9,2

NaMasTe TraDeR,

BUY SCRIPT:

CROSSOVER(CLOSE , EMA(CLOSE,20)) AND 
CCI(12, SIMPLE) > 0 AND 
CCI(12, SIMPLE) < 30 AND 
SMIK(14, 2, 3, 9, SIMPLE, SIMPLE) > 30 AND 
RSI(CLOSE,14) > 20 

SELL SCRIPT:

CROSSOVER(EMA(CLOSE,20) , CLOSE) AND 
CCI(12, SIMPLE) < 0 AND 
CCI(12, SIMPLE) > -30 AND 
SMIK(14, 2, 3, 9, SIMPLE, SIMPLE) < 70 AND 
RSI(CLOSE,14) < 80 

Supertrend Function is not codeable on Tradescript.