Home / Guides / Stochastic RSI

Stochastic RSI

Stochastic RSI is the stochastic formula applied to RSI values, so it shows where RSI sits inside its own recent range.

Illustration for the stochastic-rsi guide: the RSI scale from 0 to 100 with marks near 30 and 70 and a reading line.

Across five markets and six holding periods, tested both ways (buying below 20 and selling above 80, and buying back up through 20 and selling back down through 80), which is 60 cases on hourly bars from October 2016 to October 2026 with between 337 and 6,438 non overlapping cases each, 12 averaged above zero after costs, 0 were beyond what chance alone produces in the winning direction, and 1 in the losing direction. Stochastic RSI showed no reliable edge on these five markets. Past results, not a forecast.

Last updated 26 Nov 2026. Reviewed by the Custom Trading Platform education desk. Every figure is either sample arithmetic, shown in full, or a result from our own tests on past data, with its cases, period and cost.

The short answer in four lines

  • Stochastic RSI is the stochastic formula applied to RSI values instead of prices.
  • It places the current RSI inside its own recent range, from 0 (the lowest RSI of the window) to 100 (the highest), so it swings faster than RSI.
  • Marks of 20 and 80 are usual, and it crosses them far more often than RSI crosses 30 and 70.
  • It is a measure of a measure: it adds no new market information.

The formula

  • Compute RSI over a period, usually 14. See the RSI guide.
  • Over the last 14 RSI values, find the highest and the lowest.
  • Stochastic RSI equals (current RSI minus lowest RSI) divided by (highest RSI minus lowest RSI), shown from 0 to 100 here.
  • Many charts then smooth it with a 3 bar average, called %K, and average that again for %D. Our test uses the 3 bar %K.
  • If the highest and lowest RSI are equal, the value is undefined.

Worked example (sample numbers)

The last 14 RSI values are 58, 63, 67, 71, 69, 64, 60, 55, 50, 47, 44, 46, 51 and 55. The highest is 71 and the lowest is 44, so the range is 27. The latest RSI is 55, so stochastic RSI is (55 minus 44) divided by 27, which is 0.407, or 40.7 on a 0 to 100 scale. One bar later RSI is 49 and the window drops 58 and adds 49. The range is still 27 and stochastic RSI is (49 minus 44) divided by 27, which is 0.185, or 18.5, below the mark of 20. RSI moved 6 points, from 55 to 49, and stochastic RSI moved 22 points, from 40.7 to 18.5. That is why it crosses its marks so often.

RSI values in the windowHighestLowestLatest RSIStochastic RSI
58 to 55 (14 values)714455(55 - 44) / 27 = 40.7
63 to 49 (14 values)714449(49 - 44) / 27 = 18.5

Check your own closes with the RSI calculator.

How it differs from RSI

RSIStochastic RSI
Built fromClosing price changesRSI values
Range0 to 1000 to 100 (or 0 to 1)
Usual marks30 and 7020 and 80
SpeedSlowerFaster, more crossings
New informationGains against lossesNone: the same RSI, rescaled

The rule used in the test

The test uses 14 period RSI, a 14 bar stochastic of it, and a 3 bar average, on closed hourly bars. The first rule buys at the next open when it falls below 20 and sells when it rises above 80. The second buys when it rises back up through 20 and sells when it falls back down through 80. The result is measured 4, 12, 24, 50, 72 and 168 bars later. Events are counted only when they do not overlap. 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. The first rule is shown in full below; the second gave 3 of 30 cells above zero after costs and 1 beyond chance in the losing direction.

