Hi Please help with the Code for This - EMA 12 Cross Over EMA 34, Stoch ABove 50 and RSI Above 50 for Buy and Vice versa for Sell

hElLO tRaDeR,

BUY SCRIPT:

CROSSOVER(EMA(CLOSE,12) , EMA(CLOSE,34)) AND
SOPK(9, 3, 9, SIMPLE) > 50 AND
RSI(CLOSE,14) > 50

SELL SCRIPT:

CROSSOVER(EMA(CLOSE,34),EMA(CLOSE,12)) AND
SOPK(9, 3, 9, SIMPLE) < 50 AND
RSI(CLOSE,14) < 50

Hi Thanks for the prompt response but , i want Value of Stoch as 40,1,1 and when i am using the same PI is throwing me and error as your script has some error can you please help .

Hi, The SOPK argument (40,1,1) is beyond the accepted range of the backtest engine’s SOPK function.