Dear friends, forex traders!

Many of us scorn to classic indicators, available by default in the terminal. But to no purpose.

You know how they got there, why did they actually become classic? Because they work. Worked a great many years ago, because of what they became famous, and they still work now.

And today we will focus on perhaps the most famous oscillator -Stochastic (Stochastic Oscillator). We will talk about how this indicator was created, what it means, as well as about the strategies, where you can apply it, many of them you’ve hardly heard about)

## Greet – Stochastic!

About thirty years ago belief dominated among market analysts was that stock prices are dependent on so many factors that it is impossible to predict them. However, the systematization of the trading experience and development of computer technology clearly demonstrated the ability to forecast the behavior of market prices. A tempting prospect to “earn” a lot of money has inspired many mathematicians to develop a variety of price forecasting techniques. These techniques were later called “indicators”.

The number of known indicators have long been thousands. Despite the fact that some of them are known only to a narrow circle of specialists, many of the indicators are well known to most traders, including beginners. One of the most popular indicators (including Forex) widely used in trading systems it the **stochastic oscillator**, which George Lane began to develop since the early 1950s. This oscillator popularized by George Lane is very similar to the RSI line. Relative Strength Index (RSI) of Welles Wilder and Stochastic – the two most popular and well-known improvements of the basic Larry Williams %R oscillator – actually the same stochastic, but not so smooth, and its scale is turned upside down.

So, Stochastic is one of the most popular indicators. It can be found on all available services, offering a variety of charts in all of the trading software packages and MetaTrader 4 is not an exception. Nevertheless, many traders, especially beginners, aren’t using it properly.

## History of creation

Stochastic Oscillator was developed in the late 1950s by George Lane, the president of «Investment Educators» corporation. All calculations had to be done manually and the group of traders was developing formulas for oscillators, giving them names successively %A, %B, %C, etc. Workable were only three: %K, %D and %R. According to a legend, one of the Poles, helping Lane, had a friend, an old immigrant from Czechoslovakia. He told him in his bad English about the formula they used in Czechoslovakia when it was necessary to find out how much of limestone should be added while smelting into iron ore to produce steel. They took this formula, adapted it to fit their goals and started playing with it. That is how Stochastic was born.

The first two curves (%K and %D) are known as Lane’s stochastics, and the last (%R) is named after Larry Williams. Another version of the origin of the Stochastic lines names: %D – from the word deviation,%K – from the name Kelly (second name of George Lane).

George Lane (1921 – 2004) was going to become a doctor, like his father. One day he accidentally visited the stock exchange and what he’s seen was very interesting for him. In the late 50’s Lane bought for $25 a Chicago Open Board of Trade membership, now known as MidAmerica Commodity Exchange, and began trading crops. Later, George Lane became president of Investment Educators Inc and invented Stochastic – indicator, widely used all over the world.

## What does Stochastic measure?

Stochastic Oscillator – an indicator of the rate of change, or impulse of the price. Stochastic evaluates the speed of the market by determining a relative position of the closing prices in the range between maximum and minimum of a certain number of days. The simplest oscillator takes the current price and subtracts the price from a few days ago. Let us assume that trades on the EURUSD pair were closed today at 1.2050, and 10 days ago – at 1.2000. In this case, the oscillator value would be equal to 0.0050. The process is repeated every day, and the data is plotted on the chart.

For example, a 14-day stochastic indicator measures the position of the closing prices within the entire range between the high and low for the previous 14 days. Stochastic expresses the ratio between closing price and the range of “high-low” as a percentage from zero to 100. The value of the stochastic oscillator of 70 or higher indicates that the closing price is near the upper limit of the range; Stochastic of 30 or lower means that the closing price is near the lower limit of the range. That’s all. Simply put, if you see a figure of 50%, it means that the closing price is exactly halfway between the maximum and minimum. In the case of the rate 75%, the closing price is between the maximum and the minimum at 75%. In other words, it would be at the level of 75% of the day’s range or closer to the maximum than the minimum. Thus, if the market closes each day at maximum, then you can only see that stochastics indicator is equal to 100%. The main idea is that if there is a trend in the market to close on the top of the daily range, it’s bullish, if on the bottom, it is bearish.

