ALGOINDICATEUR
Login Create an account
๐Ÿค– Algo AI Trader ๐Ÿง  AI Assistant ๐Ÿ“ก Algo Signals VIP ๐Ÿ’น Trading

Platform

๐Ÿ“ˆ Markets โญ Watchlist ๐ŸŒ Market movers

Tools

๐Ÿงฎ Trader calculators ๐Ÿ”„ Converter ๐Ÿ“… Economic calendar ๐Ÿ“– Trading glossary ๐ŸŽ“ Trader academy ๐Ÿ““ Trade journal ๐Ÿงฐ Advanced calculators ๐Ÿ“Š Chart patterns โœจ App features

Resources

๐Ÿ“ฐ News โ“ FAQs โ„น๏ธ About ๐Ÿ“จ Telegram signals
Create an account Login Become VIP
Trader academy

The stochastic: where the close sits in its range

How the stochastic places the close within the range of recent candles, how Algo Signals reads the %K / %D crossover, and why it fails in a strong trend.

Lesson 19 / 96 ยท 7 min read ยท Beginner

When the price rises, closes tend to land near the recent high; when it falls, near the recent low. The stochastic measures exactly that: how high, between the lowest low and the highest high of the last candles, the latest close sits. It lives between 0 and 100 and is used to spot a possible exhaustion or reversal, never to guarantee one.

How it is calculated

For each candle, Algo Signals looks at the last 14 (the kPeriod setting). The raw %K equals (close โˆ’ lowest low) รท (highest high โˆ’ lowest low) ร— 100. Close at the high: 100; at the low: 0; if the range is zero: 50. This raw %K is then smoothed with a simple average of 3 values (smooth): that is the %K line. Finally a second simple average of 3 values (dPeriod) gives the slower %D line.

  • Raw %K: position of the close within the range of the last 14 candles.
  • %K = average of 3 raw %K. %D = average of 3 %K.
  • The first candles (about 20) lack history: the state stays neutral.
Real case โ€” BTCUSDT, M15, 2026-09-29 20:45 UTC: the indicator on the chart. Past example, not a forecast.

Reading the signal in Algo Signals

The state is bullish when %K is above %D and bearish when it is below. A buy signal appears when %K crosses above %D, a sell signal when it crosses below. Note: Algo Signals does not require an extreme zone. The usual landmarks (below 20 = oversold, above 80 = overbought) are a reading you can add yourself, not a condition in the code.

Real case โ€” BTCUSDT, H1, 2026-09-23 15:00 UTC: winning signal, target reached. Past example, not a forecast.

The settings

  • K period (kPeriod): 14 by default (1 to 100). Shorter, the indicator is jumpy; longer, calmer.
  • Smoothing (smooth): 3 by default (1 to 50). Larger, less noise but a later signal.
  • D period (dPeriod): 3 by default (1 to 50). Larger, the %D line is slower and crossovers are rarer.
  • These values are conventions. Tuning them to โ€œfitโ€ the past produces settings that do not repeat.

The pitfalls

In a strong uptrend the stochastic can stay near 100 for a long time: each small dip makes %K cross below %D and produces a sell while the price keeps rising. That is the classic mistake: taking โ€œhighโ€ for โ€œwill fallโ€. The crossover is also sensitive, hence noisy in an agitated market, and on spike indices (Boom/Crash) a sudden spike can distort it.

Real case โ€” ETHUSDT, M15, 2026-09-06 09:00 UTC: losing signal, stop hit. Past example, not a forecast.

Key takeaways

  • Stochastic = position of the close within the range of the last 14 candles; buy when %K crosses above %D, sell when it crosses below.
  • Algo Signals does not require a 20 / 80 zone: the crossover is enough.
  • It is more useful in a trendless market, and dangerous against a strong trend.
  • For better confluence, combine it with a trend indicator (MA 200, ADX): for example accept only buys when the trend is up.

๐Ÿ“ Lesson test

Log in to take this lessonโ€™s test. Once you have passed all the tests, you will receive a certificate in your name.

Log in

These lessons are for understanding and are not investment advice. No method guarantees winning.