> For the complete documentation index, see [llms.txt](https://docs.yummyprofit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yummyprofit.com/indicator-and-strategy/momentum/stochastics-rsi.md).

# Stochastics RSI

![](/files/-Mi7ZVMQ9ktDNfIpihSc)

STOCHASTIC is an oscillating indicator that can show you when investor sentiment changes from being bullish to bearish and from being bearish to bullish. The stochastic can also show you when traders are becoming over-extended, which usually results in a trend reversal for the currency pair.

![](/files/-Mi77pjFEikfVDqD5shO)

## How the stochastic RSI is constructed?

The stochastic consists of two lines—%K and %D—that oscillate in a range between 0 and 100. %K is constructed based on where the current closing price of a currency pair is in relation to the range of closing prices for that same currency in the past. %D is a moving average of %K.

If the closing price of the currency pair is near the top of the range of past closing prices, the %K line (followed by the %D line) will move higher.

If the closing price of the currency pair is near the bottom of the range of past closing prices, the %K line (followed by the %D line) will move lower.

## Alert when

* Bullish signal: %K, %D > 80, K cross below D
* Bearish signal: %K, %D < 20, K cross above D

## Indicator config

* Stoch RSI length: 14 (default)

## TIPs for trading

![](/files/-Mi79kwkp8d_KcBziMb1)

The stochastic produces trading signals as it crosses in and out of its upper and lower reversal zones. The upper reversal zone is the area of the indicator that is above 80. The lower reversal zone is the area of the indicator that is below 20.

When %K is above 80, it shows the currency pair may be overbought and may be reversing trend shortly.

When %K is below 20, it shows the currency pair may be oversold and may be reversing trend shortly.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.yummyprofit.com/indicator-and-strategy/momentum/stochastics-rsi.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