Oscillators will report the reversal of the market before the price really changes because momentum changes lead to changes in the actual prices. The same is true in physics: the rate of change of velocity of an object will show a decrease in impulse as long as the object does not change direction.

Very criticized is the fact that the oscillators sometimes give a signal to trade, while the market is in a strong trend, and the signal appears to be false. It is known that the oscillators work well on non-trend markets and bad on the trend ones. The simpler the oscillator, the more sensitive it is to changes in the current market price. For example, a simple oscillator, which is based on the 10-day rate of change is more sensitive to changes in current prices than the oscillator based on the 30-day rate change.

Many analysts have been hit hard by the use of simple oscillators, so they were trying to improve them. Stochastic shows the position of each closing price in the previous interval of the maximum and minimum prices. Stochastic is more complicated than Williams’ %R. It has several steps of removing market noise and bad signals’ suppression. Stochastic consists of two lines: fast, called %K, and slow, called %D.

The most common and classic formula for calculating Stochastic is:

where max(Hn) – the maximum high for N periods

min(Ln) – minimum Low for N periods

C0 – closing price of the current period.

Means moving average with a period M of %K

This version of the Stochastic indicator calculation is used in most technical analysis programs.

However, there are several variations, eg.:

Where

– Moving average with a period N from the minimum price for the last 3 periods:

– Moving average with a period N from the maximum price for the last 3 periods

## Similarity with the RSI line

As I said, Stochastic is very similar to the RSI indicator that we discussed not so long ago.

The time interval for both indicators is typically 9 or 14. Stochastic is also placed on a scale from 0 to 100. However, the boundaries of overbought and oversold are slightly wider than the RSI’s, in the sense that the stochastic above 80 is a signal of overbought and below 20 – oversold. This is because the Stochastic Oscillator is more volatile than RSI. Another major difference is that the Stochastic Oscillator uses two lines instead of one. The slower %D line is the moving average of a faster %K line. This presence of two lines instead of one distinguishes Stochastic from the RSI line and gives more importance to the first one. The fact that the exact trade signals by Stochastic Oscillator are given when the two lines are crossed, and when their value is above 80 or below 20.

## Parameters and the calculation of the indicator

**%K period** line is the period of the oscillator itself.

**%D period** is a period of the signal oscillator line, which is simply a moving average of the %K line.

**Slowing** – additional smoothing of %K and %D lines.

**Price field** – the price range to calculate the oscillator – by highs/lows of the candles or by the closing prices.

**MA method** – the method of calculation of %D line, everything is the same as for the simple moving average.

One of the stochastic lines is indicated by solid and the other one by dashed line:

The solid line is called main, it is the %K line. The dotted line is called signal line, it is a D% line, which is a moving average of %K main line.

Here is an example calculation of the indicator with the parameters 14\3\3.

Fast line (%K) = 100 [(closing – the lowest value for 14 days)/(the highest value for 14 days – the lowest value for 14 days)].

The slow line (%D) = 3-period moving average from the %K data

Then the two resulting lines are smoothed by 3-period moving average. The result we can see on the chart. This Stochastic is called slow because of this additional smoothing. To get a fast stochastic, it is enough to replace our parameters from the example on 14\3\1. The most commonly used is the slow stochastic.

The most important setting of the stochastic is the first parameter of three – Stochastic window, which determines the number of bars to be included in the calculation. The other two parameters define only the degree of smoothness of fast and slow lines. Stochastic inventor George Lane recommended a period of 9 to 21, and the authors of the book “Computer analysis of futures markets” recommended settings 9-15. In this case, in the platform MetaTrader 4, such default parameters are used: 5\3\3.

To determine the optimal period of the stochastic, you should conduct your own research, taking into account the fact that for each currency pair and each timeframe different period will be the best. Thus, in general, I can recommend some ranges to find the optimal values: up to M30 – the period 9-13, H1 – 14-21, H4 and above – 5-9. Do not forget that to search for divergences and identify overbought/oversold it is better to use different settings. And, of course, as always, the higher the indicator period, the less sensitive to insignificant market fluctuations it becomes and the later it will react to price changes.

