ENTRIQ|Lab
Try ENTRIQ
StrategyLAYER 1

Daily RSI vs Stochastics on US Stocks|Contrarian Entries

ENTRIQ backtest: RSI(14) vs slow stochastics (14, 3, 3) contrarian entries with identical exits on daily charts of 100 US stocks (5–56 years each).

Introduction

These are the results of backtesting 100 stocks in ENTRIQ (5 to 56 years of data depending on the stock) (Dataset v2.0). This article looks at two oscillators used for contrarian entries, RSI(14) and slow stochastics (14, 3, 3), and organizes the differences in how their entry conditions are calculated, how often they produce entries, and how the results differ under the same exit conditions. It does not conclude that either one is better.

How the two oscillators are calculated

RSI and stochastics are both oscillators that move between 0 and 100 and are used in contrarian trading as a guide to "oversold" conditions. However, they are based on different data.

RSI(14) is calculated from the ratio of the "average gain" to the "average loss" over the past 14 bars. It uses only changes in the close (whether the day-over-day change is positive or negative), so it contains no high or low information. RSI below 30 indicates that declines have been dominating recent price changes.

Slow Stochastic (14, 3, 3) first calculates %K, which shows where the current close sits within the high–low range of the past 14 bars. Smoothing that over 3 periods gives the displayed %K (slow %K), and smoothing that again over 3 periods gives %D. Because it uses highs and lows, it captures the internal structure of the bars (how far price was pushed down). In this backtest, the entry condition is a day on which %K crosses above %D while both %K and %D are below 20, which adds "a sign of reversal within oversold territory (a bullish crossover)" to the condition.

Test conditions

  • Universe: 100 US stocks selected from the current S&P 500 constituents, taking the largest by market cap with up to 15 stocks per sector
  • Period: The full period available for each stock (only stocks with at least 5 years of data)
  • Timeframe: Daily (split-adjusted)
  • RSI entry: Buy at the open on the next trading day after RSI(14) crosses below 30
  • Stochastics entry: Buy at the open on the next trading day after %K crosses above %D while both %K and %D are below 20
  • New signals in the same stock while a position is open are skipped (only one position is held at a time)

Exit patterns (B and C)

LabelDefinition
BExit at the close on the 10th trading day after entry. No stop loss
CStop loss at -5%. If the stop isn't hit, exit at the close on the 10th trading day. If the stock gaps down at the open, the fill is at that open price, so a single trade's loss can exceed -5%

For RSI there is also its own exit, pattern A: "exit at the open on the next trading day after RSI rises above 50 (if it doesn't, exit at the close on the 60th trading day); no stop loss." The like-for-like comparison with stochastics, however, uses only patterns B and C.

About survivorship bias: This test uses the current S&P 500 constituents. Stocks that were delisted or removed from the index in the past are not included, so the results may be skewed in a somewhat more favorable direction.

Difference in sample size: stochastics produces more than RSI

The first thing that stands out is the difference in sample size.

Pattern BPattern C
RSI below 307,0267,866
Stochastics bullish crossover below 2018,79322,194

Note: Past sample (N=7,026, N=18,793); not indicative of future results.

In both patterns B and C, stochastics produced more samples than RSI. One possible reason is the structure of the entry conditions. The RSI signal occurs only at the moment RSI crosses below 30, whereas the stochastics condition can be met each time %K crosses above %D while both remain in oversold territory, so the same decline can produce more entry opportunities.

Overall results (pattern B)

MetricRSI below 30Stochastics crossover
Sample size7,02618,793
Share of trades closed in profit56.9%54.0%
Average P/L+1.20%+0.75%
Profit factor1.511.33
Average loss (losing trades)-5.59%-5.03%
Largest loss (per stock)-72.5%-85.2%
Median MAE (maximum adverse excursion)-3.57%-3.24%
Longest losing streak (per stock)1211
Average holding period10.0 trading days10.0 trading days

Note: Past sample (N=7,026, N=18,793); not indicative of future results.

