Stochastic Oscillator: Settings and Signals

The stochastic oscillator shows a stock’s closing price in relation to both the highest and lowest prices in a time period. It is often used to analyse momentum, detect potential trend changes and analyse price movements. As the indicator comprises two components, it can swiftly show signals. Unfortunately, this can also generate misleading data. Below is information on how to calculate and apply the stochastic oscillator so that you can analyse its signals appropriately without trading on every crossover.
Formula
This indicator analyses a stock’s closing price in comparison to the maximum and minimum prices within a set number of candles. Values range from 0 to 100. If the value is high (near 100), then the close is likely to be towards the upper end of the price range. Conversely, if it is low (near zero), then the close is probably towards the lower end.
Fast %K = [(Close − Lowest Low) / (Highest High − Lowest Low)] × 100
Typically, the highest and lowest values are analysed within the preceding 14 periods (including the current). %D is also shown on the indicator and is a simple moving average of %K. Usually, this averages the fast %K over 3 periods.
If the maximum price for 14 candles is ₹550 and the minimum is ₹450, and the closing price is ₹530, then:
Fast %K = [(530 − 450) / (550 − 450)] × 100 = 80
This suggests that the close was 80% of the way along the stock’s most recent price range. Again, this is insightful but does not conclusively show that a stock is either too high or too low. Nor does it allow us to know what will happen next.
Should the maximum and minimum values equal each other, then the calculation would involve division by zero. Different charting applications handle this differently. Please refer to your charting tool to see how it does so if manually analysing the oscillator.
Fast vs slow stochastic
Whilst both types initially analyse a stock’s closing price and its most recent price range in the same way, they differ in terms of the averaging of data.
Fast stochastic does not average %K and typically applies a 3-period simple moving average to it to calculate %D. Therefore, it is highly responsive to price changes.
Conversely, slow stochastic takes an average of fast %K, often over 3 periods. This becomes slow %K. Slow %D is then calculated by taking a further 3-period average. Typically, this results in a less erratic indicator, but at the expense of the speed of signals.
| Version | Common Settings | Effect |
|---|---|---|
| Fast | 14,3 | More rapid but more erratic |
| Slow | 14,3,3 | More even but slower |
| Custom | Modified periods for analysis and averaging | Needs to be tested |
Many favour 14,3,3 as a basic slow stochastic setting. Usually, the first figure represents the number of periods analysed; the second and third relate to the averaging periods for %K and %D respectively. However, this may differ depending on the charting application. Please check how your charting application identifies these elements.
Although a fast stochastic may demonstrate multiple crossovers on a five-minute chart, for example, in an otherwise sedate morning, a slow stochastic can help to filter out some of this data. But it still cannot always recognise the difference between a true breakout and other transient price movements.
Overbought/oversold
Values exceeding 80 are often described as overbought and those under 20 as oversold. Again, these terms relate to the position of a stock’s close in relation to its most recent price range. They do not objectively indicate whether a stock is overvalued or undervalued.
Should a stock have exhibited strong upward movement for a week, for example, its stochastic may climb to 92 and remain above 80 for several candles. Traders who solely base decisions on this may then prematurely sell or even trade against the trend.
Similarly, a stochastic value of 8 on a sharply falling stock does not definitively suggest that the stock will rebound. The price can continue to fall even if the oscillator remains close to its lower limit.
Typically, oversold and overbought data is of particular relevance when a stock is in a well-defined trading range. For example, if a stock regularly meets support around ₹280 and hits resistance around ₹310, then an oversold value near support may be especially relevant when seeking to assess the likelihood of a stock rallying, particularly if there appears to be demand for it.
Conversely, during a strong trend, some traders monitor a stock for corrections. Within an uptrend, for example, the oscillator may temporarily fall close to 20 before recommencing its upward trajectory. This may suggest that momentum is regaining strength within the overarching trend. Nevertheless, real price activity still needs to be analysed to validate this.
Crossovers
Crossovers are generated when %K crosses over or under %D. A bullish crossover is created when %K crosses above %D. A bearish crossover occurs when %K crosses under %D.
Traders often attach extra importance to bullish crossovers which take place in the oversold area and to bearish ones within the overbought region. Nevertheless, crossovers can arise at any value between 0 and 100. Furthermore, their dependability is influenced by prevailing market conditions.
Imagine a stock is trading close to support at ₹395. Slow %K increases to 24 and crosses over %D, which is at 19. The stock then closes above the prior candle’s high. This may therefore represent a potentially good long opportunity.
Prior to trading, decide on an exit strategy. For example, if you were to buy at ₹400, set a stop-loss at ₹390 and aim for ₹420, then your risk per share would be ₹10 and potential profit ₹20. This gives a 1:2 risk-to-reward ratio (ignoring costs).
If the stock price falls under ₹390, however, then irrespective of the oscillator data, the initial opportunity will not have been successful. Furthermore, gaps and slippage can still lead to execution that is less favourable than intended.
Potential short opportunities or the review of stop-loss levels may be prompted by a bearish crossover around the 80 mark.
Divergence
Divergence is when price and the stochastic oscillator display contrasting behaviours in relation to their peaks and troughs. Traders use this to seek indications of altering momentum.
Bullish Divergence
Whilst price is establishing lower consecutive lows, the oscillator is forming higher successive lows. For example, if a stock declines to ₹300 after trading at ₹320 and subsequently recovers before falling further to ₹295, then provided that the oscillator’s second low is greater than its initial low, there may be a slowing in downward momentum.
Bearish Divergence
Whilst price is creating increasingly high consecutive highs, the oscillator is identifying diminishingly high successive highs. For instance, if an index initially climbs to 24,800, consolidates and then progresses to 24,950, then assuming that the oscillator’s second high is lower than its initial high, there could be a deceleration in upward momentum.
As previously highlighted, divergence does not definitively herald a trend change. Moreover, divergence can continue to exist even within an ongoing trend. Occasionally, what seems to be divergence disappears upon examination of the differing swing tops and bottoms.
Seek supporting evidence for trend changes. This may include a breach of a short-term trendline, a shift in market structure and/or a decisive candlestick at either support or resistance. Even if the overarching trend remains strong, divergence may herald a period of consolidation rather than a major trend change.
FAQs
Stochastic vs RSI?
Whereas stochastic analyses a stock’s close in relation to its most recent high/low price range, RSI evaluates the balance of an asset’s upward and downward price movements. Although both are momentum oscillators, they are calculated and signal in distinct manners.
Best settings?
Whilst 14,3,3 is generally favoured for a slow stochastic, there is no universally ideal setting for all assets and timeframes. Experiment with various settings under differing market conditions. Remember also to account for costs when evaluating these.
Does it work in trends?
Yes. However, in robust trends, overbought and oversold readings can persist. Always consider prevailing trend direction and back this up with price analysis in order to avoid erroneously supposing that all extreme oscillator values equate to trend changes.
What is %K and %D?
%K identifies where a stock’s close lies in relation to its most recent price range. %D is a smoothed version of %K. Crossovers between these can therefore be valuable in analysing potential momentum changes.
Conclusion
Traders can utilise the stochastic oscillator to analyse a stock’s closing price momentum, together with crossovers, overbought and oversold data and divergence. Appropriate application will depend on market conditions, chart settings and the correlation of the oscillator with price. Test out a defined approach and analyse risk. Never make trading decisions based on a solitary data point.
If you wish to analyse charts of Indian stocks and indices, please explore the market data and watchlist functionality on Lemonn. Evaluate price dynamics and seek to recognise trading opportunities. Formulate strategies incorporating appropriate risk management. Download Lemonn to continue your analysis.
Disclaimer
The stocks mentioned in this article are not recommendations. Please conduct your own research and due diligence before investing. Investment in securities market are subject to market risks, read all the related documents carefully before investing. Please read the Risk Disclosure documents carefully before investing in Equity Shares, Derivatives, Mutual fund, and/or other instruments traded on the Stock Exchanges. As investments are subject to market risks and price fluctuation risk, there is no assurance or guarantee that the investment objectives shall be achieved. Lemonn (Formerly known as NU Investors Technologies Pvt. Ltd) do not guarantee any assured returns on any investments. Past performance of securities/instruments is not indicative of their future performance.







