RSI + ATR Risk Management Strategy: How to Build It in Arrow Algo

Most indicator combinations pair two signals. An RSI ATR strategy pairs a signal with a ruler. The Relative Strength Index decides when to enter. The Average True Range decides how far away the stop goes and how large the position should be. Neither indicator does the other’s job, which is exactly why the pairing works.
That separation matters more than it sounds. Plenty of traders have an entry they trust and a risk process they improvise. The result is a strategy where the same signal produces a large loss one week and a small one the next, for no reason except where the stop happened to land. ATR removes the improvisation.
This guide covers what each indicator contributes, how to wire entry, stop and size together, the exits that match, where the combination goes wrong, and the drag-and-drop build in Arrow Algo.
Why an RSI ATR Strategy Splits Signal From Risk
An entry signal answers one question: is this a good moment to be in the trade? It says nothing about how much the market moves in a normal candle, and that number decides everything about risk.
A stop placed 2% below entry means something completely different on a quiet day and a volatile one. On a quiet day 2% is generous and the trade has room. On a volatile day 2% is inside the noise and the stop gets hit by a routine wick. The signal was the same. The outcome was decided by a stop that ignored conditions.
ATR fixes this by measuring the noise directly. A stop set at two times ATR is always two normal candles away, whatever the market is doing. Position size derived from that stop keeps the dollar risk constant from trade to trade. The volatility targeting idea comes from the same logic.
What RSI Brings and What ATR Brings
RSI measures the speed of recent gains against recent losses on a scale of 0 to 100. Below 30 is oversold and above 70 is overbought on the default 14-period setting. Investopedia’s RSI page covers the calculation. What matters here is that RSI is a timing tool. It tells you momentum has stretched and may be about to snap back.
ATR measures the average size of a candle over a lookback, usually 14 periods, including any gap from the previous close. It has no direction. It only says how much price typically moves. StockCharts has a clear ATR walkthrough. In this strategy ATR is a measuring stick, never a signal.
Put simply: RSI is the “when”. ATR is the “how far” and the “how much”.
Entry, Stop and Size: The Three Jobs
The Entry: RSI as the Trigger
Use the same event-based trigger that makes the RSI overbought oversold strategy work. Do not enter on the first close below 30. Wait for RSI to cross back above 30. The cross confirms that momentum has turned, rather than just being stretched.
Long entry: RSI crosses above 30 from below. Short entry: RSI crosses below 70 from above.
Add a regime gate. RSI oversold in a strong downtrend is not a buy signal, it is a description of the downtrend. Require ADX below 25, or price within a set distance of a long moving average, before the entry is allowed.
The Stop: An ATR Multiple
Place the stop at a multiple of ATR from the entry price. Two times ATR is the standard starting point. On a daily Bitcoin chart with ATR at $2,000, that puts the stop $4,000 away. On a four-hour chart with ATR at $600, it is $1,200 away. Same rule, different distances, same relationship to the noise.
Test 1.5, 2 and 3 as multipliers. Tighter multiples produce more stop-outs and smaller losses. Wider ones produce fewer stop-outs and larger losses. There is no correct answer independent of the entry and timeframe.
The Size: Risk Divided by Stop Distance
This is the step most strategies skip. Decide the dollar amount you are willing to lose on one trade. One percent of the account is common. Then divide it by the stop distance in dollars.
Worked example. Account $10,000, risk per trade 1%, so $100. ATR is $2,000 and the multiplier is 2, so the stop is $4,000 away. Position size is $100 divided by $4,000, which is 0.025 BTC. If ATR halves to $1,000 next week, the stop is $2,000 away and the size doubles to 0.05 BTC. The dollar at risk is $100 in both cases.
That is the whole point. Volatile conditions get a smaller position. Quiet conditions get a larger one. Every trade risks the same amount, so the position sizing is decided by the market rather than by mood.
Exits That Match the Entry
An ATR-sized stop deserves ATR-sized exits.
ATR target. Set the take-profit at three times ATR from entry. With a two-ATR stop, that is a 1.5 to 1 reward-to-risk ratio built directly into the trade.
RSI midline exit. Close the long when RSI crosses back above 50, or the short when it crosses below 50. Momentum has normalised. If the ATR target has not been hit by then, the reversal was weak.
ATR trailing stop. Once the trade is one ATR in profit, switch the fixed stop to a trailing one that follows price at two ATR. This lets a strong reversal run while still protecting the gain. The ATR trailing stop strategy covers the mechanics.
Pick one primary exit and one protective one. Do not stack all three without testing them separately.
Where Things Go Wrong
Measuring ATR on the wrong timeframe. Trading four-hour signals with a daily ATR gives stops far too wide for the entry. Match the ATR period to the chart the signal comes from.
Sizing up in a squeeze. When ATR collapses, the formula gives you a large position. Then volatility expands and the large position takes a large loss. Cap the maximum position size regardless of what the formula says. A cap at 10% of the account is a sensible ceiling.
Fixed percentage stops alongside ATR sizing. Some traders size with ATR and then place a 2% stop anyway. That breaks the constant-risk logic. If ATR sets the size, ATR sets the stop.
Ignoring the regime. RSI fires constantly in a trend. Without a gate, the strategy fades a trend repeatedly and the ATR stop is hit repeatedly. The stop is doing its job. The entry is not.
Skipping fees and slippage. Constant-risk sizing means small edges compound cleanly, but it also means costs compound cleanly. Model them.
How to Build an RSI ATR Strategy in Arrow Algo
Everything below is drag-and-drop on the visual canvas. No code.
Drop an RSI block with the period at 14. Add a crossover block that fires when RSI crosses above a fixed value of 30. That is the long trigger.
Add an ADX block and a comparison block requiring ADX below 25. Join the trigger and the gate with a condition block set to AND with two inputs.
Drop an ATR block with the period at 14. Add a multiply block to scale it by 2. That output is your stop distance.
For the stop price, use a subtract block with the entry price and the stop distance. Wire that into the stop-loss input of your order.
For position size, use a divide block. Put your fixed dollar risk in as one input and the stop distance as the other. A min block against your maximum position cap keeps the squeeze problem in check.
For the target, use a second multiply block scaling ATR by 3 and an add block to place it above the entry. For the midline exit, a second crossover block on RSI and 50 does the job.
Then backtest. Arrow Algo pulls historical candles straight from Binance, Coinbase and HyperLiquid, so the volatility regimes in the test are the real ones. Compare the ATR-sized version against the same entries with a fixed 2% stop and fixed size. The difference in the loss distribution is the argument for this strategy.
What Should You Take Into the Backtest?
- RSI times the entry. ATR sets the stop and the size. Keep the jobs separate.
- Enter on the RSI cross back through 30 or 70, not on the first extreme reading.
- A two-ATR stop is always two normal candles away, regardless of conditions.
- Size each trade as fixed dollar risk divided by stop distance. Every trade risks the same amount.
- Cap the maximum position so a volatility squeeze cannot produce an oversized trade.
- Gate entries with ADX or a trend filter. RSI in a trend is a description, not a signal.
- Test ATR-sized risk against fixed-percentage risk on identical entries before trusting either.
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.