Stochastic Oscillator Calculator

Calculate raw %K from a chosen lookback range and the current close. %D and slow Stochastic need a price history and are not calculated by this snapshot tool.

Highest price in period

Lowest price in period

Current closing price

Supply the high and low over your chosen lookback window, not just the latest candle. This snapshot calculates raw %K only; smoothing and %D require a sequence of historical observations.

How to Use the Stochastic Oscillator Calculator

  1. Enter High Price: Input the highest price the asset has reached during the look-back period (usually 14 periods).
  2. Enter Low Price: Input the lowest price the asset has reached during the same period.
  3. Enter Close Price: Input the most recent closing price.
  4. Check the Window: Both extremes must come from the same chosen period. Entering only one candle's high and low measures that candle's close location instead.
  5. Calculate: Click the "Calculate" button to see the %K value and current market status.

What is the Stochastic Oscillator?

The Stochastic Oscillator is a momentum indicator developed by George C. Lane in the late 1950s. It compares a specific closing price of a security to a range of its prices over a certain period of time. The sensitivity of the oscillator to market movements is reducible by adjusting that time period or by taking a moving average of the result.

The general theory serving as the foundation for this indicator is that in a market trending upward, prices will close near the high, and in a market trending downward, prices close near the low.

Calculation Formula

%K = ((Current Close - Lowest Low) / (Highest High - Lowest Low)) * 100
%D = 3-period SMA of %K

Why This Matters for Traders

  • Overbought/Oversold Levels: Traditionally, readings over 80 indicate that the asset is overbought, while readings under 20 indicate it is oversold.
  • Trend Reversals: Divergence between the oscillator and price can motivate further review, but it cannot establish that a reversal will occur.
  • Momentum Confirmation: It helps confirm the strength of a trend. A strong uptrend will often keep the stochastic above 80 for a sustained period.

Frequently Asked Questions

What is the Stochastic Oscillator?

The Stochastic Oscillator is a momentum indicator developed by George C. Lane that compares a closing price to a range of prices over a certain period. It helps identify overbought and oversold conditions.

What is the difference between Fast and Slow Stochastic?

Fast %K is the raw range-position value; Fast %D is its moving average. Slow %K smooths Fast %K, and Slow %D smooths Slow %K again. This page calculates only raw %K, so no %D or crossover is available.

What is the best setting for Stochastic?

TradingView uses 14 periods with 3-period %K and %D smoothing by default. No setting is best for every instrument. Here you supply the chosen window extrema manually; there are no smoothing controls.

How do I interpret Stochastic readings?

Values above 80 place the close near the top of the input range; values below 20 place it near the bottom. Either condition may persist during a trend and is not an instruction to buy or sell.

Can Stochastic be used alone?

A single snapshot cannot identify crossovers or divergence. Even a full historical oscillator does not establish future returns; examine price context, transaction costs, and explicit strategy rules.

Create Your Own Stochastic Strategy

Define entry, exit, and risk rules, then use Pineify to draft an editable Pine Script strategy. Check the generated code and test it in TradingView with realistic costs before relying on results.