MarketHorizon (bars)Cases (n)Average move before costsCostAverage move after costsShare ending ahead after costsEarlier years, after costsLast 730 days, after costsBeyond chance?
AUDUSD hourly45,6740.311.17minus 0.8647.3minus 0.99minus 0.38no (t 1.28)
AUDUSD hourly123,4600.371.17minus 0.848.8minus 0.45minus 2.18no (t 0.69)
AUDUSD hourly242,0521.391.170.2249.81.1minus 3.11no (t 1.49)
AUDUSD hourly501,1015.31.174.1353.54.473.15no (t 2.84)
AUDUSD hourly72796minus 0.651.17minus 1.8249.5minus 1.63minus 6.02no (t minus 0.26)
AUDUSD hourly168357minus 8.121.17minus 9.2946.8minus 14.130.22no (t minus 1.34)
EURUSD hourly45,6700.181.119minus 0.9447minus 0.89minus 1.15no (t 0.64)
EURUSD hourly123,4491.261.1190.1448.90.46minus 1.12no (t 2.02)
EURUSD hourly242,0771.141.1190.0249.4minus 0.240.77no (t 1.05)
EURUSD hourly501,108minus 2.691.119minus 3.8147.3minus 5.161.58no (t minus 1.25)
EURUSD hourly727976.211.1195.0952.42.8514.07no (t 2.04)
EURUSD hourly168356minus 0.881.119minus 252.8minus 3minus 12.32no (t minus 0.13)
GBPUSD hourly45,5660.121.241minus 1.1247.2minus 1.16minus 0.96no (t 0.31)
GBPUSD hourly123,3940.661.241minus 0.5850minus 0.31minus 1.62no (t 0.75)
GBPUSD hourly242,0523.371.2412.1352.11.524.55no (t 2.24)
GBPUSD hourly501,1033.681.2412.4448.62.950.4no (t 1.24)
GBPUSD hourly727942.41.2411.1650.62.34minus 3.7no (t 0.55)
GBPUSD hourly16835715.971.24114.7354.115.6211.23no (t 1.77)
XAUUSD hourly45,329minus 0.11.773minus 1.8748.7minus 0.64minus 6.86no (t minus 0.06)
XAUUSD hourly123,273minus 4.741.773minus 6.5249.60.58minus 34.89no (t minus 1.26)
XAUUSD hourly241,948minus 7.211.773minus 8.9850.32.76minus 54.83no (t minus 1)
XAUUSD hourly501,0470.671.773minus 1.151.38.8minus 36.22no (t 0.05)
XAUUSD hourly72752minus 32.911.773minus 34.6848.5minus 8.94minus 195.55no (t minus 1.72)
XAUUSD hourly168339minus 109.711.773minus 111.484922.8873.1no (t minus 2.44)
BTCUSD hourly46,3940.11minus 0.946.1minus 0.89minus 0.92no (t 0.55)
BTCUSD hourly123,899minus 0.121minus 1.1247.9minus 1.09minus 1.22no (t minus 0.3)
BTCUSD hourly242,3170.31minus 0.748.5minus 0.42minus 1.56no (t 0.38)
BTCUSD hourly501,249minus 0.991minus 1.9948minus 2.14minus 1.52no (t minus 0.66)
BTCUSD hourly72898minus 1.81minus 2.847.6minus 4.883.45no (t minus 0.83)
BTCUSD hourly168402minus 2.231minus 3.2352minus 1.59minus 7.32no (t minus 0.44)

How to read the table. Engine: signal matrix v1 (what happened after the textbook rule, over all history, AUDUSD, EURUSD, GBPUSD, XAUUSD and BTCUSD hourly, October 2016 to October 2026). The unseen data check is the last 730 days against the earlier years, the luck check is the beyond chance column, and the cost assumption is stated below. 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 per round trip, in the same pips: AUDUSD 1.17, EURUSD 1.119, GBPUSD 1.241 (measured average spread plus 0.4 slippage plus 0.7 commission), XAUUSD 1.773 and BTCUSD 1.0 (assumptions). 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 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.

Did the 20 and 80 marks hold on data they had not seen (signal matrix v2)

