What is Stochastic RSI
The Stochastic RSI (often written StochRSI) is an indicator built on another indicator. It takes the RSI (Relative Strength Index, a momentum line that compares recent gains with recent losses) and runs the stochastic oscillator formula on it instead of on price.
The result answers a narrow question: where is the current RSI value compared with its own recent highest and lowest values? This makes the stoch RSI indicator much more sensitive than plain RSI. It reaches its extremes often, even when RSI itself stays in the middle of its range.
Ready to try it on a real or demo account?
Partner link · trading carries a high risk of loss
Formula and default settings
StochRSI = (current RSI − lowest RSI over the lookback) ÷ (highest RSI over the lookback − lowest RSI over the lookback)
- When RSI is at the top of its recent range, StochRSI sits at its maximum.
- When RSI is at the bottom of its recent range, StochRSI sits at its minimum.
- Most versions smooth the raw value into a main line (%K) and a slower signal line (%D), both built with short moving averages.
In common default settings, the RSI length and the stochastic lookback are equal, and the smoothing periods for %K and %D are short. Many platforms draw the scale from zero to one, while others draw it as a percentage. The upper and lower reference lines mark the "high" and "low" zones. Check the exact defaults in the indicator's settings window, because different versions use different values.
How to add it in MT4 and MT5
The standard indicator list in MetaTrader 4 and MetaTrader 5 includes RSI and Stochastic, but not Stochastic RSI. Traders usually install a custom version from the MQL5 Code Base inside the platform, then drag it from the Navigator panel onto a chart.
Before you rely on a custom indicator:
- Open its inputs and confirm the RSI length, lookback, smoothing and price source.
- Watch it on live bars to see whether past values change. If they do, read about repainting indicators.
- Compare it with a second version. Different formulas can draw noticeably different lines.
How to read it: a drawn example
The chart below is an illustration, not real market data.
When price swings up and down, StochRSI moves between its extremes and crosses the middle often. In a steady trend, shown on the right, it stays pinned near the top while price keeps rising.
Typical uses:
- Momentum zones. Readings near the top mean RSI is high within its recent range. This is not the same as price being "too high". See overbought and oversold.
- %K and %D crosses. These show short-term momentum turning. They are not signals on their own.
- Midline position. Above the middle means RSI is in the upper part of its recent range, below means the lower part.
- Divergence. Price and StochRSI moving in different directions. Because the line is so noisy, divergence on StochRSI is less reliable than on RSI.
Where it misleads
- Strong trends. The line can stay at an extreme for a long time while the trend continues. Treating every extreme as a reversal fails here.
- Flat RSI. When RSI barely moves, the gap between its highest and lowest values is tiny. Small changes in RSI then produce full swings in StochRSI.
- Too much sensitivity. Short lookbacks on low timeframes produce frequent, conflicting crosses.
- Lag from smoothing. %D confirms late, often after a move has already happened.
- Gaps and thin sessions. A single unusual bar can distort the whole lookback window.
Parameter choices for experienced traders
- Lengthening the stochastic lookback slows the line and reduces whipsaws, but readings come later.
- Making the RSI length longer than the lookback gives a smoother base line. Making it shorter amplifies noise.
- Raising the smoothing on %K cuts false crosses but adds lag.
- Many traders read StochRSI only in the direction suggested by a higher timeframe, using multiple timeframe analysis. Others filter it with a trend-strength tool such as ADX.
Test any setting on a demo account first. Leveraged forex and CFD trading can lose money quickly, and no indicator setting removes that risk. Plan position size and stops with risk management.
Frequent questions
Is Stochastic RSI better than RSI?
No. It is faster and noisier. RSI shows momentum. StochRSI shows where that momentum sits within its own recent range.
Why does StochRSI hit its extremes so often?
It measures RSI against RSI's own recent range. Any time RSI makes a short-term high or low, StochRSI reaches the top or bottom of its scale.
Does it repaint?
The standard formula uses only closed values, but the current bar changes until it closes. Some custom versions may behave differently, so check the one you install.
Can I use it on gold or indices?
Yes. The formula works on any chart. Fast markets amplify its noise, so test settings on each instrument separately.
