A Simple Illustration of Stochastic Oscillator Calculation
https://www.forexboat.com/
Get Your Free Membership Now!
Understanding how stochastic is being calculated is also essential in understanding how it has become a reliable source of predictive information.
Below is the formula to calculate the outcome of the lines:
%K = (Current Close - Lowest Low)/(Highest High - Lowest Low) * 100
%D = 3-day SMA of %K
Lowest Low = lowest low for the look-back period
Highest High = highest high for the look-back period
%K is multiplied by 100 to move the decimal point two places
The default setting for the Stochastic Oscillator is 14 periods, which can be days, weeks, months or an intraday timeframe. A 14-period %K would use the most recent close, the highest high over the last 14 periods and the lowest low over the last 14 periods. %D is a 3-day simple moving average of %K. This line is plotted alongside %K to act as a signal or trigger line.