RSI(14) Mean Reversion on SOXX
iShares Semiconductor ETF: the semiconductor industry, a high-momentum sector. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
Applied to SOXX, the iShares Semiconductor ETF, the RSI mean reversion rule turned $10,000 into $19,948 between 2021-01-04 and 2026-10-02. The CAGR was 12.78%, the maximum drawdown 35.01% and the Sharpe ratio 0.64. Holding SOXX over the same dates finished at $47,348 on 31.11% a year, but with a 45.06% worst drawdown and a Sharpe ratio of 0.92. The rule bought a shallower worst fall by sitting in cash through most of the window, and the price was a much smaller final balance.
The rule held a position on 30.7% of trading days. Entries came when RSI(14) dropped under 30 and exits when it climbed over 70. Nothing else governs a trade. Over 5.74 years it closed 14 round trips and 12 finished green, a win rate of 86% and a profit factor of 4.99. The average winner returned 8.24% and the average loser lost 10.68%, and there were only two losers. One of them, from 2022-01-21 to 2022-07-21, lost 17.06% and held for 181 days.
Of the 12 templates run on SOXX this one placed 11th, ahead only of the SMA 10/50 trend at 7.65%. The weekly 7% target led with 30.54% and the monthly cycle followed at 29.17%. A high win rate and a low CAGR in the same table mean the wins were frequent and small relative to the move the fund made while the rule sat in cash.
Everything on this page comes from one backtest, and the headline figures carry no commissions or slippage. SOXX gained 388.35% on a price basis across the window, and a rule that waits for an oversold reading is away from the fund for much of that climb. Every template on this fund is ranked on the SOXX hub.
Year by year
| Year | RSI mean reversion | buy & hold |
|---|---|---|
| 2021 | 14.1% | 43.6% |
| 2022 | −16.8% | −34.5% |
| 2023 | 27.2% | 65.3% |
| 2024 | 11.4% | 12.8% |
| 2025 | 18.6% | 40.1% |
| 2026 | 25.2% | 95.0% |
Each year against holding SOXX
Only 2022 went the rule's way. In the other five years holding SOXX did better. The rule made 14.1% in 2021, lost 16.8% in 2022, and made 27.2%, 11.4%, 18.6% and 25.2% in the four years after that. The fund's matching figures were 43.6%, -34.5%, 65.3%, 12.8%, 40.1% and 95%. The 2022 lead was 17.7 points and the 2026 shortfall was 69.8 points.
2021 held two trades, both winners. The first ran from 2021-05-14 to 2021-06-03 for 7.7%, and the second from 2021-10-05 to 2021-10-25 for 6.29%. The rule earned 8.37% in May and 6.15% in October, and sat in cash for the other ten months. The fund made 43.6% that year, so cash months cost the most in the year the fund climbed steadily.
2022 was the one year the rule won, and it still lost money. The fund fell 34.5% and the rule lost 16.8%. The cause was a single trade. The rule bought on 2022-01-21 at an adjusted 153.62 and held until 2022-07-21 at 127.42, a loss of 17.06% over 181 days. RSI(14) takes weeks to climb back above 70 after a drop, and in a falling fund it did not get there for six months. April lost 14.78% and June lost 16.98%, the worst month of the test. After that the rule made a 2.6% trade from 2022-09-02 to 2022-11-16, and a 7.56% trade from 2022-12-21 to 2023-01-17. The 2022 gain over the fund comes from missing parts of the decline.
2023 returned 27.2% against 65.3% for the fund, the second widest gap in the test. Three trades won. The best, 2023-08-18 to 2023-11-15, returned 8.65% over 89 days. The rule made 15.07% in November 2023. September and October lost 6.64% and 6.5% while the rule held that trade through the pullback, and the November rally recovered it.
2024 was the closest year, 11.4% against 12.8%. The two trades both won: 10.1% from 2024-04-22 to 2024-05-10 and 0.71% from 2024-07-31 to 2024-08-26. Holding the fund took a 40.93% drawdown from 2024-07-10 to 2025-04-08. The rule's own drawdown that August reached 15% in 7 days and was recovered 14 days later.
2025 returned 18.6% against 40.1%. Three trades closed, 2 of them winners: 8.23% from 2024-11-29 to 2025-01-23, -4.31% from 2025-03-12 to 2025-05-05, and 15.96% from 2025-11-21 to 2025-12-10, the best trade of the test. The March trade was held through the April low, which is where the rule's 24.03% drawdown came from.
2026 runs to 2026-10-02. The rule returned 25.2% while the fund returned 95%, the widest gap of the six years at 69.8 points. Two trades won, 9.63% from 2026-07-30 to 2026-08-18 and 15.07% from 2026-09-03 to 2026-09-23. The rule held nothing from January through June 2026, the months in which the fund made most of its gain, because RSI(14) never fell below 30. The fund's best month in the test was April 2026 at 40.13%, and the rule was in cash for it.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.0% | 0.0% | 0.0% | 0.0% | 8.4% | −0.8% | 0.0% | 0.0% | 0.0% | 6.2% | 0.0% | 0.0% |
| 2022 | 0.4% | −1.2% | −0.2% | −14.8% | 6.2% | −17.0% | 12.2% | 0.0% | −12.6% | 2.5% | 14.5% | −2.7% |
| 2023 | 10.4% | 0.0% | 0.0% | −1.2% | 7.5% | 0.0% | 0.0% | 7.9% | −6.6% | −6.5% | 15.1% | 0.0% |
| 2024 | 0.0% | 0.0% | 0.0% | 6.5% | 3.0% | 0.0% | 2.0% | −1.3% | 0.0% | 0.0% | 0.6% | 0.2% |
| 2025 | 7.2% | 0.0% | −4.3% | −2.2% | 2.3% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 10.1% | 4.9% |
| 2026 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 2.3% | 6.8% | 14.6% | 0.0% | – | – |
What the month table shows
Most cells in the monthly table read 0.0%, because the rule held a position in only some months. The months with a position were 2021-05, 2021-06, 2021-10, a long stretch in 2022 from January to July, September to December 2022, and then a run of months in 2023, 2024, 2025 and 2026. The zeros are cash. They are why exposure sat at 30.7%.
The worst month was June 2022 at -16.98%, followed by April 2022 at -14.78% and September 2022 at -12.62%. April and June 2022 fell inside the 181-day losing trade, and September 2022 was the first month of the next trade. The fund's own worst month was July 2026 at -21.13%, a month in which the rule held a position from 2026-07-30 and made 2.26%. The rule's three best months were 15.07% in November 2023, 14.6% in September 2026 and 14.49% in November 2022.
Gains arrived in short bursts. 2025-11 and 2025-12 made 10.1% and 4.91%. 2026-07, 2026-08 and 2026-09 made 2.26%, 6.8% and 14.6%. These are the months that follow a selloff, where an oversold entry caught a rebound. The rebound months are where the rule earned its profit factor of 4.99.
SOXX's average return by calendar month looks seasonal at first. May averaged 11.44% and November 8.44%, while August averaged -1.61%. Each calendar month has only 5 or 6 observations in the window, so those averages describe these years and nothing more. The rule's best months, 15.07% in November 2023 and 14.49% in November 2022, did land in the fund's strongest calendar months.
Every trade
RSI mean reversion on SOXX made 14 closed round trips, an average hold of 47 days, an average winner of 8.24%, an average loser of −10.68%, a profit factor of 4.99, a longest losing streak of 1. It held a position at the close on 30.7% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2021-05-14 | $127.41 | 2021-06-03 | $137.22 | 7.7% | 20 |
| 2021-10-05 | $140.13 | 2021-10-25 | $148.94 | 6.3% | 20 |
| 2022-01-21 | $153.62 | 2022-07-21 | $127.42 | −17.1% | 181 |
| 2022-09-02 | $118.65 | 2022-11-16 | $121.73 | 2.6% | 75 |
| 2022-12-21 | $116.53 | 2023-01-17 | $125.34 | 7.6% | 27 |
| 2023-04-21 | $136.06 | 2023-05-19 | $144.80 | 6.4% | 28 |
| 2023-08-18 | $154.17 | 2023-11-15 | $167.50 | 8.7% | 89 |
| 2024-04-22 | $197.55 | 2024-05-10 | $217.51 | 10.1% | 18 |
| 2024-07-31 | $227.67 | 2024-08-26 | $229.29 | 0.7% | 26 |
| 2024-11-29 | $212.02 | 2025-01-23 | $229.47 | 8.2% | 55 |
| 2025-03-12 | $195.27 | 2025-05-05 | $186.85 | −4.3% | 54 |
| 2025-11-21 | $268.06 | 2025-12-10 | $310.84 | 16.0% | 19 |
| 2026-07-30 | $492.19 | 2026-08-18 | $539.57 | 9.6% | 19 |
| 2026-09-03 | $495.86 | 2026-09-23 | $570.60 | 15.1% | 20 |
Prices are adjusted for splits and dividends, so they sit below the quotes printed at the time. An open position is marked at the last close.
Which trades made the result
Fourteen trades closed. Their median return was 7.7% and their median hold was 27 days. Holds ranged from 18 days to 181, and the average was 46.5 days. Seven wins in a row was the best run, and no loss was ever followed by another. Fourteen trades are too few to pin down a hit rate, and a few different days would have changed the count of winners.
The five best trades returned 15.96%, 15.07%, 10.1%, 9.63% and 8.65%. Three of them are from 2025 and 2026, when SOXX traded at much higher prices: the 2026-09-03 entry was at an adjusted 495.86 and the exit at 570.595. The 2021 trades were at 127.41 and 140.13. Entry and exit prices are adjusted, which puts them under the quotes of the day.
The two losing trades were -17.06% and -4.31%. The first is the 2022 bear market trade already described. The second began on 2025-03-12 at 195.27 and sold on 2025-05-05 at 186.85 after 54 days, held through the April 2025 low. Neither had a stop, and the template has none. The next worst trades were small winners: 0.71%, 2.6% and 6.29%.
A win rate of 86% does not mean the rule is safe. The two losses were deep because the exit requires RSI(14) above 70, which takes time, and because there is no stop. The average loser of -10.68% was larger in size than the average winner of 8.24%. A profit factor of 4.99 comes from the winners being many.
Grouped by the year each trade closed, 2023 was the busiest with 3 trades and 3 wins, 2025 had 3 and 2, and 2022 was the only year with a 1-win, 2-trade split. Every year had at least 2 trades. Trade length also followed the market: the 18 to 20 day holds came after sharp drops that recovered quickly, and the 75 to 181 day holds came during 2022.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2022-02-09 | 2022-10-14 | −35.0% | 247 | 2023-09-01 | 322 |
| 2025-03-24 | 2025-04-08 | −24.0% | 15 | 2025-11-28 | 234 |
| 2024-07-31 | 2024-08-07 | −15.0% | 7 | 2024-08-21 | 14 |
Buy-and-hold's deepest drawdown ran from 2021-12-27 to 2022-10-14 and reached −45.1%.
What the drawdowns looked like
The rule's worst drawdown was 35.01%, peak on 2022-02-09 and low on 2022-10-14. The low took 247 days and the climb back finished on 2023-09-01 after 322 more. Holding the fund produced a 45.06% drawdown with the same low date, from a peak on 2021-12-27, and a recovery on 2023-12-13. The rule's peak is later than the fund's because it was in cash at the fund's high and bought on 2022-01-21 after the fund had already fallen.
The second drawdown was 24.03%. It ran from 2025-03-24 to a low on 2025-04-08, 15 days later, and was recovered on 2025-11-28 after 234 more. That is the March 2025 trade held into the April low. The fund's second drawdown was deeper at 40.93%, from 2024-07-10 to 2025-04-08, and recovered on 2025-09-18.
The third was 15%, from 2024-07-31 to 2024-08-07, back to even by 2024-08-21. Holding the fund suffered a third drawdown of 28.99% that began on 2026-06-22, bottomed on 2026-07-29 and was still open at the end of the data. The rule held nothing in June 2026, which avoided most of that decline, and entered on 2026-07-30, the day after the fund's low.
The rule's worst drawdown was 10.05 points shallower than the fund's. That comes from being in cash, since the template has no risk control. Its largest loss was a position held through a bear market with no exit until RSI recovered, and a longer decline would have produced a larger loss on the same logic.
With trading costs
The headline run fills at the bar price. These runs charge slippage on every fill.
| Slippage per fill | CAGR | Max drawdown | Final value | Sharpe |
|---|---|---|---|---|
| None (headline) | 12.8% | −35.0% | $19,948 | 0.64 |
| 5 basis points | 12.6% | −35.2% | $19,731 | 0.63 |
| 10 basis points | 12.3% | −35.3% | $19,455 | 0.62 |
Effect of slippage on each fill
Two extra runs add slippage to every fill. With 5 basis points the CAGR was 12.57%, the maximum drawdown 35.16%, the end equity $19,731 and the Sharpe ratio 0.629. With 10 basis points the CAGR was 12.29%, the drawdown 35.32%, the end equity $19,455 and the Sharpe ratio 0.618.
The change is small. The rule filled only 28 orders in 5.74 years, so there were few chances to pay a cost. The headline CAGR of 12.78% became 12.29% at the higher assumption. The ranking against the fund does not change, since buy-and-hold made 31.11%.
SOXX is heavily traded, with $1,048,392,630 of average daily dollar volume and 5,853 shares in the median minute. A $10,000 account is tiny against that scale, so the cost runs are a fair model of small orders. The runs are tested only to 10 basis points, and a much larger account would meet a different cost.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 12.8% | −35.0% | 14 | 86% | $19,948 |
| RSI < 25 / > 70 | 7.7% | −35.1% | 10 | 90% | $15,294 |
| RSI < 35 / > 70 | 19.3% | −37.8% | 20 | 85% | $27,500 |
| RSI < 30 / > 65 | 15.5% | −23.9% | 18 | 78% | $22,824 |
| RSI < 30 / > 75 | 12.7% | −34.5% | 10 | 80% | $19,868 |
Neighbouring settings
Four variants moved the buy and sell thresholds by a few points. Each is one change from the published rule of buy below 30 and sell above 70. The results differ more than the headline cost runs do, so the thresholds matter on this fund.
Entering below 25 and exiting above 70 gave 10 trades and 9 wins, a CAGR of 7.68%, a drawdown of 35.13%, an end equity of $15,294 and a Sharpe ratio of 0.454. A stricter oversold test means fewer entries, and on SOXX it cut the return. RSI(14) sat under 30 on only 7 sessions in the whole window.
Entering below 35 and exiting above 70 gave 20 trades and 17 wins, a CAGR of 19.27%, a drawdown of 37.81%, an end equity of $27,500 and a Sharpe ratio of 0.806. That is the best CAGR of the four, and it is also the deepest drawdown. A looser entry puts the rule in more often, which gives more return and more risk.
Exiting above 65 instead of 70 gave 18 trades with 14 winners, a CAGR of 15.46%, a drawdown of 23.89%, an end equity of $22,824 and a Sharpe ratio of 0.782. This variant has the shallowest drawdown of the group and a higher CAGR than the base. An earlier exit shortened the 2022 trade's exposure to the decline. Selling above 75 made 10 trades with 8 wins, a CAGR of 12.7%, a drawdown of 34.51%, an end equity of $19,868 and a Sharpe ratio of 0.598, which is level with the base.
The base setting of 30 and 70 is not the best of its neighbours on this fund. Three of the four variants scored higher on Sharpe, and the entry at 35 and the exit at 65 beat the base on CAGR. The four variants were run on a single fund and a single window. Nothing here shows that 35 or 65 would hold up on other dates, and choosing the best of four after the fact would overstate the rule.
How SOXX behaved
| Measure | SOXX |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | 388.4% |
| Annualized volatility | 38.1% |
| Deepest drawdown | −45.8% (2021-12-27 to 2022-10-14) |
| Up days | 53.9% |
| Average daily range | 2.58% |
| Average overnight gap | 1.07% |
| Correlation to SPY | 0.79 |
| Correlation to QQQ | 0.87 |
| Correlation to TLT | 0.05 |
| Sessions above the 200-day average | 70.7% |
| Crossings of the 200-day average | 38 |
| Falls of 10% or more from a 20-day high | 43 |
How SOXX behaved and what that did to an oversold signal
SOXX holds semiconductor companies. Its price return over the window was 388.35%, or 31.81% a year, and its volatility was 38.08% a year. The worst fall was 45.81%, and the fund spent 493 sessions in its longest drawdown. It lost 35.07% in 2022 and gained 95.9% in the partial 2026, with 66.96% in 2023 as the best full year.
Against SPY the fund had a beta of 1.84 and a correlation of 0.79. Against QQQ the figures were 1.49 and 0.87, and its correlation to TLT was 0.05. SOXL was its twin at a correlation of 1, and SOXS the mirror at -1. Among unleveraged funds XLK at 0.9 sat closest.
A typical day moved the fund 1.78% in either direction, and it closed higher on 53.92% of sessions. The best day was 18.84% on 2025-04-09 and the worst was -10.45% on 2026-06-05. The average daily range was 2.58% and the average gap at the open was 1.07%. Most of the log return arrived overnight, 136.36% against 21.22% inside the session. A fall of 10% or more from a 20-day high happened 43 times over 197 days.
The count matters most here. RSI(14) closed under 30 on 7 of 1444 sessions and over 70 on 121. After the oversold days the median 5-day return was 6.1% against 0.63% for all days, and the median 20-day return was 11.58% against 2.11%. Those are large numbers from 7 observations. RSI(2) closed under 10 on 133 sessions, followed by medians of 0.89% and 3.58%. The profile counts 7 sessions below 30, while the rule bought 14 times, and the two counts come from separate calculations.
SOXX closed above its 200-day average on 70.68% of sessions and crossed that line 38 times. Its lag-one autocorrelation was -0.09. A fund that lives above its long average rewards rules that hold, and a rule that waits for oversold readings sits out the climb. The ranking follows from that. The golden cross made 28.24% and the dip buyer 27.48%, and both held longer than this rule.
The rules
Buy when the 14-day RSI drops below 30 (oversold), sell when it recovers above 70 (overbought).
- WHEN the market opens · IF not invested AND RSI(14) < 30 · THEN buy with 98% of the sleeve
- WHEN the market opens · IF invested AND RSI(14) > 70 · THEN sell the whole position
A standard mean-reversion setup. The Relative Strength Index measures how stretched recent price action is. Readings under 30 have historically marked short-term washouts in uptrending assets. This template buys at the next session open and holds until RSI crosses back above 70. It has no profit target and no stop.
Good for: assets that trend up over time but overshoot on the way, such as broad index ETFs.
Watch out: in a persistent downtrend, RSI can stay oversold for weeks while the position keeps losing; there is no stop-loss in this template.
How the rules interact with this fund
The template buys at the open after RSI(14) falls below 30 and sells at the open after it rises above 70. For a fund with 38.08% volatility a reading under 30 means a sharp drop, so the rule entered after declines. Its biggest winners were rebounds: the trades from 2025-11-21 and 2026-09-03 returned 15.96% and 15.07% in under three weeks each.
The exit needs patience. RSI(14) closed over 70 on 121 sessions, so a strong run can sit above that level for days. The 75 exit variant landed near the base on CAGR at 12.7%, and the 65 exit variant made 15.46%, so the exit setting mattered less than the entry setting did.
SOXX placed 4th of the 59 funds for this rule. The rule's median CAGR was 2.98% over all 59 funds and 8.74% over the 6 sector funds, and SOXX's 12.78% was the highest in the sector group. XLF made 11.82% with a drawdown of 18.73%, XLK 8.74%, XLY 7%, XLP 6.51% with a drawdown of 9.64%, and VOX 2.39%. SOXX ranked high for the rule because the fund itself was strong, and the rule ranked 11th of 12 on the fund.
The record stops at one window and 14 trades. Two losers make up the whole downside in the sample, and the 2022 decline supplied the larger one. A window with more declines like it would show a lower win rate. The figures are hypothetical.
Build it from blocks (or type it in English), backtest it on 5.7 years of minute data in seconds, tweak any parameter, then paper trade it on live data. No card, no broker needed to start.
Frequently asked questions
Did RSI mean reversion beat buy-and-hold on SOXX?
Over 2021-01-04 to 2026-10-02, RSI mean reversion on SOXX returned 12.8% annualized vs 31.1% for buy-and-hold: it trailed buy-and-hold by 18.3% per year, with a maximum drawdown 10.1 points shallower than holding (35.0% vs 45.1%).
How many trades did it make?
14 completed round trips over 5.7 years (28 fills), with 86% of round trips closing profitably.
Why RSI 30/70?
They are the conventional oversold and overbought bands from Welles Wilder's original formulation. Treat them as a starting point. In DeployQuant you can change them to 25/65 or anything else and re-backtest in seconds.
Does this strategy use a stop-loss?
No. The only exit is RSI recovering above 70. Adding a stop or a take-profit block is a one-block edit in the Lab.
What did RSI mean reversion earn on SOXX?
A $10,000 account grew to $19,948 over the window, which is 12.78% a year with a 35.01% maximum drawdown. Holding the fund earned 31.11% a year with a 45.06% drawdown. The rule led only in 2022.
Why is the win rate 86% when the CAGR is below buy-and-hold?
Winning is counted per trade and return is counted per day. The rule held a position on only 30.7% of days, and the fund rose 388.35% while the rule was often in cash. The average winner gained 8.24%.
What was the worst trade?
It began on 2022-01-21 and ended on 2022-07-21 with a 17.06% loss after 181 days. The template has no stop and waits for RSI(14) to exceed 70, which the 2022 decline delayed.
What happens to the result with trading costs?
With 5 basis points per fill the CAGR was 12.57%, and with 10 it was 12.29%, compared with 12.78% before costs. Only 28 fills were needed, so the drag is light.
Would different RSI thresholds work better?
Entering below 35 gave a CAGR of 19.27% and exiting above 65 gave 15.46%, both above the base 12.78%. Entering below 25 gave 7.68%. All three are single-window results.
How often did RSI(14) fall below 30 on SOXX?
On 7 sessions between 2021-01-04 and 2026-10-02. The median return over the following 5 days was 6.1%, compared with 0.63% across all days, and it rests on only those 7 readings.
Related
Backtests are hypothetical, computed by DeployQuant's engine on minute-resolution consolidated US market data (2021-01-04 to 2026-10-02, $10,000 starting capital, no margin, no fees or slippage in the headline run; buy-and-hold puts 98% of the account in at the first open, as the templates do) and do not guarantee future results. Nothing on this page is investment advice. Live trading involves risk of loss.