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.
| Signal | Signals | Carries on | Reverses | Mean move over 10 candles (ATR) |
|---|---|---|---|---|
| %K > 80, read "down" (contrarian) | 383 | 34% ±5 | 41% | −0.48 ± 0.15 |
| %K > 80, read "up" (trend) | 383 | 41% ±5 | 34% | +0.48 ± 0.15 |
| %K < 20, read "up" (contrarian) | 252 | 32% ±6 | 41% | +0.41 ± 0.15 |
| %K < 20, read "down" (trend) | 252 | 41% ±6 | 32% | −0.41 ± 0.15 |
| CCI > +100, read "down" | 315 | 37% ±5 | 45% | −0.22 ± 0.19 |
| CCI > +100, read "up" | 315 | 45% ±5 | 37% | +0.22 ± 0.19 |
| CCI < −100, read "up" | 341 | 38% ±5 | 39% | +0.14 ± 0.17 |
| CCI < −100, read "down" | 341 | 39% ±5 | 38% | −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.
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.
| When | What | Price |
|---|---|---|
| 17 Sept 2026 20:00 UTC | %K below %D: sell | 4,355.89 |
| 19 Sept 2026 12:00 UTC | 10 candles later | 4,380.09 |
| 18 Sept 2026 12:00 UTC | %K below %D: sell | 4,389.36 |
| 20 Sept 2026 04:00 UTC | 10 candles later | 4,374.41 |
| 19 Sept 2026 08:00 UTC | %K below %D: sell | 4,381.99 |
| 21 Sept 2026 00:00 UTC | 10 candles later | 4,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.
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.
| When | What | Price |
|---|---|---|
| 19 Aug 2026 12:00 UTC | CCI above +100 | 4,501.85 |
| 20 Aug 2026 08:00 UTC | CCI below +100: sell | 4,503.88 |
| 22 Aug 2026 00:00 UTC | 10 candles later | 4,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.
| System | Trades | Winning | Mean per trade | Total | Random with total at least equal |
|---|---|---|---|---|---|
| Stochastic: %K crosses %D in the zone | 143 | 75 (52%) | −6.16 ± 7.00 dollars | −881 | 77% |
| CCI: comes back inside ±100 | 142 | 75 (53%) | −6.04 ± 8.52 dollars | −857 | 77% |
| RSI (chapter 3): comes back inside 70 and 30 | 68 | 35 (51%) | −1.21 ± 13.70 dollars | −82 | 54% |
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
- Write the parameters (14, 3, 3 for the stochastic, 20 for the CCI) and the thresholds you use.
- Measure the indicator both ways, as with the RSI: contrarian and trend reading.
- Count how often it overlaps with other indicators you already use.
- 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?
Read the chart in words
| When | What | Price |
|---|---|---|
| 18 Sept 2026 08:00 UTC | Point A | 4,404.53 |
| 17 Sept 2026 20:00 UTC | Point B | 4,355.89 |
| 18 Sept 2026 12:00 UTC | Point C | 4,389.36 |
| 19 Sept 2026 12:00 UTC | Point D | 4,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.