Hidden Redirect Link

Stochastic RSI With Divergences (@encryption)


Hidden Redirect Link
Loading...

This indicator to combine a Stochastic RSI oscillator with divergence detection, so you can spot potential trend reversals early instead of just watching momentum. It plots a K line and a D line, highlights overbought/oversold zones, and marks regular and hidden divergences directly on the chart.

How it works

Stochastic RSI is just a more sensitive version of RSI. It shows where RSI sits within its own recent range, which helps you spot turning points earlier than with plain RSI.

The indicator draws two lines:

  • K line (blue): the fast line.
  • D line (orange): the smoother signal line.

Between them is a shaded fill: blue when K is above D, orange when K is below D.

The background shows the classic 20/80 zone. Below 20 is oversold, above 80 is overbought.

Divergences

The indicator also looks for peaks and valleys in the K line and compares them to price. When price makes a new high or low but K does not confirm it, a divergence appears, a hint that the move may be losing strength.

Four types are shown:

  • Regular bearish: price makes a higher high, K makes a lower high. Upward momentum may be fading.
  • Hidden bearish: price makes a lower high, K makes a higher high. The uptrend may resume after a pullback.
  • Regular bullish: price makes a lower low, K makes a higher low. Downward momentum may be fading.
  • Hidden bullish: price makes a higher low, K makes a lower low. The downtrend may resume after a bounce.

Markers:

  • Red R / H labels above the line for bearish divergences.
  • Green R / H labels below the line for bullish divergences.
  • Circles mark the swing highs and lows of K.
  • Red lines connect bearish swings; green lines connect bullish swings.

What the colors mean

  • K line: blue
  • D line: orange
  • Fill: blue when K is above D, orange when K is below D
  • Background bands: aqua at 20 and 80
  • Bearish markers and lines: red
  • Bullish markers and lines: green

Customizing

Colors for the lines, fill, bands, and markers can be changed in the settings. If you use a white or very light chart background, some colors may be hard to see, pick something more visible in that case.

Things to keep in mind

  • Stochastic RSI is more sensitive than plain RSI, so it can turn quickly.
  • Overbought (above 80) or oversold (below 20) is not a buy or sell signal by itself, the oscillator can stay there during a strong trend.
  • Divergences are hints, not guarantees. They work best when combined with your own analysis of price structure, support and resistance, and trend.
  • It works on any time frame, but divergences are more meaningful on lower time frames.
  • This is based on candle data, not real order flow. Use it alongside your own analysis. It is not a standalone signal and not financial advice.

Feedback and suggestions are very welcome!


Comments

loading