One account, every market we offer
Explore all marketsThe stochastic oscillator is a momentum indicator that shows where the latest close sits inside the high to low range of the last 14 bars, on a scale from 0 to 100. A close near the top of the range gives a high reading and a close near the bottom gives a low one. It belongs to the oscillator family in our guide to technical indicators, next to RSI and MACD.
Most charts show 2 lines, %K and %D, with reference levels at 80 and 20. The signals only work when you match them to the market state: a range, a trend, or a turn. This guide covers the formula with a worked calculation, the 3 versions of the indicator, the settings, 3 strategies with entry, stop and exit, and the cases where the stochastic fails.
Quick answer: The stochastic oscillator, developed by George Lane in the late 1950s, plots %K = (close minus lowest low) / (highest high minus lowest low) x 100 over 14 bars, plus %D, a 3-period average of %K. Readings above 80 are called overbought and below 20 oversold. The usual trigger is %K crossing %D, taken in the direction of the larger trend.
Highlights of this article
- George Lane developed the stochastic oscillator in the late 1950s to track momentum, which he said tends to turn before price
- %K measures the close against the 14-bar range, and %D is a 3-period simple average of %K that acts as the signal line
- The default on most platforms is the slow stochastic, written 14, 3, 3, with levels at 80 and 20
- Overbought and oversold readings work as reversal signals in ranges and as pullback signals in trends
- In a strong trend the stochastic can stay above 80 or below 20 for many bars, so a reading alone is not an entry
What is the stochastic oscillator?
The stochastic oscillator is a bounded momentum indicator that compares a closing price with the recent trading range. If the last 14 bars traded between 100 and 112 and the market closes at 111, buyers finished the bar in control and the reading is high. If it closes at 101, sellers finished in control and the reading is low.
According to StockCharts ChartSchool, George C. Lane developed the indicator in the late 1950s. Lane described it as following the speed of price rather than price itself, with the idea that "momentum changes direction before price." That is the logic behind every stochastic signal: closes start to slip away from the edge of the range before the trend itself turns.
| Item | Detail |
|---|---|
| Indicator type | Momentum oscillator, bounded from 0 to 100 |
| Developed by | George C. Lane, late 1950s |
| Default settings | 14, 3, 3 (lookback, %K smoothing, %D period) |
| Reference levels | 80 overbought, 20 oversold, 50 midline |
| Main signals | %K and %D crossovers, exits from the 80 and 20 zones, divergence |
| Works best in | Ranges, and pullbacks inside established trends |
| Main limitation | Stays pinned above 80 or below 20 during strong trends |
How is the stochastic oscillator calculated?
The calculation has 2 steps. First find %K, then average it to get %D.
%K = (current close - lowest low) / (highest high - lowest low) x 100
%D = 3-period simple moving average of %K
The lowest low and highest high are taken over the lookback period, 14 bars by default. Both StockCharts and the TradingView Help Center publish the same formula.
A worked calculation
Take a market where the last 14 bars have a highest high of 112 and a lowest low of 100. The current bar closes at 109.
- Close minus lowest low: 109 - 100 = 9
- Highest high minus lowest low: 112 - 100 = 12
- %K = 9 / 12 x 100 = 75
The close sits 75% of the way up the 14-bar range. If the 2 previous %K values were 60 and 66, then %D = (60 + 66 + 75) / 3 = 67. %K at 75 is above %D at 67, so momentum is rising.
A close exactly at the 14-bar high gives %K = 100, and a close exactly at the 14-bar low gives %K = 0.
Fast, slow and full stochastic
There are 3 versions, and they differ only in smoothing.
| Version | %K | %D | Character |
|---|---|---|---|
| Fast | Raw %K from the formula above | 3-period SMA of fast %K | Very reactive, many crossovers |
| Slow | Fast %K smoothed with a 3-period SMA | 3-period SMA of slow %K | The standard version on most charts |
| Full | Fast %K smoothed over a period you choose | SMA of full %K over a period you choose | Fully adjustable |
Slow %K is the same line as fast %D. In the worked example, the fast %D of 67 becomes the slow %K. On TradingView, the built-in Stoch indicator uses a %K length of 14, %K smoothing of 3 and %D smoothing of 3, which is the slow stochastic. Setting %K smoothing to 1 turns it into the fast version.

