Entered high-low-close series · range location

Stochastic Oscillator Calculator

Calculate raw %K, simply slowed %K and a simple %D line from ordered user-entered high, low and close bars.

Runs in your browserLow / high price fieldNo 20 / 80 signal

Enter ordered high-low-close bars

Use one consistent symbol, timeframe and broker feed. Every close must fall inside its entered bar range.

Entered

One row per line: high, low, close, with an optional label first. Commas, semicolons or tabs are accepted.

Stochastic boundary: The page reports close location and smoothing arithmetic only. It does not classify thresholds, crosses, divergences or trade direction.

Entered-series Stochastic arithmetic

Entered Oscillators 1.0.0.

Derived
No Stochastic values calculated yetEnter enough bars for the selected K, slowing and D periods, or load the audited example.

How the entered Stochastic is calculated

Raw %K = (Current close − Lowest low) ÷ (Highest high − Lowest low) × 100
Slowed %K = SMA of raw %K
%D = SMA of slowed %K

The K-period range uses entered lows and highs. The current entered close is positioned inside that range and then smoothed with the selected simple averages.

This version fixes the price field to low/high and both smoothing steps to SMA. A completed zero-range window fails closed rather than dividing by zero.

Worked example from the audited fixture

Reproduce it with “Load audited example”With K period 3, slowing period 2, D period 2 and the five audited high-low-close bars, the latest three-bar range is 8 to 15. The latest raw K is 42.857143; two-point smoothing gives slow K 65.873016, and the two-point average of slow K gives D 77.033730.

How to interpret the result

Raw K locates the latest close within the entered rolling range, while slow K and D add two separate simple-average stages. The displayed values do not establish overbought, oversold, crossover or reversal conditions.

Assumptions and limits

  • Every bar must satisfy high at least low and close inside the inclusive high-low range.
  • All bars must use one symbol, timeframe and broker feed.
  • Labels are descriptive; the page does not parse dates, sort bars or repair gaps.
  • Close/close mode and exponential, smoothed or weighted %D methods are not supported in this version.
  • Values near 0 or 100 are not classified as oversold, overbought or trade signals.

Frequently asked questions

  • Enter ordered high, low and close bars from one consistent symbol, timeframe and broker feed.
  • The current close minus the lowest low is divided by the highest high minus the lowest low across the selected K-period window, then multiplied by 100.
  • It is a simple moving average of raw percent K over the selected slowing period.
  • It is a simple moving average of the available slowed percent K values over the selected D period.
  • Version 1.0.0 fixes the range to entered lows and highs; close-close mode is not supported.
  • Both slowing and percent D use simple moving averages; exponential, smoothed and weighted methods are outside this version.
  • The calculation fails closed because raw percent K would otherwise require division by zero.
  • No. The page does not classify thresholds, crosses, divergence, entries, exits or future direction.

Sources and methodology

Compare the chart feed and trading terms

Use one consistent broker feed for every entered observation and verify the symbol's price precision, spread and trading conditions before using any measurement in a plan.

XM

Review available instruments, price precision and account terms.

Check XM terms

FBS

Compare symbol specifications and trading conditions for your region.

Check FBS terms

FXOpen

Confirm price precision, spread and contract terms for the symbol.

Check FXOpen terms

Risk and affiliate disclosure: Leveraged forex and CFD trading can result in substantial losses. These are affiliate links, so ForexMT4Indicators.com may receive compensation if you register or trade through them, at no additional cost to you. Availability and terms vary by jurisdiction and broker entity.

Disclaimer: The results from this tool are estimates for educational and informational purposes only and may differ from your broker's figures. This is not financial or investment advice. Trading forex and CFDs carries a high level of risk and can result in the loss of all your capital. Always verify calculations with your broker and trade within your risk tolerance.