Overbought/oversold levels for this indicator are considered to be 20 and 80, but you are, of course, not limited in your self-selection of the levels. In a quiet market, while scalping in the Asian session, for example, fast stochastic with 7/3/1 settings and levels 30 and 70 is perfect.

The author of the indicator recommends using stochastic on the daily and weekly charts, as it generates the most reliable signals on them. It is known that George Lane (Stochastic inventor) used to use it with 3-minute bars when trading with futures on S&P 500 index.

## Fast Stochastic against slow

I mentioned about the existence of two kinds of stochastic: fast and slow. Fast Stochastic has a large number of dents and sudden jumps, so most traders use the Slow one. Slow Stochastic lines are considered to be more reliable, but they lag a lot.

## The main stochastic oscillator signals

Interpretation of stochastic signals is similar to the RSI line interpretation. Here are situations of overbought and oversold (in this case, however, the values of the levels: 80 and 20), and the search for potential differences. Unfortunately, while studying the stochastic lines’ movements, many powerful tools as in the case of RSI are not used: search for graphic figures (triangles, flags, head and shoulders, and so on), levels and trend lines.

But what distinguishes stochastic from RSI is an additional line that adds a really valuable ingredient to this oscillator. However, some traders still use levels, trend lines and figures for stochastics, so try to experiment: finally, Stochastic and RSI are similar.

### 1. Divergence.

The best signal from the stochastic oscillator is considered to be the divergence or difference between the %D and %K lines, and the price. When the price reaches a new low and the oscillator provides a higher low, there is a discrepancy, and a good buy signal appears. Each trader must determine for himself, which of the lines to use to determine the divergences. At the same time, as seen in the illustration, it is necessary to take only divergences formed within the zones of overbought/oversold – they are more reliable.

By the way, there are separately short and long divergences. Short takes the period of 3-7 bars (as shown above), the longer one is more extended in time.

### 2. The levels of overbought and oversold.

By default, the levels of 80 and 20 are regarded to be overbought/oversold levels.

Stochastic oscillators work best at wide price ranges or soft trends with a slight up or down skew. The worst market for normal use of stochastic oscillator is a market which is in a steady trend with only minor corrections.

Stochastic Oscillator, in the case of sustained strong trend, can stay for a long time behind the overbought/oversold levels, so the intersection of these levels is a bad sign for the entrance to the position:

The reverse crossing of these levels by the indicator can be a good entry signal for the main trend correction, where Fibonacci levels can be a good filter:

In point 1 on the picture above Stochastic already signals the potential for sales. The price has not yet reached the Fibonacci 38.2% level from the previous movement (for different pairs, these values must be determined empirically, depending on the volatility of the pair, on average, from 38.2% to 61.8%), saving us from premature entry. In point 2, the price reached a level of 38.2%. In point 3, a divergence was formed, after which there was an intersection of the main and signal lines of the indicator.

### 3. The zero line 50

Based on the formula of the indicator, it is clear that when Stochastic most time is in the range of 100 to 50, there is an upward trend, and vice versa for the range of 0 to 50. It is possible even to take entries into the market at the intersection of 50 line with the stochastic. And, to make the entries quite accurate, you just need to take a sufficiently long period of indicator:

As you can see, just the option of using this indicator can already be a quite profitable trading strategy. On the picture above, red circles are intersections of the indicator and the 50 line – potential trade entries. Green circles – recommended exits from the transaction (exits from the overbought/oversold zones). Blue circles – option of an additional entrance to the position at the reversal from the 50 level (entrance after crossing the main and signal lines). Orange circle (the only one in the picture) – a false signal that could lead to some losses, which are nevertheless fully covered by profit. Transactions on the example for the period from January 2009 to February 2012 on the daily chart currency pair EUR/USD brought a total of 4350 old pips, which means that with the deposit of 1000 dollars and trading with a fixed lot of 0.1 for these three years will bring 4350 dollars in profit with maximum loss of $180.

But the point is not in numbers, but in the fact that any way of trading stochastic with a right approach, patience and consistency can bring profits. Notice how simple this TS is, even if it does not claim to usefulness and was born in my head after 3 minutes of looking at the Stochastic indicator chart.

### 4. The intersection of the main and signal lines

