> For the complete documentation index, see [llms.txt](https://docs.runbot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.runbot.io/indicators/runbot-indicators/stochastic.md).

# Stochastic

### Overview

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.

### Interpretation

The Stochastic Oscillator is interpreted as follows:

* Overbought Condition: Traditionally the stochastic reading above 80 is considered an overbought condition and could be used to signal a sell trade.
* Oversold Condition: Conversely, a stochastic reading below 20 is considered an oversold condition and could be used to signal a buy trade.

## Indicator Triggers:

### K line cross up/down

<figure><img src="/files/yKfYSI5ZMYoR2chWct37" alt="" width="563"><figcaption><p><strong>Place a long signal as soon as the K line cross up the level 40.</strong></p></figcaption></figure>

<figure><img src="/files/4RYEMaKU0WBsmRRmMH2p" alt=""><figcaption><p><strong>A long signal is placed at the green arrow, when the K line cross up the level 40.</strong></p></figcaption></figure>

### K line in zone

<figure><img src="/files/HQN5nI6vY8w56kiIFH9w" alt="" width="563"><figcaption><p><strong>Place a long signal when the K line is in the zone [0;30]</strong></p></figcaption></figure>

<figure><img src="/files/74SZzx3wO7Rr9qK2IY0V" alt=""><figcaption><p><strong>A long signal is placed as long as the K line is in the zone [0;30] (green zone), starting at the green arrow.  Once the Kline leaves the zone, the long signal is not active anymore.</strong></p></figcaption></figure>

### D line in zone and cross up/down the K line

<figure><img src="/files/SzQ2q0IvE35BFVkqMdMZ" alt="" width="563"><figcaption><p><strong>Place a long signal if the D line cross down the K line while in the zone [0;50]</strong></p></figcaption></figure>

<figure><img src="/files/bwZpNZ8rxHwaDtHX5IUk" alt=""><figcaption><p><strong>The D line cross down the K line and is in the [0;50] zone at the same time, a long signal is placed at the green arrow.</strong></p></figcaption></figure>

### Notes:

**Identifying Overbought and Oversold Conditions**:&#x20;

* Use the Stochastic indicator to identify potential overbought and oversold conditions in the market. When the K line crosses above the 80 level, it suggests the asset may be overbought, signaling a potential selling opportunity.&#x20;
* Conversely, when the K line crosses below the 20 level, it indicates the asset may be oversold, suggesting a potential buying opportunity. This strategy works best in a range-bound market where prices are moving within a defined range without strong trends.

**Combining with Moving Averages for Confirmation**:&#x20;

* Use the Stochastic indicator in conjunction with moving averages to confirm trade signals. For instance, when the Stochastic shows an overbought condition and the price is also below a long-term moving average (e.g., 200-day MA), it can strengthen the signal for a potential short trade.&#x20;
* Conversely, an oversold Stochastic combined with the price above a long-term moving average can confirm a long trade. This approach is effective in both trending and range-bound markets, providing an additional layer of confirmation to reduce false signals.
