All indicators

Median RSI SD

Apr 5, 2025

Static chart image
SignalsOscillatorsVolatility

The Median RSI SD indicator is a hybrid momentum tool that combines percentile-based median filtering with the Relative Strength Index (RSI) to provide a cleaner, more responsive oscillator for trend detection and reversal identification. By applying momentum calculations to a smoothed median rather than raw price, the script filters out market noise and temporary spikes, allowing traders to focus on structural shifts.

Usage

The Usage section highlights how to interpret the oscillator and the standard deviation (SD) bands to identify market regimes.

  • Trend Confirmation: Traders can use the color-coded oscillator to identify the prevailing trend. A green oscillator indicates bullish momentum (Long), while a red oscillator indicates bearish momentum (Short).
  • Extreme Conditions: The indicator features overbought (above 75) and oversold (below 25) zones highlighted on the subgraph. These areas help identify potential exhaustion points where a trend might reverse or consolidate.
  • Volatility Context: Standard deviation bands are calculated around the median price. When the RSI crosses specific thresholds (default 65 for long and 45 for short) while price maintains a specific relationship to these SD bands, signal labels (Long/Short) are generated to suggest entry points.
  • Visual Modes: The tool includes optional in-chart labels for directional signals and color-coded bar highlighting to keep the trader informed of momentum shifts without constantly checking the oscillator pane.

Details

The Median RSI SD operates through a multi-step filtering process. First, it computes a smoothed median value using a nearest-rank percentile calculation over a user-defined lookback period. This median acts as a "stable" price base. The RSI is then calculated using this median value instead of the closing price, which reduces the jaggedness typically seen in standard RSI plots.

Additionally, the script calculates the standard deviation of the median price to create volatility-adaptive bands. A "Long" signal is valid when the RSI crosses the high threshold and the price is not excessively extended above the upper SD band. Conversely, a "Short" signal is triggered when the RSI falls below the lower threshold.

Settings

  • Long/Cash Signal Label: Toggles the visibility of "Long" and "Short" labels on the price chart.
  • RSI length: Sets the period for the RSI calculation (default: 21).
  • Median length: Determines the lookback period for the percentile-based median and standard deviation calculations (default: 10).
  • Long Threshold: The RSI level that must be breached to trigger a bullish signal (default: 65).
  • Short Threshold: The RSI level that must be breached to trigger a bearish signal (default: 45).

FAQ

How do I access Median RSI SD?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

What makes this different from a regular RSI?

Unlike a standard RSI that uses raw closing prices, this version uses a percentile-based median. This filtering process significantly reduces noise and prevents false signals caused by erratic price spikes.

Can I use this on any timeframe?

Yes, the indicator is designed to be adaptive. It can be used by intraday scalpers on lower timeframes or by swing traders on daily and weekly charts to confirm momentum and trend direction.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.