In simple terms
Read the full settings first: 14 observations for the high/low range, three for smoothing %K, and three more for %D. Below 20 does not mean buy, and above 80 does not mean sell. A completed cross needs both the previous and current line values.
On this page
Name the price source and all three settings
We use archived BTC/USDT spot transaction-price OHLC, quoted in USDT per BTC, on UTC H4 intervals. In this guide, 14,3,3 means a 14-observation high/low range, SMA3 smoothing of raw %K, and SMA3 of the smoothed %K for %D. Bid, Ask and actual order fills are not observed.
Locate the close within the recent range
Take the lowest low and highest high of the current and previous 13 observed candles. Raw %K is 100 times the close’s fractional position between them. In the teaching range 100.00–110.00, a close of 102.00 gives 20. This describes position, not a probability or return.
LL14 = MIN(L, 14); HH14 = MAX(H, 14)
RawK_t = 100 × (C_t − LL14_t) / (HH14_t − LL14_t)
Teaching example: a close at 20% of the range
Apply the two smoothing stages in order
Smoothed %K is the mean of three raw %K values; %D is the mean of three smoothed %K values. This averages normalized positions, rather than dividing sums of price distances. With all inputs defined, raw %K first appears on observation 14, smoothed %K on 16, %D on 18, and a fresh pair cross can first be checked on 19.
K_t = SMA(RawK, 3); D_t = SMA(K, 3)
| Indicator | Observed bars needed |
|---|---|
| Raw %K | 14 |
| Smoothed %K | 16 |
| Signal %D | 18 |
| New %K/%D cross | 19 |
Preserve undefined values and source gaps
When the 14-candle high and low are equal, raw %K is unavailable here; we do not insert zero or 50. Each SMA needs three defined inputs. The 14,434 archived rows include 2 missing H4 intervals and 11 noncanonical close boundaries. Windows follow observed order without invented candles; examples require 19 consecutive canonical rows.
Separate a fresh cross from a zone
An upward pair cross requires previous %K≤previous %D and current %K>current %D, on adjacent H4 intervals. Merely remaining above %D is not a fresh cross. Our low zone requires both smoothed lines strictly below 20, and the high zone both strictly above 80; equality at either boundary is outside that strict zone.
K_prev ≤ D_prev; K_t > D_t
K_t < 20; D_t < 20
K_t > 80; D_t > 80
Distinguish Stochastic from Stoch RSI
This indicator normalizes the close against price highs and lows. Stoch RSI instead normalizes RSI against its own recent range. Similar names, 20/80 labels or smoothing settings do not make the inputs or readings interchangeable. Stoch RSI is not calculated in these examples.
Wait for the completed interval
The panel separates interval start, scheduled end and the archived close-time field. That field is a boundary, not an individual trade timestamp. Millisecond and microsecond source units are preserved. Final values are assigned to the scheduled H4 end; an early source boundary is disclosed rather than treated as a full interval.
A cross can occur while both lines remain low
The first qualifying low-zone upward cross is available at 2024-01-13 04:00 UTC. Smoothed %K is 12.19, %D is 11.68; both remain below 20. The fresh cross is real under the stated definition, but it does not establish an exit from the low zone or a profitable entry.
A new %K/%D upward cross with both lines below 20
Select a candle, move the slider or use arrow keys. The panel shows the scheduled interval and the actual archived close boundary in its original time precision. Prices and oscillator readings have two decimals. The three lines use the fixed 0–100 scale.
- Interval anchor · UTC
- 2024-01-11 00:00 UTC
- Scheduled interval end · UTC
- 2024-01-11 04:00 UTC
- Archived close boundary · UTC
- 2024-01-11 03:59:59.999 UTC
- Open
- 46,654.00
- High
- 46,750.00
- Low
- 46,200.00
- Close
- 46,502.16
- Lowest low · 14
- 44,300.36
- Highest high · 14
- 47,972.00
- Raw %K
- 59.97
- Smoothed %K
- 61.23
- Signal %D
- 55.66
An upward cross can also occur above 80
At 2024-01-09 20:00 UTC, smoothed %K crosses above %D at 88.65 versus 88.54. Both are above 80. A high reading describes this range-based oscillator; it neither cancels the cross nor establishes a future price reversal. S marks the completed condition candle, not a trade.
A new %K/%D upward cross with both lines above 80
Select a candle, move the slider or use arrow keys. The panel shows the scheduled interval and the actual archived close boundary in its original time precision. Prices and oscillator readings have two decimals. The three lines use the fixed 0–100 scale.
- Interval anchor · UTC
- 2024-01-07 16:00 UTC
- Scheduled interval end · UTC
- 2024-01-07 20:00 UTC
- Archived close boundary · UTC
- 2024-01-07 19:59:59.999 UTC
- Open
- 44,047.57
- High
- 44,262.53
- Low
- 43,700.00
- Close
- 44,244.77
- Lowest low · 14
- 43,100.00
- Highest high · 14
- 44,480.59
- Raw %K
- 82.92
- Smoothed %K
- 76.00
- Signal %D
- 76.20
A low zone can exist without an upward cross
At 2024-01-13 00:00 UTC, smoothed %K is 8.39 and %D is 16.00. Both are below 20, but %K is not above %D. The zone condition is true and the bullish pair-cross condition is false. This case was selected from completed data, not from the later price path.
Both lines below 20 without an upward pair cross
Select a candle, move the slider or use arrow keys. The panel shows the scheduled interval and the actual archived close boundary in its original time precision. Prices and oscillator readings have two decimals. The three lines use the fixed 0–100 scale.
- Interval anchor · UTC
- 2024-01-10 20:00 UTC
- Scheduled interval end · UTC
- 2024-01-11 00:00 UTC
- Archived close boundary · UTC
- 2024-01-10 23:59:59.999 UTC
- Open
- 46,489.19
- High
- 47,695.93
- Low
- 44,800.00
- Close
- 46,653.99
- Lowest low · 14
- 44,300.36
- Highest high · 14
- 47,972.00
- Raw %K
- 64.10
- Smoothed %K
- 55.90
- Signal %D
- 51.22
Check scale, precision and platform conventions
The oscillator panel always spans 0–100. Prices and indicator readings display two decimals; decisions use exact unrounded ratios. A range of 14 observed candles need not span exactly 56 hours across a gap. Compare price inputs, SMA stages, missing-value handling and history before comparing platforms.
Replay the readings before testing a strategy
The examples are the first matching cases from H4 starts on or after 2024-01-01 UTC. Each selected candle and its previous 18 rows must have canonical adjacent intervals. Later visible candles are context only. The pinned rules, full observations, CSV and two separate scripts are available; the checker can also validate the original ZIPs. Entries, exits, sizing, costs and account returns need a separate study.
python3 stochastic-guide-replay.py --protocol stochastic-guide-protocol.json --source-evidence btc-keltner-evidence.json --output replay.json python3 stochastic-guide-independent-check.py --protocol stochastic-guide-protocol.json --evidence replay.json --source-evidence btc-keltner-evidence.json --report check.json python3 stochastic-guide-independent-check.py --protocol stochastic-guide-protocol.json --evidence replay.json --raw-dir raw --report raw-check.json
Frequently asked questions
What do 14,3,3 mean here?
Fourteen observations define the price range. SMA3 smooths raw %K, then another SMA3 gives %D. Check named inputs because platforms may list settings differently.
Is this Stoch RSI?
No. Stochastic uses price closes and price highs/lows; Stoch RSI uses RSI and the range of RSI. Only the price-based Stochastic is plotted here.
Why does %D first appear on observation 18?
Raw %K needs 14 candles. Three valid raw readings first give smoothed %K on 16; three valid smoothed readings first give %D on 18.
Does exactly 20 count as below 20?
No. Our low-zone test is strict for both smoothed lines. Likewise, exactly 80 does not satisfy the strict high-zone test. These are explicit conventions.
Does an oversold reading mean buy?
No. It is a descriptive zone, not an order. A new line cross, a zone exit and a profitable trade are different claims that require different evidence.
Why might another platform show different values?
Compare range inputs, smoothing order and method, undefined-window handling, time boundaries and available history. We specify SMA of normalized positions; a ratio of summed distances is a different calculation.
Primary sources
Copying or republication without attribution and an active link to the original material is prohibited. Usage policy.