(Sto.chas.tic (st kas'tik) adj. 2. Math. designating a process having an infinite progression of jointly distributed random variables.-- Webster's)
The Stochastic Oscillator compares where a security's price closed relative to its trading range over the last x-time periods.
The formula for the %K parameter of the Stochastic is:
(today's close)-(lowest low %K periods)
(highest high %K periods)-(lowest low %K periods)
For example, to calculate a 10-day %K: First, find the security's highest high and
lowest low over the last 10 days. For this example, let's assume that during the last 10 days the highest high was 46 and the lowest low was 38--a range of 8 points. If today's closing price was 41, %K would be calculated as:
The 0.375 in this example shows that today's close was at the level of 37.5% relative to the security's trading range over the last 10 days. If today's close was 42, the Stochastic Oscillator would be 0.50. The 0.50 would show that the security closed today at 50%, or the mid-point, of its 10-day trading range.
The above example used a %K Slowing Period of 1-day (no slowing).
A moving average of %K is then calculated using the number of time periods you specified in the %D Periods. This moving average is called %D.
The Stochastic Oscillator always ranges between 0% and 100%. A reading of 0% shows that the security's close was the lowest price that the security has traded
during the preceding x-time periods. A reading of 100% shows that the security's close was the highest price that the security has traded during the preceding x-time periods.
See Plotting an Indicator for more information on plotting indicators. See Stochastic Oscillator for more information on the Stochastic Oscillator parameters.
Interpretation :
Stochastic Oscillators can be used as both short- and intermediate-term trading oscillators depending on the number of time periods used when calculating the oscillator. When displaying a short term Stochastic Oscillator (e.g., 5-25 days), it
is popular to slow the %K value by 3-days.
There are several ways to interpret a Stochastic Oscillator. Three popular methods include:
Buy when the Oscillator (either %K or %D) falls below a specific level
(e.g., 20) and then rises above that level, and sell when the Oscillator
rises above a specific level (e.g., 80) and then falls below that level.
However, before basing any trade off of strict overbought/oversold levels
it is recommended that you first qualify the trendiness of the market using
indicators such as r-squared (see r-squared) or CMO. If these indicators
suggest a non-trending market, then trades based on strict overbought/oversold
levels should produce the best results. If a trending market is suggested,
then you can use the oscillator to enter trades in the direction of the
trend.