Part 2: The indicators one by one · Chapter 6 of 14 · 9 min

Stochastic and CCI: three indicators saying the same thing

The formulas of the stochastic and the CCI, how often they sit in the zone, what price does afterwards and two mean-reversion systems with cost: −881 and −857 dollars per ounce, and RSI, stochastic and CCI are in the zone together on 113 of the 183 candles with the RSI above 70.

The formulas

The stochastic (14, 3, 3) compares the close with the high and low of the last 14 candles: raw %K = 100 × (close − 14-candle low) ÷ (14-candle high − 14-candle low). The %K used is the 3-period average of the raw one, and %D is the 3-period average of the %K. It runs from 0 to 100: above 80 the close sits near the highs, below 20 near the lows. The classic signal is the %K crossing the %D in the zone.

The CCI (Commodity Channel Index, 20 periods) measures how far the typical price (high + low + close ÷ 3) sits from its 20-period average, in units of mean deviation: CCI = (typical price − average) ÷ (0.015 × mean deviation). It has no limits; the classic thresholds are +100 and −100.

On H4 the %K is above 80 in 22% of candles and below 20 in 14%; the CCI is above +100 in 18% and below −100 in 20%, above +200 in 4% and below −200 in 6%. They are frequent zones, not rare events.

What the data says

The benchmark with any candle: up carries on 36%, down carries on 40%. Every candle with the indicator in the zone is a signal, read both ways.

SignalSignalsCarries onReversesMean move over 10 candles (ATR)
%K > 80, read "down" (contrarian)38334% ±541%−0.48 ± 0.15
%K > 80, read "up" (trend)38341% ±534%+0.48 ± 0.15
%K < 20, read "up" (contrarian)25232% ±641%+0.41 ± 0.15
%K < 20, read "down" (trend)25241% ±632%−0.41 ± 0.15
CCI > +100, read "down"31537% ±545%−0.22 ± 0.19
CCI > +100, read "up"31545% ±537%+0.22 ± 0.19
CCI < −100, read "up"34138% ±539%+0.14 ± 0.17
CCI < −100, read "down"34139% ±538%−0.14 ± 0.17

As with the RSI, the "contrarian" reading did worse than the benchmark (34%, 32% and 37% against 40% or 36%), and the "trend" reading was even or slightly above (41% and 45%). The mean moves are small (from 0.14 to 0.48 ATR) and signals of neighboring candles overlap: the real error is about three times larger.

The events. The %K crossing the %D in the zone (below the %D above 70 = down, above the %D below 30 = up) gives 143 signals: 36% carries on and 36% reverses (±8 points). The CCI coming back below +100 (67 cases): 39% carries on read "down". The CCI coming back above −100 (75): 36% read "up". The CCI climbing above +100, read "up": 52% (67 cases, ±12), +0.66 ± 0.47 ATR; falling below −100, read "down": 48% (75, ±11).

Two real cases

Figure 1 shows three stochastic sells "in the zone" in three days, on H4, from 15 to 23 September 2026. On 17 September at 20:00 the %K (81.4) falls below the %D above 70, with a close at $4,352.37: after 10 candles price is at 4,381.38, the short loses 29.31 dollars per ounce (the 0.30 cost included). On 18 September at 12:00 (%K 86.3, close 4,362.97) after 10 candles 4,376.13: −13.46. On 19 September at 08:00 (%K 80.6, 4,380.09) after 10 candles 4,363.13: +16.66. Two losses and a gain on a price that was slowly rising.

Figure 1. Three stochastic sells "in the zone" in three days: the short loses 29.31 and 13.46 dollars per ounce and earns 16.66, on a price that slowly rises.Data: gold, XAUUSDT perpetual future (real candles) · 4 hours (H4) · from 15 Sept 2026 00:00 UTC to 23 Sept 2026 20:00 UTC.
Read the chart in words

H4 gold chart from 15 to 23 September 2026 and, below, the stochastic (14, 3, 3) with a black %K, a dashed pink %D and the 20 and 80 levels. Labels mark the three sells and the candle ten periods after each.

