The stochastic oscillator is a 0 to 100 reading of where the latest close sits inside the highest and lowest prices of the last N bars. Near 100 the close is at the top of its recent range, near 0 it is at the bottom. The usual window is 14 bars, and the usual marks are 80 and 20.
On AUDUSD, EURUSD, GBPUSD, XAUUSD and BTCUSD hourly bars, a stochastic reading in the extreme did not hold on unseen data after costs on any market (signal matrix v2), and the v1 test of the textbook rule (the K line crossing the D line in an extreme zone) averaged above zero after costs in 9 of 30 cases with 0 beyond chance in the winning direction. The stochastic showed no reliable edge. Past results, not a forecast.
Last updated 27 Nov 2026. Reviewed by the Custom Trading Platform education desk. Worked figures are sample arithmetic, shown in full. Test figures are results from our own tests on past data, with their cases, period and cost.
A window of 5 bars is used so the working fits on a page. Seven bars of high, low and close: (12, 10, 11), (13, 11, 12), (14, 12, 13), (13, 11, 12), (15, 12, 14), (14, 11, 12) and (15, 12, 13).
| Bar | Window | Highest high | Lowest low | Close | %K working | %K |
|---|---|---|---|---|---|---|
| 5 | bars 1 to 5 | 15 | 10 | 14 | (14 - 10) / (15 - 10) x 100 | 80 |
| 6 | bars 2 to 6 | 15 | 11 | 12 | (12 - 11) / (15 - 11) x 100 | 25 |
| 7 | bars 3 to 7 | 15 | 11 | 13 | (13 - 11) / (15 - 11) x 100 | 50 |
%D at bar 7 is the average of 80, 25 and 50, which is 51.67. One bar closing lower took %K from 80 to 25, a drop of 55 points, which shows how fast the raw line swings. %D, the 3 bar average, moves much less than %K, which is why many charts show both. Compare the RSI guide, which reads gains against losses instead.
| Stochastic | RSI | |
|---|---|---|
| Built from | Close inside the recent high to low range | Average gain against average loss |
| Range | 0 to 100 | 0 to 100 |
| Usual marks | 80 and 20 | 70 and 30 |
| Speed | Faster, swings more | Slower |
| Needs highs and lows | Yes | No, closes only |
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, 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. Costs are included (for AUDUSD, EURUSD, GBPUSD and XAUUSD the spread measured from real ticks plus commission both ways, and for BTCUSD the median spread recorded on each bar), swap is excluded and real fills can be worse. In the wider set of rules tested, fewer held than luck alone would give on most markets, so any rule that held is a hypothesis, not a finding. These are results from past data and they do not predict what will happen.
| Rule | AUDUSD | EURUSD | GBPUSD | XAUUSD | BTCUSD |
|---|---|---|---|---|---|
| K in its lowest 10 of every 100 readings (oversold) | does not hold | does not hold | does not hold | holds before costs only | holds before costs only |
| K in its highest 10 of every 100 readings (overbought) | does not hold | holds before costs only | does not hold | does not hold | does not hold |
The rules that held, and all the others with their figures.
| Market | Rule | Verdict | Way | Horizon (bars) | Clear move that way, of every 100 unseen cases | Flat | Clear move against | Unseen cases (n) | Net per trade after costs |
|---|---|---|---|---|---|---|---|---|---|
| AUDUSD | K in its lowest 10 of every 100 readings (oversold) | does not hold | up | 3 | 37.8 | 30.2 | 32 | 450 | minus 0.0001 of one percent |
| AUDUSD | K in its highest 10 of every 100 readings (overbought) | does not hold | down | 50 | 33.8 | 34.4 | 31.8 | 198 | minus 0.0268 of one percent |
| EURUSD | K in its lowest 10 of every 100 readings (oversold) | does not hold | up | 5 | 41.9 | 31.3 | 26.8 | 470 | 0.0135 of one percent |
| EURUSD | K in its highest 10 of every 100 readings (overbought) | holds before costs only | down | 1 | 38.3 | 30.4 | 31.3 | 486 | minus 0.0014 of one percent |
| GBPUSD | K in its lowest 10 of every 100 readings (oversold) | does not hold | up | 3 | 40 | 31.2 | 28.8 | 475 | 0.005 of one percent |
| GBPUSD | K in its highest 10 of every 100 readings (overbought) | does not hold | down | 10 | 32.6 | 31.8 | 35.6 | 362 | minus 0.0262 of one percent |
| XAUUSD | K in its lowest 10 of every 100 readings (oversold) | holds before costs only | up | 1 | 48.6 | 12.7 | 38.7 | 401 | minus 0.007 of one percent |
| XAUUSD | K in its highest 10 of every 100 readings (overbought) | does not hold | up | 50 | 51.4 | 11.8 | 36.8 | 212 | 0.2473 of one percent |
| BTCUSD | K in its lowest 10 of every 100 readings (oversold) | holds before costs only | up | 1 | 40.9 | 29.2 | 29.9 | 785 | 0.005 of one percent |
| BTCUSD | K in its highest 10 of every 100 readings (overbought) | does not hold | up | 20 | 29 | 38.1 | 32.9 | 417 | minus 0.1011 of one percent |
Engine: signal matrix v1 (what happened after the textbook rule, over all history). The rule buys at the next open when %K crosses above %D with %K under 30, and sells when %K crosses below %D with %K over 70, on closed hourly bars, 14 bar window, and measures the move 4, 12, 24, 50, 72 and 168 bars later. Events are counted only when they do not overlap. The unseen data check is the last 730 days against the earlier years, and the luck check is the beyond chance column. The v1 and v2 results answer different questions and are never added together.
| 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 | 6,237 | minus 0.19 | 1.17 | minus 1.36 | 46.4 | minus 1.37 | minus 1.29 | no (t minus 0.84) |
| AUDUSD hourly | 12 | 3,415 | 0.16 | 1.17 | minus 1.01 | 48 | minus 0.85 | minus 1.69 | no (t 0.31) |
| AUDUSD hourly | 24 | 2,068 | 2.17 | 1.17 | 1 | 50.2 | 1.59 | minus 1.43 | no (t 2.33) |
| AUDUSD hourly | 50 | 1,105 | minus 0.1 | 1.17 | minus 1.27 | 48.1 | minus 0.47 | minus 4.58 | no (t minus 0.06) |
| AUDUSD hourly | 72 | 799 | 2.26 | 1.17 | 1.09 | 51.7 | minus 0.54 | 4.5 | no (t 0.87) |
| AUDUSD hourly | 168 | 356 | 0.69 | 1.17 | minus 0.48 | 47.5 | 0.26 | minus 1.16 | no (t 0.12) |
| EURUSD hourly | 4 | 6,029 | 0.28 | 1.119 | minus 0.84 | 48.2 | minus 0.79 | minus 1.04 | no (t 1.03) |
| EURUSD hourly | 12 | 3,338 | 1.33 | 1.119 | 0.21 | 48.9 | 0.23 | 0.16 | no (t 2.17) |
| EURUSD hourly | 24 | 2,026 | 1.79 | 1.119 | 0.67 | 49.5 | 0.51 | 1.2 | no (t 1.63) |
| EURUSD hourly | 50 | 1,096 | 0.34 | 1.119 | minus 0.78 | 48.5 | minus 1.56 | 3.56 | no (t 0.16) |
| EURUSD hourly | 72 | 790 | 10.42 | 1.119 | 9.31 | 55.3 | 7.29 | 17.23 | no (t 3.36) |
| EURUSD hourly | 168 | 354 | 3.28 | 1.119 | 2.16 | 50.6 | 4.06 | minus 6.76 | no (t 0.5) |
| GBPUSD hourly | 4 | 6,041 | minus 0.27 | 1.241 | minus 1.51 | 46.2 | minus 1.33 | minus 2.23 | no (t minus 0.74) |
| GBPUSD hourly | 12 | 3,315 | minus 0.03 | 1.241 | minus 1.27 | 49.2 | minus 0.72 | minus 3.5 | no (t minus 0.03) |
| GBPUSD hourly | 24 | 2,034 | 0.54 | 1.241 | minus 0.7 | 49.9 | minus 0.65 | minus 0.9 | no (t 0.35) |
| GBPUSD hourly | 50 | 1,097 | 3.55 | 1.241 | 2.31 | 51.1 | 3.59 | minus 2.77 | no (t 1.22) |
| GBPUSD hourly | 72 | 786 | 3.46 | 1.241 | 2.22 | 52 | 2.03 | 1.78 | no (t 0.83) |
| GBPUSD hourly | 168 | 354 | minus 0.96 | 1.241 | minus 2.2 | 49.7 | minus 5.75 | 39.73 | no (t minus 0.11) |
| XAUUSD hourly | 4 | 5,617 | minus 3.93 | 1.773 | minus 5.7 | 48.9 | minus 2.77 | minus 17.48 | no (t minus 2.44) |
| XAUUSD hourly | 12 | 3,142 | minus 10.45 | 1.773 | minus 12.23 | 49.2 | minus 4.83 | minus 42.42 | no (t minus 2.71) |
| XAUUSD hourly | 24 | 1,910 | minus 14.48 | 1.773 | minus 16.26 | 49.1 | minus 8.78 | minus 46.27 | no (t minus 1.81) |
| XAUUSD hourly | 50 | 1,036 | minus 9.04 | 1.773 | minus 10.81 | 47.9 | minus 9.21 | minus 17.36 | no (t minus 0.65) |
| XAUUSD hourly | 72 | 751 | minus 19.75 | 1.773 | minus 21.52 | 47.3 | 9.24 | minus 154.04 | no (t minus 0.96) |
| XAUUSD hourly | 168 | 338 | minus 63.92 | 1.773 | minus 65.69 | 46.2 | minus 22.84 | minus 284.4 | no (t minus 1.63) |
| BTCUSD hourly | 4 | 6,002 | minus 0.43 | 1 | minus 1.43 | 45.9 | minus 1.45 | minus 1.38 | no (t minus 2.26) |
| BTCUSD hourly | 12 | 3,474 | minus 1.24 | 1 | minus 2.24 | 47.5 | minus 2.42 | minus 1.71 | no (t minus 2.73) |
| BTCUSD hourly | 24 | 2,175 | minus 0.98 | 1 | minus 1.98 | 50.6 | minus 2.37 | minus 0.84 | no (t minus 1.19) |
| BTCUSD hourly | 50 | 1,203 | minus 1.89 | 1 | minus 2.89 | 49 | minus 2.08 | minus 5.36 | no (t minus 1.18) |
| BTCUSD hourly | 72 | 872 | 0.88 | 1 | minus 0.12 | 50.5 | 1.41 | minus 4.46 | no (t 0.4) |
| BTCUSD hourly | 168 | 397 | 5.78 | 1 | 4.78 | 52.6 | 8.52 | minus 8.51 | no (t 1.07) |
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 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, and a tick level spread read would refine them). Swap is not included. 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). The v1 tests used a flat cost per market and have not been checked independently by a second person.
The stochastic says where the close sits in its range. It does not say which way price goes next. A trend can hold it near 100 or near 0 for long periods, and a crossing of K and D happens often, each with the cost of a trade.
Worked figures are sample arithmetic, shown in full, as of 27 Nov 2026, and each row was recomputed by a second method before it was kept. The v2 figures come from the signal matrix v2 requests of 27 Nov 2026 on hourly bars, and the v1 figures from the copy run of 26 Nov 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.
We will recompute the three rows and %D in a second spreadsheet, repeat with a window of 14 on a second set of sample bars, recalculate the v2 and v1 tables, and repeat after the next data update. Last tested: not yet, results pending.
What is the stochastic oscillator? A 0 to 100 reading of where the latest close sits inside the highest and lowest prices of the last N bars.
How do you calculate the stochastic oscillator? Subtract the lowest low from the close, divide by the highest high minus the lowest low, and multiply by 100. %D is a 3 bar average of that.
What does a stochastic reading above 80 mean? The close is near the top of its recent range. It is often called overbought, but a trend can hold it there.
What are the best stochastic settings? The usual setting is a 14 bar window with a 3 bar %D. The tests used it and found no reliable edge.
What is the difference between %K and %D? %K is the raw reading and %D is its 3 bar average, so %D is smoother and slower.
Is the stochastic better than RSI? It is faster, not better. In our tests neither showed a reliable edge on five markets.
Does the stochastic work? In our tests an extreme reading, or a cross in an extreme zone, did not show a reliable edge on five markets.
Glossary, RSI guide, stochastic RSI, RSI indicator test, MACD indicator test, Bollinger Bands test, volatility calculator, position size calculator, stop loss 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.
© 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.