What are the best stochastic oscillator settings?
The default 14, 3, 3 is the right starting point for most traders, because it is what most other chart users see. Change it only for a clear reason, and test the change first.
| Setting | Effect | Typical use |
|---|---|---|
| 5, 3, 3 | Fast, many signals, more noise | Scalping and very short intraday trades |
| 14, 3, 3 | Balanced, the platform default | Day trading and swing trading |
| 21, 5, 5 | Slow, fewer and later signals | Position trades, noisy markets |
Three rules of thumb apply:
- A shorter lookback reacts sooner and whipsaws more. With 5 bars, one strong candle can move %K from 20 to 80.
- More smoothing means fewer crossovers. Raising the %K smoothing from 3 to 5 removes many small crosses but delays the ones that remain.
- The levels can move too. In volatile markets such as crypto, some traders use 90 and 10 so that only real extremes count.
Check any change with backtesting on the market you trade before using it live.
How do you read the stochastic oscillator?
Read the stochastic in 4 layers: the zone, the crossover, the midline and divergence.
Overbought and oversold zones
Above 80, the market is closing near the top of its recent range. Below 20, it is closing near the bottom. In a strong uptrend, closing near the high bar after bar is normal, and the stochastic can stay above 80 for a long run.
The more useful event is the exit from a zone. A drop back below 80 says closes have stopped hugging the highs. A rise back above 20 says closes have stopped hugging the lows.
%K and %D crossovers
%K crossing above %D is a bullish trigger and %K crossing below %D is a bearish one. Crossovers happen often, so location matters. A bullish cross below 20 carries more weight than one at 55, where the lines tangle without meaning.
The 50 midline
Readings above 50 mean price is closing in the upper half of the 14-bar range, and below 50 in the lower half.
Divergence
Bullish divergence forms when price makes a lower low but the stochastic makes a higher low. Bearish divergence is the opposite: a higher high in price with a lower high in the oscillator. Divergence is a warning that momentum is fading. StockCharts suggests waiting for confirmation, such as a support or resistance break, a move through 50 or a signal line cross. A break of structure on the price chart is the cleanest confirmation.
3 stochastic oscillator trading strategies
Each strategy below fits a different market state. Decide which state you are in before you look at the oscillator.
Strategy 1: range reversals at support and resistance
This is the classic mean reversion use. It needs a market moving sideways between clear levels.
- Setup: price is in a defined range with at least 2 touches on each side. Mark the range using support and resistance.
- Entry (long): price reaches support, the stochastic is below 20, and %K crosses above %D. Enter when the bar closes.
- Stop: below the low of the swing that touched support, with a small buffer.
- Exit: the opposite side of the range, or when the stochastic reaches 80 and %K crosses below %D, whichever comes first.
Shorts mirror the rules at resistance.
Strategy 2: pullback entries in a trend
In a trend, oversold is an opportunity in an uptrend and overbought is an opportunity in a downtrend. You ignore signals against the trend completely.
- Setup: price is above a rising 50-period average on your chart. Use moving averages to define the trend before anything else.
- Entry (long): price pulls back toward the average, the stochastic dips below 20, then %K crosses back above %D.
- Stop: below the pullback low.
- Exit: take part of the position at the prior swing high. Trail the rest under each new higher low, or close when price closes below the 50-period average.
In this setup an overbought reading is not a reason to sell. A stochastic that stays above 80 during an uptrend confirms the trend is strong.
Strategy 3: divergence with a structure break
This setup looks for the end of a move, so it has the lowest hit rate of the 3 and needs the strictest confirmation.
- Setup: after an extended decline, price makes a new low while the stochastic makes a higher low, both in or near the oversold zone.
- Entry (long): wait for price to close above the most recent swing high. Do not enter on the divergence alone.
- Stop: below the final low of the decline.
- Exit: the next resistance level, with a minimum target of 2 times the risk.

