Indicators
RSI Indicator Explained: How to Use It in a Trading Bot
What the Relative Strength Index measures, how to read overbought and oversold levels, and how to wire RSI into an automated strategy in Setup.Cash.
Featured image placeholder
/og/setup-cash-og.svg
The Relative Strength Index (RSI) is one of the most widely used momentum indicators. It measures the speed and magnitude of recent price changes on a 0–100 scale. This guide explains how it works and how to use it in a Setup.Cash strategy.
What RSI Measures
RSI compares the average size of up moves to the average size of down moves over a lookback period (default 14). The result:
- Above 70 — traditionally "overbought" (strong recent gains).
- Below 30 — traditionally "oversold" (strong recent losses).
- Around 50 — momentum is balanced.
Important: overbought does not mean "sell now." In a strong trend, RSI can stay above 70 for a long time.
Two Ways to Trade RSI
1. Mean reversion. Buy when RSI drops below 30 and recovers; sell/exit when it returns toward the middle. Works best in ranging markets.
2. Trend confirmation. Use RSI staying above 50 as a bullish filter and below 50 as bearish. Combine with a multi-timeframe trend filter to avoid fighting the trend.
Building an RSI Strategy in Setup.Cash
In the builder, add an RSI indicator and a condition:
- Long when
RSI < 30(mean reversion) orRSI > 50(trend). - Exit when RSI returns to a neutral level or hits your stop/target.
In text-to-strategy, just describe it: "buy EURUSD 15m when RSI(14) crosses above 30, exit at RSI 55, 1% risk."
Tuning RSI
- Shorter length (7–9): more signals, more noise — good for scalping.
- Longer length (21+): smoother, fewer signals — good for swing setups.
- Adjust thresholds: in strong trends, use 40/80 instead of 30/70 to stay with momentum.
Build Your Own RSI Variant
In the Indicators Lab you can create a custom RSI — for example, an adaptive RSI whose length changes with volatility, or one with a smoothed signal line. Describe it to the AI Indicator Generator or build it by hand with the formula language.
The Honest Caveat
RSI is a description of momentum, not a prediction. It works best as one input among several — paired with a trend filter and disciplined risk. Always backtest an RSI strategy and confirm it with paper trading before going live.
Related Posts
View allIndicators
CCI (Commodity Channel Index) Explained
How the Commodity Channel Index measures price deviation from its average, how to read the ±100 levels, and how to automate CCI in Setup.Cash.
2 min read · 268 words
Indicators
Stochastic Oscillator Explained for Trading Bots
How the Stochastic oscillator measures momentum relative to the recent range, how %K and %D crossovers work, and how to automate it in Setup.Cash.
2 min read · 278 words
Indicators
Stochastic RSI Explained: A Faster Momentum Oscillator
How Stochastic RSI applies the stochastic formula to RSI for earlier signals, when its speed helps or hurts, and how to use it in Setup.Cash.
2 min read · 303 words
Indicators
Williams %R Indicator Explained
How Williams %R measures overbought and oversold conditions on an inverted scale, and how to use it for momentum and reversals in Setup.Cash.
2 min read · 284 words
Start here
Build your trading bot workflow with structure
Use Setup.Cash to create, backtest, and paper trade rule-based strategies without relying on guesswork. Not financial advice. Trading involves risk.