RSI + Moving Average Strategy: How to Build It in Arrow Algo

The RSI + moving average strategy combines two of the most widely used tools in systematic trading to create a more reliable entry approach. By using a moving average to identify the prevailing trend and RSI to time entries within that trend, the strategy eliminates the most common failure mode of RSI trading alone: entering counter-trend positions during strong directional moves.

What Is the RSI + Moving Average Strategy?

The strategy has two distinct components, each doing a different job:

The entry rule follows naturally: when price is above the moving average AND RSI drops below 30, enter long. When price is below the moving average AND RSI rises above 70, enter short. Both conditions must be true simultaneously — neither alone is sufficient.

Why RSI and Moving Averages Work Better Together

RSI alone generates signals in all market conditions — including against the prevailing trend. An RSI reading below 30 in a strong downtrend is not a buying opportunity. It is a confirmation that the trend is powerful. Without a directional filter, RSI traders consistently take counter-trend entries at the worst possible moment.

A moving average fixes this. It acts as a gate: the RSI signal only triggers when price is on the correct side of the average. The two indicators measure different things — the moving average tracks the broad price relationship over time, while RSI measures short-term momentum extremes. They are genuinely independent, which means when both agree, the confluence is meaningful.

Choosing the Right MA Period and RSI Settings

The moving average period determines how many trend-following signals you receive and how quickly the filter responds to trend changes:

For RSI, the standard 14-period setting works well in most cases. A shorter period (e.g. 9) makes RSI more sensitive and fires more frequently. A longer period (e.g. 21) produces smoother signals with fewer but stronger readings.

One practical adjustment: when combined with a moving average filter, you can often relax the RSI thresholds from 30/70 to 35/65. The MA filter already handles the trend direction — so you do not need to wait for extreme RSI readings before entering. RSI thresholds should reflect what actually works on your specific asset and timeframe, not the textbook default.

How to Structure Entries and Exits

Long entry: Price is above the EMA AND RSI crosses below 30 (or 35 with the relaxed threshold). Both conditions must be active at the same time.

Short entry: Price is below the EMA AND RSI crosses above 70 (or 65). Again, both required.

Long exit — choose the first trigger:

Short exit: RSI drops below 30 OR price crosses above the EMA.

Add a stop loss below the recent swing low or at 1.5–2x ATR from entry. The MA provides a natural directional stop, but a hard price-based stop prevents extreme adverse moves from doing serious damage.

For a related approach that uses RSI level extremes without a trend filter, see the RSI overbought oversold strategy guide.

What Are the Most Common Mistakes?

How to Build the RSI + Moving Average Strategy in Arrow Algo

Arrow Algo’s no-code visual block builder lets you assemble this strategy entirely through drag-and-drop — no programming required.

Add your indicators:

Build the entry logic:

Build the exit logic:

Set a stop loss on the entry block, run a backtest, and compare results across different EMA periods. Arrow Algo shows you the performance impact of each change in real time.

Key Takeaways

Disclaimer: This content is for educational purposes only and does not constitute financial advice. Trading involves significant risk and you should only trade with capital you can afford to lose. Past performance is not indicative of future results. Always conduct your own research before making any trading decisions.

Ready to build your own automated trading strategies without writing a single line of code? Start for free at Arrow Algo and join thousands of traders who’ve made the switch to systematic trading.