# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.runbot.io/indicators/runbot-indicators/stochastic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
