Thursday, July 7, 2011

Stochastic Oscillator


Developed by George C. Lane in the late 1950s, the Stochastic Oscillator is a momentum indicator that shows the location of the close relative to the high-low range over a set number of periods. According to an interview with Lane, the Stochastic Oscillator "doesn't follow price, it doesn't follow volume or anything like that. It follows the speed or the momentum of price. As a rule, the momentum changes direction before price." As such, bullish and bearish divergences in the Stochastic Oscillator can be used to foreshadow reversals. This was the first, and most important, signal that Lane identified. Lane also used this oscillator to identify bull and bear set-ups to anticipate a future reversal. Because the Stochastic Oscillator is range bound, is also useful for identifying overbought and oversold levels.

Calculation

 
%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.



Date
High
Low
Highest High (14)
Lowest Low (14)
Close
14-day Stochastic Oscillator

1
23-May-11
5456.7
5373


5386.55


2
24-May-11
5422.6
5367.45


5394.85


3
25-May-11
5389.1
5328.7


5348.95


4
26-May-11
5422.2
5356.35


5412.35


5
27-May-11
5485.8
5413.6


5476.1


6
30-May-11
5509.3
5458.6


5473.1


7
31-May-11
5571.6
5489.7


5560.15


8
1-Jun-11
5597.35
5559.45


5592


9
2-Jun-11
5568.2
5521.95


5550.35


10
3-Jun-11
5604.95
5507.2


5516.75


11
6-Jun-11
5542.65
5479.85


5532.05


12
7-Jun-11
5570.1
5507.8


5556.15


13
8-Jun-11
5556.6
5514.9


5526.85


14
9-Jun-11
5540.1
5502.05
5604.95
5328.70
5521.05
69.63

15
10-Jun-11
5521.45
5457.45
5604.95
5328.70
5485.8
56.87

16
13-Jun-11
5496.7
5436.95
5604.95
5328.70
5482.8
55.78

17
14-Jun-11
5520.15
5484.2
5604.95
5356.35
5500.5
57.98

18
15-Jun-11
5499.35
5438.95
5604.95
5413.60
5447.5
17.72

19
16-Jun-11
5447.5
5389.8
5604.95
5389.80
5396.75
3.23

20
17-Jun-11
5421.15
5355.85
5604.95
5355.85
5366.4
4.24

21
20-Jun-11
5377.4
5195.9
5604.95
5195.90
5257.9
15.16

22
21-Jun-11
5322.45
5257
5604.95
5195.90
5275.85
19.55

23
22-Jun-11
5310.5
5262.5
5604.95
5195.90
5278.3
20.14

24
23-Jun-11
5330.6
5252.25
5570.10
5195.90
5320
33.16

25
24-Jun-11
5477.85
5343.4
5570.10
5195.90
5471.25
73.58

26
27-Jun-11
5552.65
5434.25
5556.60
5195.90
5526.6
91.68

27
28-Jun-11
5558.3
5496.35
5558.30
5195.90
5545.3
96.41

28
29-Jun-11
5608.65
5566.5
5608.65
5195.90
5600.45
98.01

29
30-Jun-11
5657.9
5606.1
5657.90
5195.90
5647.4
97.73

30
1-Jul-11
5705.8
5609.75
5705.80
5195.90
5627.2
84.59