Engine and question: signal matrix v2 asks which rules held on data they had not seen. Each rule was chosen on the first 70 of every 100 bars and counted on the rest (hidden until then, with a gap of 50 bars): from 2 January 2024 on AUDUSD, 12 February 2024 on EURUSD, 12 February 2024 on GBPUSD, 2 February 2024 on XAUUSD, 21 May 2024 on BTCUSD, hourly bars. A clear move is at least half the usual move over that many bars, and a smaller drift counts as flat. Costs are included: for AUDUSD, EURUSD, GBPUSD and XAUUSD the spread measured from real ticks at the hour the trade opens plus commission both ways, and for BTCUSD the median spread recorded on each bar with no commission, because there is no tick sample. Swap is excluded and real fills can be worse. In the wider RSI test set, AUDUSD held about as often as luck alone would give, and the other four markets held less often than luck would, so every rule that held is a hypothesis, not a finding. The rules below were chosen before the results and every one is shown, including those that did not hold. These are results from past data and they do not predict what will happen. The v2 results are never added to the v1 results above.

MarketRuleVerdictWayHorizon (bars)Clear move the rule's way, of every 100 unseen casesFlatClear move againstUnseen cases (n)Net per trade after costs
AUDUSDstochastic RSI below 20does not holdup1035.131.933834minus 0.0108 of one percent
AUDUSDstochastic RSI above 80does not holddown135.330.434.31299minus 0.0114 of one percent
EURUSDstochastic RSI below 20does not holddown5032.431.735.9284minus 0.0268 of one percent
EURUSDstochastic RSI above 80does not holddown1035.329.135.6832minus 0.0131 of one percent
GBPUSDstochastic RSI below 20does not holdup136.430.233.41308minus 0.0044 of one percent
GBPUSDstochastic RSI above 80does not holddown134.831.433.81301minus 0.0123 of one percent
XAUUSDstochastic RSI below 20does not holdup546.217.236.612240.0211 of one percent
XAUUSDstochastic RSI above 80does not holdup5050.22029.82650.3966 of one percent
BTCUSDstochastic RSI below 20does not holdup334.235.430.41562minus 0.0292 of one percent
BTCUSDstochastic RSI above 80does not holddown13336.930.11636minus 0.0356 of one percent
RuleAUDUSDEURUSDGBPUSDXAUUSDBTCUSD
stochastic RSI below 20does not holddoes not holddoes not holddoes not holddoes not hold
stochastic RSI above 80does not holddoes not holddoes not holddoes not holddoes not hold

The usual marks are the ones tested, and none was tuned. This answers a different question from the v1 table above and the two are not combined.

What it cannot tell you

A reading near 0 or 100 says RSI is at the edge of its own recent range, not that price is about to turn. A fast indicator crosses its marks often, and each crossing carries the cost of a trade. These tests were run on the signal matrix with a flat cost per market (spread, slippage and commission, not swap). The gold and BTCUSD costs are assumptions, and a tick level spread read would refine them. The newer events, divergence especially, and the costs have not been checked independently by a second person.

Sources and method

The worked example is sample arithmetic as of 26 Nov 2026. The test figures come from the signal matrix run of 26 Nov 2026 in a copy of our engine, with a manifest, on hourly bars to October 2026. How we check numbers is on the methodology page, the people behind the site are on the about page, and corrections go through contact.

How we will test it

We will recompute the two example readings in a spreadsheet, recalculate the table from the manifest, and repeat with a 5 bar average. Last tested: not yet, results pending.

Questions people type

What is stochastic RSI? The stochastic formula applied to RSI values: where the current RSI sits between the lowest and highest RSI of the last 14 bars.

How do you calculate stochastic RSI? Subtract the lowest RSI of the window from the current RSI and divide by the highest minus the lowest.

What is the difference between RSI and stochastic RSI? RSI measures gains against losses in price. Stochastic RSI measures where RSI sits inside its own range, so it moves faster and crosses its marks more often.

What are the overbought and oversold levels for stochastic RSI? Marks of 80 and 20 are usual, or 0.8 and 0.2 on a 0 to 1 scale.

Is stochastic RSI better than RSI? It is faster, not better. In our tests neither showed a reliable edge on five markets.

What settings does stochastic RSI use? A 14 period RSI, a 14 bar stochastic of it, and often a 3 bar average. Other settings give different crossings and results.

Related

Glossary, RSI guide, RSI calculator, RSI indicator test, RSI divergence test, MACD indicator test, Bollinger Bands test, 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.

More: all indicator guides, guides.

See also: Best RSI settings.