In pattern B, the share of trades closed in profit, average P/L and profit factor were higher for RSI below 30. On the other hand, the largest loss (the largest single loss within one stock) was larger (more negative) for stochastics. The median MAE was larger (more negative) for RSI below 30, i.e. adverse moves during the holding period tended to be deeper. The average holding period was the same for both.

Overall results (pattern C)

MetricRSI below 30Stochastics crossover
Sample size7,86622,194
Share of trades closed in profit45.8%46.7%
Average P/L+0.54%+0.49%
Profit factor1.231.22
Average loss (losing trades)-4.40%-4.17%
Largest loss (per stock)-37.9%-39.1%
Median MAE (maximum adverse excursion)-3.76%-3.41%
Longest losing streak (per stock)1623
Average holding period7.6 trading days8.0 trading days

Note: Past sample (N=7,866, N=22,194); not indicative of future results.

In pattern C, only the share of trades closed in profit was higher for stochastics. Average P/L and profit factor were higher for RSI below 30. The largest loss (the largest single loss within one stock) and the longest losing streak (the longest run of consecutive losses within one stock) were both larger for stochastics (more negative and longer, respectively). The average holding period was also longer for stochastics. The median MAE was larger (more negative) for RSI below 30, so even with a stop loss, RSI entries tended to experience deeper adverse moves after entry.

Tendencies by market regime (trend)

The results for pattern C by trend are summarized below.

TrendRSI: share of trades closed in profitStochastics: share of trades closed in profit
Uptrend52.2%50.1%
Downtrend42.0%43.1%
Range48.0%47.4%

Note: Past sample; not indicative of future results.

For both RSI and stochastics, the share of trades closed in profit was highest in uptrends, followed by ranges, and lowest in downtrends.

Tendencies by volatility and around earnings

By volatility (pattern C)

In pattern C, for both RSI and stochastics, the share of trades closed in profit was observed to be highest in low volatility, then normal, then high volatility. The average loss (losing trades) and the median MAE, meanwhile, were the most negative in high volatility, then normal, then low volatility, and both indicators tended to show larger adverse moves and losses in the high-volatility bucket in this data.

Around earnings (pattern C)

For both RSI and stochastics, the share of trades closed in profit and profit factor were higher away from earnings than near earnings. Average P/L was higher away from earnings for RSI and nearly the same in both periods for stochastics. The median MAE was larger (more negative) near earnings, and adverse moves during the holding period tended to be deeper around earnings in this data. Earnings dates are available only from 2008 onward, so a certain number of trades have no earnings data.

Note: Past sample; not indicative of future results.

RSI's own exit pattern (for reference)

