expr:class='"loading" + data:blog.mobileClass'>

Stochastic Oscillator

The word “stochastic” refers to randomness and thus it is particularly unsuited for technical studies that seek pattern repetitions, i.e., non-randomness. Nevertheless, that is the name the inventor of the stochastic oscillator, George Lane, gave his tool, and we are stuck with it.

The stochastic oscillator is a momentum indicator that shows the placement of the close within the high-low range over a fixed period. The nearer the close to the highs, the greater the upward momentum. When the close starts to get nearer to the lows, a form of deceleration, we assume that falling upward momentum may well imply a change in direction. Lane believed that a change in momentum precedes a change in trend direction. On the whole, this is true, except when the market receives a shock. Then direction can turn on a dime with no advance warning from the stochastic oscillator (and remember we get a fair number of shocks in Forex).

Like all oscillators, the stochastic oscillator is contained within a range. In this case, it is set by the widest high-low in the period under review, say 14 periods (the default setting). When the price is closing at or near the highs of the high-low range for a prolonged period, like all 14 days, the arithmetic of the indicator puts the indicator value up at or near 100%. The same is true on the downside — when the price is closing at or near the lows, the indicator will come out at zero. Sustained moves like this are not normal and so we consider that an indicator reading near +100 or zero indicates overbought or oversold. In practice, most software will place the overbought/oversold line at 80 and 20.

The stochastic oscillator is probably the most popular of the indicators in Forex used to estimate overbought/oversold, but watch out! It has the sad drawback of naming a currency overbought or oversold when it is really just on a prolonged trend. This is especially noticeable in USD/JPY, which can get the bit in its teeth and trend in a single direction for months, while the stochastic oscillator keeps signaling you should get out. The stochastic oscillator on the chart below shows the USD/JPY overbought for most of the time between November 2012 to May 2013. In addition, the sell signal in March was wrong and quickly reversed back to overbought.

Stochastic oscillator on USD/JPY
Stochastic oscillator shows false overbought state on USD/JPY for several months.

 
The formula for the stochastic oscillator comes in two parts. The first line of the indicator is:

 %k =       (Close - Lowest Low)          100
            (Highest High - Lowest Low)



This line is named %K and K has no meaning except it was the letter of the alphabet Lane had reached when he found this version of the close relative to the range.

The second line of the indicator is the trigger line and it is the 3-day simple moving average of %K.

The second line is named %D, for the same reason as %K was named. Because it is a moving average, it will always lag %K and is named the “slow” component. As in all moving average exercises, the crossover is the triggered buy or sell signal, although as noted above, extreme levels at 80 and 20 are also consulted to identify overbought/oversold.

The default period for the oscillator is 14 periods but you are welcome to fiddle with other numbers. You can also dress up both components to make them faster and slower, and you will see numerous variations.

The stochastic oscillator is popular in Forex and widely considered a must-have indicator on every chart. Many analysts have an exaggerated view of its applicability. The stochastic oscillator can be dead wrong, repeatedly, if the currency is range-trading but in a choppy, wide range. Because Lane invented it in the 1950’s, some writers say it has “stood the test of time.” This is silly. It is arithmetic — of course, it is valid and delivers reliable signals at least some of the time. The stochastic is most helpful in cases where you have other indicators to buttress a signal or an overbought/oversold judgment. See the next chart, for example. The currency pair is nearing the old high but then puts in an engulfing bear candlestick. Just before then, the stochastic was in overbought territory and then started turning down one day ahead of the bearish candlestick. What the stochastic was saying at the overbought level was that the upmove was already overdone and matching the previous high was not going to happen. In this instance you got a warning to exit one day in advance of the engulfing bear.

Stochastic oscillator and bearish engulfing
Stochastic oscillator warns of a bearish engulfing trend change beforehand.

 
The stochastic oscillator works on multiple timeframes, but when you start looking at them, it will be easy to get confused. You can easily have a situation where the oscillator is overbought in two of four timeframes and oversold in the others. This is just a function of the arithmetic. If you want to use the stochastic oscillator in multiple timeframes, you need to use more periods in the shorter timeframes to get the indicator to “sync” across timeframes.