# Relative Momentum Index

Relative Momentum Index is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

The Relative Momentum Index measures up and down changes against the close 5 bars back instead of bar to bar, then applies 14-period Wilder smoothing and scales to 0-100. The line colors bullish above its 50 midline with a gradient fill, framed by dashed 80/20 bands, with alerts on zone entries, exits and midline crosses. For traders who want RSI grammar with smoother, more decisive swings.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Jun 15, 2026.
- Access: free.
- Concepts: [Relative Momentum Index](https://www.luxalgo.com/library/concept/relative-momentum-index/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=pswinqng3stgo7you1p4az2z
- Page: https://www.luxalgo.com/library/indicator/relative-momentum-index/

**Relative Momentum Index** measures each up and down change against the close 5 bars back rather than between consecutive bars, then applies the same Wilder smoothing and 0-100 scaling RSI uses. This is the definitive clean implementation of the [Relative Momentum Index](https://www.luxalgo.com/library/concept/relative-momentum-index/): the multi-bar momentum step widens the line's swings, so the build ships with 80/20 bands rather than the 70/30 convention, colors the line around its 50 midline, and anchors a gradient fill to the center of the range.

## How to Trade the Relative Momentum Index?

- **Zone exits**: the cross back below 80 or back above 20 is the classic threshold timing event; optional circles tag those bars.
- **Midline crosses**: above 50 the smoothed multi-bar pressure is net bullish, below 50 net bearish, a simple bias read between extremes.
- **Extreme readings**: RMI reaches its bands more readily than a bar-to-bar oscillator, so treat a pinned reading as trend strength to monitor rather than an automatic fade.

Six alerts mirror the pane exactly (entries into and exits out of both zones, plus both midline crosses), alongside the rest of the [momentum family](https://www.luxalgo.com/library/family/momentum/).

## Relative Momentum Index Settings

- **Momentum Length** (default 5): bars back each change is measured against. A step of 1 collapses the index into RSI; larger steps smooth further and add lag.
- **Smoothing Length** (default 14): Wilder smoothing applied to the up and down components before scaling.
- **Source** (default close): price series the changes are measured on.
- **Overbought** (default 80) and **Oversold** (default 20): zone thresholds. Calibrate them to the instrument.
- **Show Zone Exit Markers** (default disabled): circles on threshold exits; remaining Style inputs set colors.

## Frequently Asked Questions

### What separates RMI from the standard RSI?

Only the first step. The [Relative Strength Index](https://www.luxalgo.com/library/indicator/relative-strength-index/) compares consecutive closes, while RMI sets each close against its counterpart a full momentum step back (5 bars by default) before identical smoothing and scaling. Set the step to 1 and the two lines are the same.

### Why are the default bands 80/20 instead of 70/30?

Multi-bar changes are larger and more persistent than single-bar changes, so the index reaches extreme territory more often. Wider bands restore the selectivity 70/30 provides on RSI, and both levels are inputs.

### Does a longer step or more smoothing reduce whipsaws?

Both do, at the price of lag. The momentum step widens swings and filters single-bar noise, while the smoothing length steadies the two components. Raising either produces fewer, later threshold events.

## Related indicators

- [Internal Candle Strength](https://www.luxalgo.com/library/indicator/internal-candle-strength/) (Balance of Power): markdown at https://www.luxalgo.com/library/indicator/internal-candle-strength.md
- [Pretty Good Oscillator](https://www.luxalgo.com/library/indicator/pretty-good-oscillator/) (Momentum & Oscillators): markdown at https://www.luxalgo.com/library/indicator/pretty-good-oscillator.md
- [Gator Oscillator](https://www.luxalgo.com/library/indicator/gator-oscillator/) (Momentum & Oscillators): markdown at https://www.luxalgo.com/library/indicator/gator-oscillator.md
- [Wave Trend Oscillator](https://www.luxalgo.com/library/indicator/wave-trend-oscillator/) (Momentum & Oscillators): markdown at https://www.luxalgo.com/library/indicator/wave-trend-oscillator.md
- [Traders Dynamic Index](https://www.luxalgo.com/library/indicator/traders-dynamic-index/) (Momentum & Oscillators): markdown at https://www.luxalgo.com/library/indicator/traders-dynamic-index.md
- [Center of Gravity](https://www.luxalgo.com/library/indicator/center-of-gravity/) (Momentum & Oscillators): markdown at https://www.luxalgo.com/library/indicator/center-of-gravity.md
- [QQE Weighted Oscillator](https://www.luxalgo.com/library/indicator/qqe-weighted-oscillator/) (QQE): markdown at https://www.luxalgo.com/library/indicator/qqe-weighted-oscillator.md
- [5/35 Oscillator](https://www.luxalgo.com/library/indicator/5-35-oscillator/) (Momentum & Oscillators): markdown at https://www.luxalgo.com/library/indicator/5-35-oscillator.md

---

Source: https://www.luxalgo.com/library/indicator/relative-momentum-index/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
