In 30 tests of the textbook RSI rule (signal matrix v1, buy after RSI 14 closes below 30, sell after it closes above 70) on AUDUSD, EURUSD, GBPUSD, XAUUSD and BTCUSD hourly bars between October 2016 and October 2026, at six holding periods and with between 291 and 1,983 non overlapping cases each, 17 averaged above zero after costs and only 2 were beyond what chance alone produces, and both of those were losses. The rule showed no reliable edge on these five markets. Past results, not a forecast.
RSI, the relative strength index, is a number from 0 to 100 that compares the size of recent price gains with the size of recent losses. A high reading means gains have been larger than losses over the window, and a low reading means the reverse. The usual window is 14 periods, and the usual marks are 70 and 30.
Last updated 26 Nov 2026. Reviewed by the Custom Trading Platform education desk. Every figure on this page is sample arithmetic, shown in full.
Sixteen closes are used: 44, 44.5, 43.8, 44.6, 45.2, 45, 45.8, 46.3, 45.9, 46.5, 47, 46.4, 46.9, 47.4, 47.1 and 46.2. The first 14 changes are plus 0.5, minus 0.7, plus 0.8, plus 0.6, minus 0.2, plus 0.8, plus 0.5, minus 0.4, plus 0.6, plus 0.5, minus 0.6, plus 0.5, plus 0.5 and minus 0.3. The gains add to 5.3 and the losses add to 2.2. Average gain is 5.3 divided by 14, which is 0.3786. Average loss is 2.2 divided by 14, which is 0.1571. RS is 2.409. RSI is 100 minus 100 divided by 3.409, which is 70.7.
| Step | Working | Result |
|---|---|---|
| Sum of gains, first 14 changes | 0.5 + 0.8 + 0.6 + 0.8 + 0.5 + 0.6 + 0.5 + 0.5 + 0.5 | 5.3 |
| Sum of losses, first 14 changes | 0.7 + 0.2 + 0.4 + 0.6 + 0.3 | 2.2 |
| Average gain and average loss | 5.3 / 14 and 2.2 / 14 | 0.3786 and 0.1571 |
| RS | 0.3786 / 0.1571 | 2.409 |
| RSI | 100 - 100 / (1 + 2.409) | 70.7 |
The 15th change is minus 0.9, the close falling from 47.1 to 46.2. The gain for the period is 0 and the loss is 0.9. New average gain is (0.3786 times 13 plus 0) divided by 14, which is 0.3515. New average loss is (0.1571 times 13 plus 0.9) divided by 14, which is 0.2102. RS is 0.3515 divided by 0.2102, which is 1.672. RSI is 100 minus 100 divided by 2.672, which is 62.6. One falling day took the reading from 70.7 to 62.6.
| RS (average gain over average loss) | RSI |
|---|---|
| 0.25 | 20.0 |
| 0.4286 | 30.0 |
| 1 | 50.0 |
| 2.333 | 70.0 |
| 4 | 80.0 |
RSI is 50 when average gains equal average losses. It reaches 70 when average gain is 2.333 times average loss, and 30 when average gain is 0.4286 of average loss.
The formula does not change. It only needs closing prices, so it applies to a share, a currency pair, an index or a coin. What changes is how volatile the market is, and a more volatile market reaches the marks more often. Check the size of moves with the volatility calculator.
The test rule uses closed hourly bars: when 14 period RSI falls below 30, buy at the next open, and when it rises above 70, sell at the next open, then measure the move 4, 12, 24, 50, 72 and 168 bars later. Events are counted only when they do not overlap, so one move is not counted many times. These are results from past data on the markets and dates shown. They describe what happened. They do not predict what will happen and are not advice or a signal.
Engine and question: signal matrix v1 asks what happened after the textbook rule, over all history, with a flat cost per market. The earlier years and last 730 days columns are the check on later data, and the beyond chance column is the luck check. The result in one sentence: across five markets and six horizons, which is 30 cases of the textbook rule, 17 averaged above zero after costs, 2 were beyond what chance alone produces, and both of those were losses (BTCUSD at 12 and 24 bars). The rule showed no reliable edge on these five markets. Past results, not a forecast.
The sentence to quote (the same form for every row): After RSI(14) closed below 30 or above 70 on BTCUSD hourly bars between 27 Aug 2017 and 12 Oct 2026, taking the textbook trade at the next open (buy below 30, sell above 70) and holding 24 bars made an average of minus 4.9 pips before costs and minus 5.9 after the 1.0 pip cost, in 1,120 non overlapping cases, and 46.4 of every 100 ended ahead. A pip on BTCUSD here is 0.1 of one percent of the price. Past results, not a forecast.
| Market | Horizon (bars) | Cases (n) | Average move before costs | Cost | Average move after costs | Share ending ahead after costs | Earlier years, after costs | Last 730 days, after costs | Beyond chance? |
|---|---|---|---|---|---|---|---|---|---|
| AUDUSD hourly | 4 | 1,702 | 1.06 | 1.17 | minus 0.11 | 50.4 | minus 0.4 | 1.11 | no (t 2.26) |
| AUDUSD hourly | 12 | 1,281 | 1.77 | 1.17 | 0.6 | 50.7 | 0.12 | 2.53 | no (t 2.07) |
| AUDUSD hourly | 24 | 1,022 | 1.74 | 1.17 | 0.57 | 49.4 | minus 0.19 | 3.63 | no (t 1.32) |
| AUDUSD hourly | 50 | 723 | 2.47 | 1.17 | 1.3 | 50.9 | 0.59 | 4.18 | no (t 1.08) |
| AUDUSD hourly | 72 | 587 | 2.45 | 1.17 | 1.28 | 50.1 | 0.55 | 4.26 | no (t 0.84) |
| AUDUSD hourly | 168 | 305 | 5.63 | 1.17 | 4.46 | 50.5 | 6.6 | minus 7.36 | no (t 0.9) |
| EURUSD hourly | 4 | 1,700 | 0.37 | 1.119 | minus 0.75 | 48.4 | minus 0.76 | minus 0.71 | no (t 0.62) |
| EURUSD hourly | 12 | 1,320 | 2.26 | 1.119 | 1.14 | 50.5 | 0.75 | 2.87 | no (t 2.19) |
| EURUSD hourly | 24 | 1,049 | 0.74 | 1.119 | minus 0.38 | 48 | minus 0.38 | minus 0.37 | no (t 0.47) |
| EURUSD hourly | 50 | 730 | 1.57 | 1.119 | 0.45 | 51 | 1.71 | minus 4.69 | no (t 0.59) |
| EURUSD hourly | 72 | 590 | 2.51 | 1.119 | 1.39 | 50.7 | 2.72 | minus 5.56 | no (t 0.71) |
| EURUSD hourly | 168 | 308 | 5.74 | 1.119 | 4.62 | 53.9 | 5.33 | 1.88 | no (t 0.79) |
| GBPUSD hourly | 4 | 1,761 | 1.53 | 1.241 | 0.29 | 50.5 | 0.53 | minus 0.75 | no (t 1.95) |
| GBPUSD hourly | 12 | 1,365 | 2.93 | 1.241 | 1.69 | 52.7 | 2.04 | 0.17 | no (t 2.05) |
| GBPUSD hourly | 24 | 1,074 | 1.92 | 1.241 | 0.68 | 48.5 | 1.4 | minus 2.4 | no (t 0.88) |
| GBPUSD hourly | 50 | 739 | 3.51 | 1.241 | 2.27 | 51.6 | 3.71 | minus 3.92 | no (t 0.99) |
| GBPUSD hourly | 72 | 578 | 3.82 | 1.241 | 2.58 | 51 | 3.17 | 0.13 | no (t 0.77) |
| GBPUSD hourly | 168 | 308 | 20.82 | 1.241 | 19.58 | 52.3 | 16.92 | 30.23 | no (t 2.05) |
| XAUUSD hourly | 4 | 1,748 | minus 2.33 | 1.773 | minus 4.1 | 48.3 | minus 1.02 | minus 16.24 | no (t minus 0.73) |
| XAUUSD hourly | 12 | 1,330 | minus 14.21 | 1.773 | minus 15.98 | 49.7 | minus 6.99 | minus 51.61 | no (t minus 2.17) |
| XAUUSD hourly | 24 | 1,033 | minus 13.7 | 1.773 | minus 15.47 | 48.8 | minus 7.1 | minus 49.69 | no (t minus 1.27) |
| XAUUSD hourly | 50 | 718 | 2.36 | 1.773 | 0.59 | 50 | minus 0.97 | 7.18 | no (t 0.15) |
| XAUUSD hourly | 72 | 563 | minus 20.3 | 1.773 | minus 22.07 | 49.9 | minus 2.65 | minus 101.18 | no (t minus 0.8) |
| XAUUSD hourly | 168 | 291 | 8.58 | 1.773 | 6.81 | 52.6 | minus 21.32 | 119.72 | no (t 0.17) |
| BTCUSD hourly | 4 | 1,983 | minus 0.32 | 1 | minus 1.32 | 48.5 | minus 1.42 | minus 1.01 | no (t minus 0.82) |
| BTCUSD hourly | 12 | 1,477 | minus 3.2 | 1 | minus 4.2 | 47.5 | minus 5.08 | minus 1.41 | yes, in the losing direction (t minus 4.12) |
| BTCUSD hourly | 24 | 1,120 | minus 4.9 | 1 | minus 5.9 | 46.4 | minus 7.24 | minus 1.69 | yes, in the losing direction (t minus 4.09) |
| BTCUSD hourly | 50 | 811 | minus 4.84 | 1 | minus 5.84 | 49.1 | minus 6.13 | minus 4.93 | no (t minus 2.43) |
| BTCUSD hourly | 72 | 659 | minus 4.94 | 1 | minus 5.94 | 51.9 | minus 8.12 | 0.82 | no (t minus 1.93) |
| BTCUSD hourly | 168 | 343 | minus 9.47 | 1 | minus 10.47 | 47.5 | minus 12.84 | minus 3.63 | no (t minus 1.73) |
How to read the table. A pip is 0.0001 for AUDUSD, EURUSD and GBPUSD, 0.1 dollar for XAUUSD and 0.1 of one percent of the price for BTCUSD, so move sizes are not comparable across markets, only the sign and the share ending ahead are. Cost is per round trip in the same pips: the measured average spread, 0.4 for slippage and 0.7 for commission on the three currency pairs (AUDUSD 1.17, EURUSD 1.119, GBPUSD 1.241). The XAUUSD cost (1.773) and BTCUSD cost (1.0) are assumptions, and a tick level spread read would refine them. Swap is not included. Data runs from October 2016 for the currency pairs and gold, and from August 2017 for BTCUSD, to October 2026. "Last 730 days" is the most recent two years held apart from the earlier years. A row is marked beyond chance when its t statistic is larger than the 95th percentile of the best result found by shuffling event dates (AUDUSD 3.74, EURUSD 3.98, GBPUSD 3.75, XAUUSD 4.09, BTCUSD 3.85), because each market tested 528 signal and horizon cells and some look good by chance.
The chart for this table has one line per horizon, the average move after costs on the vertical axis, the all bars baseline as a grey line and the interval as a band. Hollow dots mark horizons with a small number of cases. Template: img/rsi-matrix-template.svg.
The full method, the cost assumption and the chance check are on the signal tests method page. The test was run on the signal matrix with a flat cost per market, not on a tick level tester. The costs and the newer events (divergence especially) have not been checked independently by a second person. Other levels, periods and markets are on the guides linked under Related once they exist. Every row shows n, because a small number of cases can mislead.
| Signal matrix v1 | Signal matrix v2 | |
|---|---|---|
| Question | What happened after the textbook rule (buy below 30, sell above 70)? | Which rules, of any shape, held on data they had not seen? |
| Marks | Fixed: 30 and 70 | Taken from the market's own history, such as the highest 5 of every 100 readings |
| Rule | One chosen rule at a time | Single readings, two readings together, or one reading then another within a few bars |
| Measure | Average move and share ending ahead, over all history | Share of cases with a clear move (at least half the usual move), on the last part of history kept hidden |
| Luck check | Dates of events shuffled, 95th percentile of the best result | Rule events slid by a random jump and run through the same test |
| Cost | Flat per market (spread, slippage, commission) | Measured spread at the hour the trade opens, plus commission both ways |
| Markets here | AUDUSD, EURUSD, GBPUSD, XAUUSD, BTCUSD hourly | AUDUSD hourly so far |
The two figures are never added or averaged. The table above answers the v1 question. The table below answers the v2 question.
The v2 test used AUDUSD hourly bars from October 2017 to September 2026. Each rule was chosen on the first 70 of every 100 bars and then counted on the rest, from 2 January 2024, which it had not seen, with a gap of 50 bars between the two. A clear move is one of at least half the usual move over that many bars, and a smaller drift counts as flat. Costs are included: the spread measured from real ticks at the hour the trade opens, plus commission both ways. Real fills can be worse. These are results from past data and they do not predict what will happen.
The result in one sentence: in v2, no single RSI reading on its own is among the strongest rules that held on the unseen data after costs. The rules that held paired an RSI extreme with a second condition within a few bars, the gains were small (0.0033 to 0.3511 of one percent per trade after costs, on 34 to 176 unseen cases), and the luck check found about as many rules passing by chance in this RSI set as passed in the real test, so each rule is a hypothesis and not a finding. Past results, not a forecast.
| Rule (plain words) | Way | Horizon (bars) | Clear move the rule's way, of every 100 unseen cases | Flat | Clear move against | Unseen cases (n) | Usual move over that many bars | Net per trade after costs |
|---|---|---|---|---|---|---|---|---|
| RSI RSI is below 33.53 (its lowest 10 percent) ; then, within 20 bars: MACD MACD is below -0.001768 (its lowest 5 percent) | up | 20 | 58.8 | 20.6 | 20.6 | 34 (small sample) | 0.3364 of one percent | 0.3511 of one percent |
| RSI RSI is above 70.11 (its highest 5 percent) ; then, within 10 bars: MACD Histogram is above 0.0004894 (its highest 5 percent) | down | 5 | 51.1 | 23.4 | 25.5 | 47 (small sample) | 0.1488 of one percent | 0.0829 of one percent |
| Stochastic K is below 8.48 (its lowest 5 percent) ; then, within 20 bars: RSI RSI is below 29.29 (its lowest 5 percent) | up | 1 | 47.7 | 22.8 | 29.5 | 176 | 0.062 of one percent | 0.0033 of one percent |
| price crosses below Bollinger Bands Mid ; then, within 20 bars: RSI RSI is above 70.11 (its highest 5 percent) | down | 10 | 44.4 | 34.4 | 21.2 | 99 (small sample) | 0.2284 of one percent | 0.0473 of one percent |
| RSI RSI is above 70.11 (its highest 5 percent) AND MACD Histogram is above 0.0003643 (its highest 10 percent) | down | 10 | 44.4 | 32 | 23.6 | 72 (small sample) | 0.2284 of one percent | 0.0628 of one percent |
These five rows are examples, not the whole result, and rows with fewer than 100 unseen cases are small samples. The textbook marks in v2 (AUDUSD hourly, unseen part). RSI 14 below 30 did not hold: on 190 unseen cases a clear move the textbook way (up) came 30 times in 100 and a clear move against it 42.1 times in 100. RSI 14 above 70 held before costs only (192 cases, 38 for and 30.2 against). Bullish divergence (131 cases) and bearish divergence (100 cases) did not hold, and neither did stochastic RSI or Connors RSI at their usual marks. Costs for other markets use the spread recorded on each bar of the price file where no tick sample exists, and swap is excluded. They answer a different question from the v1 table, and the v1 conclusion (no reliable edge for the textbook rule) is not changed by them.
RSI does not say what happens next. A reading of 75 does not mean price will fall, and a reading of 25 does not mean it will rise. It uses only closes, so it ignores gaps inside a period, volume and news. Different tools use slightly different smoothing, so two charts can show a different value for the same prices.
RSI says nothing about how much to risk. Whatever you act on, size the position from the loss you accept at your stop, using the position size calculator and the stop loss calculator.
Every figure on this page is sample arithmetic, shown in full, as of 26 Nov 2026. The formula is the standard 14 period relative strength index with Wilder smoothing. Each worked example is recomputed by a second method before it is kept, and the table rows are checked against the formula. No market data, index level or stock is stated. How we check numbers is on the methodology page, the people behind the site are on the about page, and corrections go through contact.
We will run both examples and every row of the table through a second spreadsheet calculation, compare with the working above, and repeat at a second set of sample closes and at windows of 7 and 21. Last tested: not yet, results pending.
What is RSI in trading? A 0 to 100 reading that compares the size of recent gains with recent losses, usually over 14 periods.
How is RSI calculated? Divide average gain by average loss to get RS, then compute 100 minus 100 divided by (1 plus RS).
What is a good RSI number? There is no good number. A reading describes recent momentum, and the useful question is what it shows in the market you trade.
What does an RSI of 70 mean? Average gains over the window are about 2.3 times average losses. It is often called overbought, but a strong trend can hold there.
What does an RSI of 30 mean? Average gains are about 0.43 of average losses. It is often called oversold, and a weak trend can hold there.
What is RSI in stocks? The same formula applied to the closing prices of a share.
What RSI setting is best? The standard is 14. Shorter windows react faster and give more crossings, longer windows are smoother. Test the window on your own market.
What is RSI divergence? Price and RSI making different highs or lows, which some traders read as momentum fading.
What is stochastic RSI? The stochastic formula applied to RSI values, so it ranges faster between its limits.
Glossary, RSI indicator test, RSI divergence test, MACD indicator test, Bollinger Bands test, volatility, volatility calculator, stop loss calculator, position size calculator, disclaimer.
Start free: create a free account to get the weekly note on tools and tests.
Education only. Nothing here is financial advice or a signal.
The exact rule and how we test it: RSI indicator test page.
More: all indicator guides, glossary.
© 2026 Custom Trading Platform
Nothing here is financial advice, a signal or an offer. Trading can lose money, and on some products more than you put in. Past results describe the past.