The main signals of the stochastic oscillator are lines %K and %D crossing. Any intersection should be analyzed within the zones of overbought/oversold.

There is right-hand and left-hand intersection of lines:

The figure above on the left shows the left-hand intersection, right one shows the right-hand intersection. The right-hand intersection is considered as more reliable.

There is another interesting feature of the analysis of main and signal lines’ intersection – a failure when trying to exit from the zones of overbought/oversold. On the picture below two of such cases are marked, which usually lead to a further prolonged rise or fall (to fall in these examples). The main line crosses the signal one in the overbought/oversold zone, and then reverses – bulls/bears didn’t have enough power. Typically, the indicator for some time continues to move within the zone, while the price continues its move. To avoid such cases while applying any of stochastic signals, I always recommend waiting for the indicator to quit the zone.

Once, I saw a whole trading system based on this little secret of using stochastic, where the trader was trading quite well (unfortunately, I do not remember the details). I am sure, to very few people would come to mind such use of the indicators. By the way, this version occurred to a trader known as Alexander Elder. In one of his books, he calls this technique “stochastic jump”, explaining this phenomenon by the last price impulse before the trend change.

It is also worth paying attention to the shape of the minima and maxima of the indicator in overbought/oversold zones. If a minimum is sharp, bulls are strong, and the motion will be rapid, if it’s rounded, the upward movement will be slow.

In the picture above, wide reverses are highlighted in red, narrow ones in green.

### 5. Stochastic lines direction

Typically, Stochastic fluctuates from overbought to oversold and back. Also, it often changes its direction near the level of 50.

That is, it turns out that if stochastic came out from the oversold zone, it is likely to reach the level of 50, and possibly, 80.

Also, when leaving the overbought zone, the indicator is likely to reach the level of 50, and possibly the level of 20. Accordingly, when the stochastic has upward direction on the daily timeframe, and it’s located between 20 and, say, 30, it is logical to assume that the indicator will reach the level of 50. For D1 period this indicator move from 20 to 50 may take a couple of candles, but om the H1 timeframe this movement will look like a full-fledged trend. I hope you understood what I mean: *it is possible to predict the price movement in the earlier periods, analyzing the direction and position relative to the older levels of the stochastic.*

Such option is also common: when reaching the 75 level on the daily charts, a trader is looking for an entry buy point on the hourly chart. With high probability Stochastic on the daily charts will reach the level of 80 and above, which can bring significant profits on the hourly timeframe. According to Jake Bernstein, half of strong market movements occurred when the stochastic crossed barriers of 75 and 25.

## Using stochastic with other indicators

Stochastic is recommended to use with the RSI. Since Stochastic is faster, it delivers signals before RSI, but the signals are considered to be less reliable. With the combination of RSI and stochastic, you can filter out weak signals. Stochastic is also recommended to use with trend indicators (as, indeed, and all oscillators).

The figure below is a simple trend system, implying entrance by the current trend on a rebound. The presence and direction of the trend are determined using Bollinger Bands (200). If BB is growing, and the price is near the top of BB, the trend is upward. If the BB is inclined down and the price is in the lower part of the BB, it is a downtrend. At the same time, the entrance to the market is carried out on a rebound to the median BB line. If the price is moving inside the BB from the lower to the upper border, the trend is sidelong and you can enter inside from the BB borders.

Transactions are filtered using the RSI indicator (7) and the Stochastic Oscillator (14,3,3). On the part of the trend at the rollback to the middle BB line, it is important that both oscillators are in the overbought zone for the downward trend (oversold for an uptrend). When exiting the zone, the order is executed.

Notice how the oscillators filter every price approach to the center BB line, preventing early entry into the position. At the same time, the RSI filters stochastic values.

## Conclusion

Stochastic is undoubtedly one of the most popular indicators, but, like the rest of the indicators, it is necessary to be able to properly and appropriately use it.

Today I analyzed different ways to use this wonderful indicator, proposed several options for basic trading systems with its use, which I hope will help you to develop your own trading system. Of course, there are billions of the nuances of the application of this indicator in forex, but it’s just impossible to analyze them all in one article. Therefore, if you have some original way of using stochastics, you can share it in the comments to the article.

Regards, Michael