Independent market intelligence
Research over noise · Risk before return
CRYPTO INDICATOR GUIDE

Stochastic 14,3,3: %K, %D and the 20/80 zones

Stochastic locates the close within a recent price range, then smooths that position. A line cross and a low or high reading are separate conditions. Three Bitcoin H4 examples explain the difference without simulating trades.

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
01

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.

02

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

Teaching example: a close at 20% of the rangeTeaching price rangeRaw %K · 0–100110.00102.00100.00100200
Illustrative prices only: low 100.00, high 110.00, close 102.00, raw %K 20. The smoothed lines require additional observations. A reading of 20 is not a 20% chance of a price move.
03

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)

First valid readings under the stated initialization
IndicatorObserved bars needed
Raw %K14
Smoothed %K16
Signal %D18
New %K/%D cross19
04

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.

05

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

06

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.

07

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.

08

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

A new %K/%D upward cross with both lines below 20BTC/USDT spot · USDT per BTC40,753.0542,993.9045,234.7447,475.5849,716.43Highest high · 14Lowest low · 140205080100Raw %KSmoothed %KSignal %DS2024-01-11 00:002024-01-13 00:002024-01-14 12:00

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
First qualifying case, available 2024-01-13 04:00 UTC. Actual spot OHLC and the 14-observation price range are above; raw %K, smoothed %K and %D are below. S marks the selected completed candle, not an entry.
09

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

A new %K/%D upward cross with both lines above 80BTC/USDT spot · USDT per BTC42,612.8044,074.4045,536.0046,997.6048,459.20Highest high · 14Lowest low · 140205080100Raw %KSmoothed %KSignal %DS2024-01-07 16:002024-01-09 16:002024-01-11 04:00

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
First qualifying case, available 2024-01-09 20:00 UTC. The upward pair cross occurs in the high zone. No future return was used for selection.
10

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

Both lines below 20 without an upward pair crossBTC/USDT spot · USDT per BTC40,753.0542,993.9045,234.7447,475.5849,716.43Highest high · 14Lowest low · 140205080100Raw %KSmoothed %KSignal %DS2024-01-10 20:002024-01-12 20:002024-01-14 08:00

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
First qualifying case, available 2024-01-13 00:00 UTC. The low-zone condition holds, while %K≤%D. Later candles provide context only; no trade is executed.
11

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.

12

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

Download data and reproduction files

Created by the MyProfitFactor editorial team.

Copying or republication without attribution and an active link to the original material is prohibited. Usage policy.