George C. Lane developed the Stochastic Oscillator in the late 1950s, according to
Stock Charts. You can view their page for the extensive, mathematical calculations behind the indicator because they can explain it much more simply than I can. However, here's the important thing: I've found that this indicator has predictive value in helping me spot overbought or oversold situations.
I never buy stocks simply because they are overbought -- the stock needs to be displaying the strength needed to stage a rebound or "bounce." For example, in the two situations I
highlighted in a recent technically focused article, both of the stocks were oversold (one of them according to stochastics, the other from price action) and both were showing strength.
This is important because, in my experience, stocks can remain overbought or oversold for a very long time. While you might argue that, if this is the case, then why should someone even spend their time looking at the indicator? In my opinion, the same could be said about judging a stock's value -- a stock can remain over or undervalued for a long time before the true value is reached. That doesn't mean performing such measures is a waste of time.

As you can see from the chart, Stochastics certainly aren't a "holy grail" for market timing, if employed with the proper mindset, they do hold predictive value, in my opinion. While I'm sure efficient market theorists are going to attack me for that statement, I think the chart speaks for itself.
You can see that the first time the stock was "oversold" (bottom of oscillator), as soon as the stock began to rally, the rally continued for 10%+.
However, as you see, it is not flawless. For the stock's run from $23-$33, the indicator would have had you selling after just a small percentage of that move. But that's understandable in my opinion, because the market was playing catch-up in Microsoft as people realized that a low double digit earnings multiple was extraordinarily irrational for such an incredibly profitable company.
Through this post I've tried to explain how I use the Stochastic Oscillator so you can better understand what it means if you see it inside charts in my post. Feel free to comment with any questions!