Need tradescript code

RSI Setup : period - 7

EMA - 9

Buy script :

RSI cross less than 20

Sell script

Rsi cross above 80

BUY SCRIPT:

CLOSE > EMA(CLOSE,9) AND RSI(CLOSE,7) < 20 AND REF(RSI(CLOSE,7),1) >= 20

SELL SCRIPT:

CLOSE < EMA(CLOSE,9) AND RSI(CLOSE,7) > 80 AND REF(RSI(CLOSE,7),1) <= 80

1 Like

Getting Error in back test

Conditions are valid. NO trades with the above conditions