What are the limits of the stochastic oscillator?
The stochastic gives false signals in predictable situations. Knowing them is most of the skill.
- Pinned readings in trends. In a strong rally the oscillator can sit above 80 for dozens of bars. Every bearish cross in that zone is a losing short. The same happens below 20 in a sell-off.
- Crossover noise in the middle. Between 30 and 70 the lines cross constantly. Most of those crosses carry no information.
- Range dependence. The reading depends only on the 14-bar range. When an old high or low drops out of the window, the stochastic can jump even though price barely moved.
- Early divergence. Momentum can diverge 2 or 3 times before price finally turns. Without a structure break, divergence traders get stopped out on each attempt.
The fix for most of these is the same: define the market state first, then accept only the signals that match it. Pairing the stochastic with Bollinger Bands is one common way to judge whether a range is intact or volatility is expanding into a trend.
How does the stochastic compare with other momentum oscillators?
The stochastic, RSI and MACD all measure momentum, but each uses a different input. Using all 3 on one chart mostly repeats the same information.
| Feature | Stochastic oscillator | RSI | MACD |
|---|---|---|---|
| What it compares | Close versus the high to low range | Average gains versus average losses | A fast EMA versus a slow EMA |
| Default settings | 14, 3, 3 | 14 | 12, 26, 9 |
| Scale | 0 to 100 | 0 to 100 | Unbounded, in price units |
| Standard levels | 80 and 20 | 70 and 30 | Zero line |
| Speed | Fastest, most signals | Moderate | Slowest, fewest signals |
| Best suited to | Ranges and pullback timing | Trend strength and divergence | Trend direction and momentum shifts |
The RSI indicator uses closing prices only and moves more smoothly, so it reaches its extremes less often. The stochastic uses highs and lows as well, so it reacts faster and touches 80 and 20 far more often. The MACD indicator has no ceiling or floor, which makes it better at showing trend direction and worse at marking extremes.
A practical split is to use one tool for direction, such as a moving average or the MACD, and the stochastic for timing.
Using the stochastic oscillator in a prop firm challenge
A prop firm challenge rewards steady risk control more than signal frequency, and the stochastic produces a lot of signals. The main risk is taking too many of them. Velotrade runs simulated, educational evaluations on DXtrade across crypto, forex, stocks, index ETFs and commodities, so you can apply the same 14, 3, 3 rules to several markets and keep only the ones where they test well.
Three points matter inside the evaluation:
- The maximum drawdown is static. It is a fixed floor set from the starting balance and it never moves. A string of small losses from mid-range crossovers eats into it permanently. See static maximum drawdown explained.
- The daily loss limit caps the bad days. Set a personal limit on stochastic trades per session, for example 3, and stop after 2 losses in a row.
- Size from the stop, not from the signal. Each strategy above defines a stop at a swing point. Divide your risk per trade by that distance to get the position size.
Funded traders keep an 80% profit split. Plans and rules are on the challenges page.
Sources
- StockCharts ChartSchool, "Stochastic Oscillator (Fast, Slow, and Full)": George Lane's development of the indicator, the %K and %D formulas, the 3 versions, and divergence confirmation.
- TradingView Help Center, "Stochastic (STOCH)": calculation, default inputs of 14, 3 and 3, and the 80 and 20 thresholds.
Frequently Asked Questions
About the author

Gianluca Pizzituti
Chief Executive Officer
Formerly on the derivatives desk at Dresdner Kleinwort in London, then founded and ran a proprietary HFT firm in FX and equity indices out of Singapore.
Velotrade was founded in Hong Kong in 2016 by a team from JP Morgan, Dresdner Kleinwort and Bank of America, has facilitated over $2.5 billion in trade-finance payments, and has been featured in Bloomberg, the Financial Times, the Wall Street Journal and on Nasdaq. Its prop trading evaluations are simulated and educational.
View author page




