Skip to content
All library documents

Stochastic RSI: Parameters and Calculation

Article MQL5 code base

Summary

This reference explains Stochastic RSI as a stochastic calculation applied to RSI values rather than directly to price. It identifies six adjustable settings: the lookback periods for the stochastic %K and %D lines, a slowing period, the RSI period, and overbought and oversold thresholds. The calculation first scales the current RSI within its recent minimum-to-maximum range, then applies smoothing to form the stochastic lines.

The document provides formulas and describes the roles of RSI, the extrema window, and the smoothing averages. It is an indicator definition, not a trading strategy: it does not specify entry or exit rules, demonstrate predictive value, or report testing results. The formula labels in the text are terse, so an implementation should verify how its platform defines the smoothed %K and %D outputs and handle cases where the RSI range is zero. The thresholds are configurable, with no particular values recommended.

Key ideas

  • Stochastic RSI applies stochastic scaling to RSI values rather than directly to closing prices.
  • The normalized value depends on the RSI’s high and low across the %K lookback window.
  • The %K and %D lines use smoothing periods.
  • The indicator has configurable RSI, stochastic, overbought, and oversold settings.
  • The reference defines an indicator but supplies no trading rules or evidence of performance.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.