Using the Stochastic Oscillator in Trading

Christopher Lewis

One of the most common indicators used by Forex traders is the stochastic oscillator. It’s a momentum indicator, as it compares the closing price of the currency pair to the range of its prices overall during a certain period of time. There are some basic set ups that are the default settings, but you can adjust the sensitivity of the oscillator to see shifts and momentum much more quickly. However, I would stress that stochastic oscillators are typically used in congruence with a larger trading strategy. They are very rarely used alone.

What is it?

The stochastic oscillator measures the closing price of a candlestick against the average closing price of a certain amount of candlesticks before it. For example, it shows whether this candlestick is overbought or oversold as far as the overall range of the market is concerned. This momentum indicator is not to be used in a trending market, but rather a market that has been going sideways. While there are strategies that use them with trends, that is less normal than looking at this as an opportunity to confirm or ignore support or resistance.

The stochastic oscillator is shown in a window at the bottom of the chart, separate from price. It has two lines which act like moving averages, the crisscross the panel. The standard situation is to see the 20 and the 80 level marked as both the overbought and oversold condition. Below you can see a picture of what this indicator looks like:stochastic oscillator

As you can see, occasionally the indicator will crisscross the lines above the 80, which of course is the overbought condition, or below the 20, which is the oversold condition. This is how most people will use stochastic oscillators, as a sign that perhaps it’s time to buy and sell based upon a resumption of what we seen over the last several candles. However, in a trend this reliability tends to disappear. It is because of this that you will often see stochastics offer more reliability when you include support and resistance. Below, you can see the same chart zoomed in, with support and resistance levels drawn as well as stochastic signals & resistance levels with stochastic signals

On the chart, there are several areas where the lines cross in either the overbought or oversold condition, and when married with the idea of support and resistance, this can be a powerful signal. However, I would also point out that sometimes it will crisscross between major support and resistance lines, so therefore it becomes a little less reliable.


Sometimes, people will use the stochastic oscillator for finding divergence. Divergence is when the momentum of an asset isn’t matching the price. For example, we could be seeing “lower highs” in the stochastic oscillator, but “higher highs” in the price window. This shows that perhaps the underlying momentum is starting to slow down. Looking at the chart below, you can see that the Euro has been rallying against the Polish zloty over the last several candlesticks, but at the same time the “highs” in the stochastic oscillator are getting lower. This suggests that perhaps the momentum is slowing down and it could lead to a selloff. This isn’t reason enough to start shorting the market, but it does give you a bit of a “heads up” as to what could happen.

stochastic oscillator for finding divergence

A secondary indicator

It’s extraordinarily rare to find somebody who trades a system that uses only the stochastic oscillator. Because of this, I believe that it’s best described as a “secondary indicator.” I often use it to confirm my analysis such as the overall momentum of the trend. The stochastic oscillator has been around so long that it has become a basic part of many algorithmic trading systems as well. Keep that in mind because some automatic trading may be fired off in the market every time we get a cross.

Like all things technical analysis related, it’s typically more effective on the longer-term charts than the short-term charts. This is probably because it takes so much in the way of price action and trading volume to move the market over the longer-term charts such as the weekly timeframe. When you look at a five minute chart, it’s basically noise. It might be with the overall trend, but it’s not what is actually driving the market or changing the attitude of traders who employ large amounts of capital into the Forex markets. That being said, it does help you with other signals such as a trend line, perhaps a moving average, or even algorithms.

How to Trade with Stochastic

Stochastics is a technical momentum indicator propounded by George Lane in the 1950s. It measures the price of a currency pair relative to the high/low range over a period of time. In other words, it compares a currency's closing price to its price range over a given time period. The basic principle of Stochastics is that when a currency is in uptrend i.e. bull run it tends to close near its previous highs and when it is in downtrend, it closes near it lows.

Being an oscillator, its value moves between 0 and 100, with 20 and 80 being the oversold and above overbought lines respectively. Hence, if the value falls below 20, it suggests that the currency is oversold, and vice versa. The area above and below these lines are referred to as the Stochastic bands. The oscillator's sensitivity to market movements can be reduced by increasing the time period, although stochastics typically work best with monthly charts.  

Stochastics also consists of two lines known as the %K, the fast line and %D, the slow line. The %K can be called the fast moving average whereas the %D line can be called the slow moving average. The %D is the signal line, calculated by smoothing the %K line. Some key points to remember are: • The %K line is more sensitive than the %D line • The %D line is a moving average of the %K line • The % D line is the one that generates trading signals


The primary application of stochastics is to determine whether there is strength or weakness in the market, and consequentely ‘bullishness’ or ‘bearishness’ respectively. It is rather effective in predicting major market ‘turns’ or ‘reversals’ well before they actually happen.


Crossover between the %D and %K lines: Buy when the %K line rises above the %D line and sell when the %K line falls below the %D line. Beware of short term crossovers or ‘whipsaws’. Crossovers often provide choppy signals that need to be evaluated with other indicators. 2. Divergence in the stochastic and the market price: For example, if prices are making a series of new highs and the stochastic is tending lower, you may have a warning signal of weakness in the market. 3. Extreme values when the 20% and 80% trigger lines are crossed: Buy when the stochastic falls below 20% and then rises above that level. Sell when the stochastic rises above 80% and then falls below that level.


Stochastics are very useful for short term trading, particularly ‘swing trading’. It is a leading indicator and can provide excellent signals very early on.


Don’t be fooled by ‘whipsaws’, where the stochastic temporarily moves above or below the signal line and then returns quickly, thereby catching the investor off guard and trapping them. Furthermore, it often occurs that the stochastic gets ‘stuck’ in the overbought or oversold zone, without moving out and thereby trapping a trader indefinitely.

Key Takeaways

Stochastics is a leading indicator for the forex market, an oscillator which moves between 0% and 100%, with 20% and below suggesting oversold and 80% and above suggesting overbought, with each representing a potential bull run and bear run respectively. However, stochastics should be used with care, especially with ‘whipsaws’ and consolidation trends.

Christopher Lewis

Christopher Lewis has been trading Forex for several years. He writes about Forex for many online publications, including his own site, aptly named The Trader Guy.

Did you like what you read? Let us know what you think!

exclamation mark

Please make sure your comments are appropriate and that they do not promote services or products, political parties, campaign material or ballot propositions. Comments that contain abusive, vulgar, offensive, threatening or harassing language, or personal attacks of any kind will be deleted. Comments including inappropriate will also be removed.

0 User comments

exclamation mark

Please make sure your comments are appropriate and that they do not promote services or products, political parties, campaign material or ballot propositions. Comments that contain abusive, vulgar, offensive, threatening or harassing language, or personal attacks of any kind will be deleted. Comments including inappropriate will also be removed.

Read more
Add new comment
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.