Here you go, EA with RSI . When moving_average_3 == 0 then algorithm works only with two sma (first and second), so you can play with 2 or 3 smas.