I want to buy when a 21EMA crossover happens but only if RSI is under 30. Similarly I want to sell only if 21EMA crossover happens, but if RSI is over 70.
Buy Expression:
SET MA1 = RSI(Close,14) < 30 SET MA2 = CROSSOVER(EMA(CLOSE, 21), CLOSE) CROSSOVER(MA1, MA2) = TRUE
Sell Expression:
SET MA1 = RSI(Close,14) > 70 SET MA2 = CROSSOVER(EMA(CLOSE, 21), CLOSE) CROSSOVER(MA1, MA2) = TRUE
1 Like