WhenWhatPrice
17 Sept 2026 20:00 UTC%K below %D: sell4,355.89
19 Sept 2026 12:00 UTC10 candles later4,380.09
18 Sept 2026 12:00 UTC%K below %D: sell4,389.36
20 Sept 2026 04:00 UTC10 candles later4,374.41
19 Sept 2026 08:00 UTC%K below %D: sell4,381.99
21 Sept 2026 00:00 UTC10 candles later4,361.88

Times in UTC.

Figure 2 shows the CCI in a climb, from 17 to 27 August 2026. On 19 August at 12:00 the CCI climbs above +100 (196, close $4,497.68) and in the window reaches a high of 264. On 20 August at 08:00 it comes back below +100 (94, close 4,471.80): the return rule sells. Ten candles later price is at 4,614.04: the short loses 142.54 dollars per ounce.

Figure 2. The CCI in a climb: above +100 on 19 August (196), the "return" sell of 20 August (4,471.80) loses 142.54 dollars per ounce after 10 candles (4,614.04) and the CCI reaches 264.Data: gold, XAUUSDT perpetual future (real candles) · 4 hours (H4) · from 17 Aug 2026 00:00 UTC to 27 Aug 2026 20:00 UTC.
Read the chart in words

H4 gold chart from 17 to 27 August 2026 and, below, the 20-period CCI with the −100 and +100 levels. Labels mark the crossing above +100, the sell when it comes back below +100 and the candle ten periods after.

WhenWhatPrice
19 Aug 2026 12:00 UTCCCI above +1004,501.85
20 Aug 2026 08:00 UTCCCI below +100: sell4,503.88
22 Aug 2026 00:00 UTC10 candles later4,616.31

Times in UTC.

Two mean-reversion systems

As with the RSI: sell when the indicator comes back inside the upper zone, buy when it comes back inside the lower one, exit after 10 H4 candles, a cost of 0.30 dollars per ounce.

SystemTradesWinningMean per tradeTotalRandom with total at least equal
Stochastic: %K crosses %D in the zone14375 (52%)−6.16 ± 7.00 dollars−88177%
CCI: comes back inside ±10014275 (53%)−6.04 ± 8.52 dollars−85777%
RSI (chapter 3): comes back inside 70 and 306835 (51%)−1.21 ± 13.70 dollars−8254%

More than half the trades win (51-53%), but the mean is negative: the losses are larger than the wins. Chance does at least as well in 54-77% of trials.

How much they say the same thing. Candles with the RSI above 70 number 183, with the %K above 80 number 383, with the CCI above +100 number 315. All three together: 113. Nearly two candles out of three (62%) with the RSI above 70 also have the other two indicators in the zone. Adding a stochastic to an RSI adds no independent information.

A four-step routine

  1. Write the parameters (14, 3, 3 for the stochastic, 20 for the CCI) and the thresholds you use.
  2. Measure the indicator both ways, as with the RSI: contrarian and trend reading.
  3. Count how often it overlaps with other indicators you already use.
  4. Judge the system by the mean and the total with cost, not by the percentage of wins.

Exercises

Chapter exercises

1. On the chart the letters sit on four candles, with the stochastic below. Which letter is the first sell "in the zone", when the %K falls below the %D above 70?

Chart exercise. Data: gold, XAUUSDT perpetual future (real candles) · 4 hours (H4) · from 15 Sept 2026 00:00 UTC to 23 Sept 2026 20:00 UTC.
Read the chart in words
WhenWhatPrice
18 Sept 2026 08:00 UTCPoint A4,404.53
17 Sept 2026 20:00 UTCPoint B4,355.89
18 Sept 2026 12:00 UTCPoint C4,389.36
19 Sept 2026 12:00 UTCPoint D4,381.81

Times in UTC.

2. What does the stochastic %K measure?

3. The mean-reversion systems on stochastic and CCI win 52-53% of trades but have a mean of −6 dollars per ounce. How is that possible?

4. RSI above 70, %K above 80 and CCI above +100 are together in the zone on 113 of the 183 candles with the RSI above 70. What does it teach?

Have a question or want to share your exercise?

Post in the community, or join the free signals room on Telegram.

Educational content, not financial advice. Trading involves risk.