Code for MA and stochastics

Buy: when all the below condition is met.

if (15 EMA > 50 EMA) and (50 EMA > 100 EMA) and (100 EMA > 150 EMA)

buy when slow stochastics cross over fast stochastics and above 20

Sell : when LTP cross over upper bollinger band.

HeLlO TrAdEr,

BUY SCRIPT:

EMA(CLOSE,15) > EMA(CLOSE,50) AND 
EMA(CLOSE,50) > EMA(CLOSE,100) AND 
EMA(CLOSE,100) > EMA(CLOSE,150) AND 
CROSSOVER (SOPK(9, 3, 9, SIMPLE) , SOPD(9, 3, 9, SIMPLE)) AND 
SOPK(9, 3, 9, SIMPLE)  > 20 

SELL SCRIPT:

CROSSOVER (CLOSE , BBT(CLOSE, 20, 2, EXPONENTIAL))