As an exit pattern with no direct stochastics counterpart, RSI has an exit at the open on the next trading day after RSI rises above 50 (if it doesn't, exit at the close on the 60th trading day), with no stop loss.

MetricPattern A (RSI back above 50)
Sample size5,318
Share of trades closed in profit72.2%
Average P/L+2.21%
Profit factor1.92
Largest loss (per stock)-93.3%
Median MAE (maximum adverse excursion)-4.74%
Longest losing streak (per stock)7
Average holding period19.2 trading days

Note: Past sample (N=5,318); not indicative of future results.

RSI's own exit keeps the position open until RSI rises above 50, so the holding period tended to be longer, and with no stop loss, the largest loss was also large (-93.3%). Profit factor was higher than in RSI's patterns B and C (1.92 vs 1.51 / 1.23).

Limitations and caveats

  • Survivorship bias: The backtest uses the current S&P 500 constituents, so stocks that were delisted or removed in the past are not included.
  • Slippage and fees: These are not included in this backtest. Real trades incur costs.
  • Mechanical conditions vs discretion: In real trading, you may decide to skip an entry even when the same conditions are met.
  • Universe bias: Only large-cap US stocks are covered. Results may differ for small caps or other markets.
  • Data finality: Data as of Dataset v2.0.

Summary

Comparing RSI(14) below 30 with a slow stochastics (14, 3, 3) bullish crossover below 20 under the same exit conditions (B and C), several differences were observed.

  • Sample size: Higher for stochastics in both patterns B and C
  • Pattern B: The share of trades closed in profit, average P/L and profit factor were higher for RSI. The largest loss was larger (more negative) for stochastics
  • Pattern C: The share of trades closed in profit was higher for stochastics. Average P/L and profit factor were higher for RSI. The largest loss was larger (more negative) and the longest losing streak was longer for stochastics
  • Trend, volatility and earnings tendencies: Broadly similar directions were observed for both

Even though the calculations differ, the broad tendencies by market environment were similar. However, the overall sample sizes and the values of individual metrics differ, so it is worth checking on your own stocks and holding style. Try the same conditions on your own stocks with ENTRIQ's Chart Replay, and build up your records with Strategy Tags to move your own testing forward.

Frequently asked questions (FAQ)

Q. Which should I use, RSI or stochastics?

A. This backtest does not conclude which one is better. It shows that differences in results can be observed on the same stocks with the same exits. The most reliable way is to test both on your own stocks, timeframe and holding style and compare them.

Q. Why does stochastics produce more samples than RSI?

A. The stochastics condition is "a bullish crossover within oversold territory," and multiple crossovers can occur while %K and %D stay in oversold territory. RSI below 30 is a single event in which the close-based value crosses below the threshold, so it tends to produce fewer entries in the same decline.

Q. What do the numbers (14, 3, 3) in slow stochastics mean?

A. They are the lookback period for the high–low range (14 bars), the smoothing period for %K (3) and the period for %D (the further smoothed line) (3). Changing these settings changes the sample size and the results.

Q. Why is earnings data missing for some trades?

A. The earnings date data available for this backtest covers only 2008 onward. Earlier trades cannot be classified by distance from earnings, so they are not included in the earnings breakdown.

Q. Can I use these results directly in my own trading?

A. Results change if the stocks, period, timeframe or exit conditions differ. Use the figures in this article as a reference for the approach, and re-test them under your own conditions.


This article is provided for informational purposes to examine and organize historical data and does not recommend any specific trade. The figures shown are past samples and do not indicate future results. All investment decisions are your own responsibility.

Test the same condition used in this article on symbols of your choice.

Backtest this condition

Reproduce this validation yourself

With ENTRIQ's chart replay, you can trade through past charts using the same rules.

Try the demo — no sign-up

No sign-up or card needed. Runs right in your browser. Start 14-day free trial →

Validate your method on past charts

The same validation in this article can be reproduced with your own method. On past charts, do the classics really work?

  • ✓ Replay past charts
  • ✓ AI feedback on your trades
  • ✓ Validate methods with statistics

No sign-up or card needed. Runs right in your browser.

Related reading

StrategyLAYER 1

Daily MACD Death Cross Shorts on US Stocks|3 Exits Compared

ENTRIQ backtest of shorting from the day after a MACD(12, 26, 9) death cross on daily charts of 100 US stocks (5–56 years each), with 3 exit patterns.

StrategyLAYER 1

Daily MACD Golden Cross Buys on US Stocks|3 Exits Compared

ENTRIQ backtest of buying after the MACD(12, 26, 9) golden cross on daily charts of 100 US stocks (5–56 years each), with figures for 3 exit patterns.

StrategyLAYER 1

Daily RSI Below 30 on US Stocks|Effect of a MACD Filter

ENTRIQ backtest of 100 US stocks on daily charts (5–56 years each): RSI-below-30 buys on days with MACD(12, 26, 9) above its signal line vs no filter, 3 exits.

StrategyLAYER 1

Daily RSI Below 30 on US Stocks|Effect of an SMA200 Filter

ENTRIQ backtest of 100 US stocks on daily charts (5–56 years each): how RSI-below-30 buys change when limited to days closing above SMA200, versus no filter.

Try in ENTRIQ

Reproduce this validation with your own method

Replay past charts and discover your method's actual win rate.

Try the demo — no sign-up

Start 14-day free trial →